This is my first blog post with my new website project. I'll throw different elements in here to test with as I add features n stuff
codeblock test
export blah
codeblock test styled
export blah
lang nix, lines 2,3 highlighted & showLineNumbers enabled
gendeepINI = toINI {
mkKeyValue =
let
sep = "=";
in
k: v:
if isAttrs v then
concatStringsSep "\n" (
collect isString (
mapAttrsRecursive (
path: value:
"${escape [ sep ] (concatStringsSep "\\" ([ k ] ++ path))}${sep}${mkValueStringDefault { } value}"
) v
)
)
else
mkKeyValueDefault { } sep k v;
};
lang bash, no highlights, no line numbers
#!/bin/bash
check_number() {
if [ $((${1} % 2)) -eq 0 ]; then
echo "${1} is even"
else
echo "${1} is odd"
fi
}
echo "Number checker script"
for i in {1..5}; do
check_number $i
done
| Key | Type | Description |
|---|---|---|
| 1 | Wonderful | Table |
| 2 | Wonderful | Data |
| 3 | Wonderful | Website |