diff options
Diffstat (limited to 'content/overview-code-blocks.md')
| -rw-r--r-- | content/overview-code-blocks.md | 20 |
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", |
