aboutsummaryrefslogtreecommitdiff
path: root/content/overview-code-blocks.md
diff options
context:
space:
mode:
authorJieiku2023-09-08 15:08:39 -0700
committerJieiku2023-09-08 15:08:39 -0700
commit5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1 (patch)
treed034c24a0debdb22066c659fa67ab5564227acdd /content/overview-code-blocks.md
parent288de9dac39869ac94d0265351f5884a78dce5a8 (diff)
downloadabridge-5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1.tar.gz
abridge-5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1.tar.bz2
abridge-5e55301cc2c91a5f0e99000bfe4d7ec262ee78c1.zip
Refactor package.json2.2.0
Diffstat (limited to 'content/overview-code-blocks.md')
-rw-r--r--content/overview-code-blocks.md20
1 files changed, 15 insertions, 5 deletions
diff --git a/content/overview-code-blocks.md b/content/overview-code-blocks.md
index af1d406..ce40a10 100644
--- a/content/overview-code-blocks.md
+++ b/content/overview-code-blocks.md
@@ -23,7 +23,7 @@ See [the docs](https://www.getzola.org/documentation/content/syntax-highlighting
If we want, we can also `specify inline code` which is useful for `the small stuff`.
-### rust
+### Rust
```rust
fn main() {
let greetings = ["Hello", "Hola", "Bonjour",
@@ -66,6 +66,16 @@ fn main() {
}
```
+### Bash
+```bash
+#!/bin/bash
+for d in /sys/kernel/iommu_groups/*/devices/*; do
+ n=${d#*/iommu_groups/*}; n=${n%%/*}
+ printf 'IOMMU Group %s ' "$n"
+ lspci -nns "${d##*/}"
+done
+```
+
### TOML
```toml,linenos,hl_lines=3
base_url = "https://abridge.netlify.app/"
@@ -83,7 +93,7 @@ taxonomies = [
]
```
-### html
+### HTML
```html
<!doctype html>
<html lang="en">
@@ -130,7 +140,7 @@ $font-mono: ui-monospace Menlo Monaco Consolas "SF Mono" "Cascadia Mono" "Segoe
}
```
-### javascript
+### Javascript
```javascript
function closeSearch() {//close the search displaying the regular page.
const e = document.querySelector("main");
@@ -149,7 +159,7 @@ function goSearch() {// on enter key or search icon click display results to the
}
```
-### php
+### PHP
```php
<?php
/**
@@ -174,7 +184,7 @@ $_SESSION['PFA_token'] = md5(uniqid("pfa" . rand(), true));
```
-### json
+### Json
```json
{
"name": "Abridge Zola Theme",