summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.toml8
-rw-r--r--content/techjournal/Jekyll_Hugo_gh_pages.md20
-rw-r--r--layouts/partials/techjournals.html7
-rw-r--r--layouts/techjournal/list.html6
4 files changed, 41 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 938080f..2051845 100644
--- a/config.toml
+++ b/config.toml
@@ -16,6 +16,14 @@ pygmentsUseClasses = true
[menu]
[[menu.main]]
+ identifier = "techjournal"
+ name = "Techjournal"
+ title = "techjournal"
+ url = "/techjournal/"
+ weight = 10
+ post = '| '
+
+ [[menu.main]]
identifier = "blog"
name = "Blog"
title = "blog"
diff --git a/content/techjournal/Jekyll_Hugo_gh_pages.md b/content/techjournal/Jekyll_Hugo_gh_pages.md
new file mode 100644
index 0000000..47890a2
--- /dev/null
+++ b/content/techjournal/Jekyll_Hugo_gh_pages.md
@@ -0,0 +1,20 @@
+---
+title: "From Jekyll and Github Pages, back to Hugo"
+date: 2023-04-18T15:29:16+01:00
+draft: false
+---
+
+This is a new journal where I intend to dump technical stuff.
+
+I was going to use Github Pages to host it, with Jekyll generating the stuff locally, but I couldn't get it to work. It feels like both technologies need some care. Either way, I remembered the utility of my own site, and here we are.
+
+I haven't worked out exactly the format of this series yet, but I want it to be automated, so that I can easily dump links with short commentaries, and make it searchable somehow. Once again, it is all for my own sake.
+
+Does code formatting work?
+
+```python
+def hello_world():
+ print("hello, world!")
+```
+
+It seems to, but it doesn't have colour yet and it looks a bit big. Will work on that.
diff --git a/layouts/partials/techjournals.html b/layouts/partials/techjournals.html
new file mode 100644
index 0000000..8227611
--- /dev/null
+++ b/layouts/partials/techjournals.html
@@ -0,0 +1,7 @@
+<ul id="techjournals">
+ {{ range where site.RegularPages "Section" "techjournal" }}
+ <li>
+ <a href="{{ .Permalink }}">{{ .Title }}</a> ({{ .Date.Format "2 Jan 06" }})
+ </li>
+ {{ end }}
+</ul>
diff --git a/layouts/techjournal/list.html b/layouts/techjournal/list.html
new file mode 100644
index 0000000..dcecc6c
--- /dev/null
+++ b/layouts/techjournal/list.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+
+{{ .Content }}
+
+{{ partial "techjournals.html" . }}
+{{ end }}