From a61894890099e0f34e146462aeb90a268fa35ff6 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 18 Apr 2023 15:59:02 +0100 Subject: added techjournal section --- config.toml | 8 ++++++++ content/techjournal/Jekyll_Hugo_gh_pages.md | 20 ++++++++++++++++++++ layouts/partials/techjournals.html | 7 +++++++ layouts/techjournal/list.html | 6 ++++++ 4 files changed, 41 insertions(+) create mode 100644 content/techjournal/Jekyll_Hugo_gh_pages.md create mode 100644 layouts/partials/techjournals.html create mode 100644 layouts/techjournal/list.html diff --git a/config.toml b/config.toml index 938080f..2051845 100644 --- a/config.toml +++ b/config.toml @@ -15,6 +15,14 @@ pygmentsUseClasses = true mainSections = ['blog', 'about', 'stream', 'reading'] [menu] + [[menu.main]] + identifier = "techjournal" + name = "Techjournal" + title = "techjournal" + url = "/techjournal/" + weight = 10 + post = '| ' + [[menu.main]] identifier = "blog" name = "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 @@ + 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 }} -- cgit v1.2.3