From 5d093b3a339e6d497d62410df81a4dd8116c70bdaad36d738e175326819a0703 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 9 Nov 2022 00:00:00 +0000 Subject: Create configDir for journal generation This gets rid of the ugly dependency on Python scripts. By using configDir, two different configs can be specified. One for Gemini and one for the Web. This keeps everything separate, tidy, and much more maintainable. --- config/_default/config.toml | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 config/_default/config.toml (limited to 'config/_default') diff --git a/config/_default/config.toml b/config/_default/config.toml new file mode 100644 index 0000000..3d4b20b --- /dev/null +++ b/config/_default/config.toml @@ -0,0 +1,63 @@ +theme = "hugo-theme-nicksphere" +baseURL = "https://nicksphere.ch" +title = "Nicholas Johnson" +copyright = "CC BY-SA 4.0" +languageCode = "en-us" +disablePathToLower = true +rssLimit = 20 +ignoreFiles = ['content/templates/logo\.txt$'] + +[author] + name = "Nicholas Johnson" + email = "nick@nicksphere.ch" + +[params] + description = "Online journal about computing, philosophy, spirituality, privacy, and society." + keywords = "computing, computers, philosophy, spirituality, privacy, surveillance, mass surveillance, free software, libre software, technology, society, politics, opinion, education, educational, blog, blogging, gemini, geminispace, gemini capsule" + indexTitle = "Welcome To My Online Journal!" + indexIntro = "I write about computing, philosophy, privacy, society, spirituality, and more." + beginCopyrightYear = 2019 + +[permalinks] + entry = "/:year/:month/:day/:filename" + +[menu] + [[menu.main]] + name = "About Page" + url = "/about/" + weight = 1 + [[menu.main]] + name = "Promoted Links" + url = "/promoted/" + weight = 2 + [[menu.main]] + name = "Glossary" + url = "/glossary/" + weight = 3 + [[menu.main]] + name = "Atom Feed" + url = "/atom.xml" + weight = 4 + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + hardWraps = true + [markup.goldmark.extensions] + linkify = false + +[mediaTypes] + [mediaTypes."application/atom"] + suffixes = ["xml"] + [mediaTypes."text/gemini"] + suffixes = ["gmi"] + +[outputFormats] + [outputFormats.Atom] + mediaType = "application/atom" + baseName = "atom" + [outputFormats.Gemini] + mediaType = "text/gemini" + [outputFormats.Gemini_Atom] + mediaType = "application/atom" + baseName = "atom" -- cgit v1.2.3