Test Post
this is a post in which i’ll try out all kinds of stuff relating to hugo
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.
1(defun test (str)
2 (declare ignore str)
3 (print "Hello World"))
4
5(defun ich-bin-neu ())
let’s also add a heading⌗
It’s kinda impotant to know how those work. but what about citations? (Bergson 2019)
embedding stuff⌗
(and also subheadings. note that this style doesn’t seem to distinguish between levels of subheadings.)
toots⌗
Embedding toots is implemented via a custom shortcode
-
and more!
as I’m writing this in org mode and export with ox-hugo 5* subehadeings become lists.
here’s a table⌗
| first | second | third |
|---|---|---|
| test | test2 | test3 |
| test4 |
and a slightly different one
| key | value |
|---|---|
| 1 | 2 |
lists⌗
we’ve already seen that lists can be created with org header but org also has support for lists so how are those handled?
test 1⌗
- first
- try
- with
-
test 2⌗
- second
- try
- with +
test 3⌗
- numbered
- lists
- are
- cool
Let’s⌗
also try some code snippets of a language where syntax highlighting probably works
1#!/bin/bash
2
3# This script takes on Argument, checks whether that Argument is an existing
4# file ending in .pdf and if both conditions are met, rids it of any annotations
5# saving a copy of the original file with _(clean) atteached to the name.
6
7if [ -f "$1" ]; then
8 if [ ${1: -4} == ".pdf" ]; then
9 filename="${1/.pdf/_clean.pdf}"
10 pdftk "$1" output uncompressed.pdf uncompress
11 LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf
12 pdftk stripped.pdf output "$filename" compress
13 rm uncompressed.pdf
14 rm stripped.pdf
15 echo Done!
16 else
17 echo "$1" is not a pdf
18 exit 1
19 fi
20else
21 echo "$1" does not exist
22 exit 1
23fi