moving to hugo

This commit is contained in:
Phil Bajsicki 2024-09-28 01:33:01 +02:00
parent 18e6d30423
commit 3e318526fd
3 changed files with 14 additions and 6 deletions

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
.DS_Store
.idea
*.log
tmp/
public/

View file

@ -26,6 +26,7 @@ chmod 755 $GIT_WORK_TREE
rm -rf $GIT_WORK_TREE/public rm -rf $GIT_WORK_TREE/public
# Generate the site with hugo # Generate the site with hugo
cd $GIT_WORK_TREE && chmod +x update.sh
cd $GIT_WORK_TREE && ./update.sh cd $GIT_WORK_TREE && ./update.sh
# Fix any permission problems. # Fix any permission problems.

View file

@ -1,6 +1,6 @@
+++ +++
title = "Moving to Hugo" title = "Moving to Hugo"
lastmod = 2024-09-28T01:26:08+02:00 lastmod = 2024-09-28T01:32:25+02:00
tags = ["hugo", "web", "orgmode", "css", "tufte"] tags = ["hugo", "web", "orgmode", "css", "tufte"]
categories = ["tech", "emacs"] categories = ["tech", "emacs"]
draft = false draft = false
@ -58,6 +58,7 @@ chmod 755 $GIT_WORK_TREE
rm -rf $GIT_WORK_TREE/public rm -rf $GIT_WORK_TREE/public
# Generate the site with hugo # Generate the site with hugo
cd $GIT_WORK_TREE && chmod +x update.sh
cd $GIT_WORK_TREE && ./update.sh cd $GIT_WORK_TREE && ./update.sh
# Fix any permission problems. # Fix any permission problems.
@ -85,15 +86,15 @@ All thanks to [ox-hugo](https://ox-hugo.scripter.co/), which made the process ve
I guess the last thing to mention are the sidenotes and margin notes... sadly, the way to use them with ox-hugo is quite cumbersome. My current process is to keep these two snippets in the kill-ring{{<sidenote>}}I will be moving them to yasnippet... at some point.{{</sidenote>}}, so I can easily insert them when needed. I guess the last thing to mention are the sidenotes and margin notes... sadly, the way to use them with ox-hugo is quite cumbersome. My current process is to keep these two snippets in the kill-ring{{<sidenote>}}I will be moving them to yasnippet... at some point.{{</sidenote>}}, so I can easily insert them when needed.
```text ```org
@@hugo:{{<sidenote>}} @@hugo:{{</*sidenote*/>}}
{{</sidenote>}}@@ {{</*/sidenote*/>}}@@
``` ```
Then an example of it would look like this{{<sidenote>}}Or maybe not, I'm not sure.{{</sidenote>}}. Then an example of it would look like this{{<sidenote>}}Or maybe not, I'm not sure.{{</sidenote>}}.
```text ```org
@@hugo:{{<sidenote>}}Or maybe not, I'm not sure.{{</sidenote>}}@@ @@hugo:{{</*sidenote*/>}}Or maybe not, I'm not sure.{{</*/sidenote*/>}}@@
``` ```
The same formatting applies to `marginnote`. The same formatting applies to `marginnote`.