about summary refs log tree commit diff
path: root/users/fcuny/blog/config.toml
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-04-22 12:44:27 -0700
committerFranck Cuny <franck@fcuny.net>2021-04-22 12:44:27 -0700
commitef3fa6ba26fcf11fdd2325764147f56c90b94a7b (patch)
tree4da9b40592d68d96f24c188cded6853c0f8b77bd /users/fcuny/blog/config.toml
parenttoml: re-configure markup (diff)
downloadworld-ef3fa6ba26fcf11fdd2325764147f56c90b94a7b.tar.gz
layout: add a navbar
I want to differentiate blog's entries from more general notes. For
this, we create two menu entries, and add a navbar at the top.

The nav bar let us select between the two kind of articles: blogs or
notes. For now we have a single blog entry, and no notes.

The page to list entries is simplified: we use the same layout for all
lists (tags, notes, blogs).

The CSS is updated to support the new nav bar.
Diffstat (limited to '')
-rw-r--r--users/fcuny/blog/config.toml18
1 files changed, 16 insertions, 2 deletions
diff --git a/users/fcuny/blog/config.toml b/users/fcuny/blog/config.toml
index 31f75af..6100ba5 100644
--- a/users/fcuny/blog/config.toml
+++ b/users/fcuny/blog/config.toml
@@ -1,6 +1,6 @@
 baseURL = "http://fcuny.net/"
 languageCode = "en-us"
-title = "Franck Cuny's Website"
+title = "Franck's rambling"
 publishDir = "docs"
 enableGitInfo = true
 
@@ -11,9 +11,23 @@ enableGitInfo = true
   tag = "tags"
 
 [permalinks]
-  articles = "/:section/:slug/"
+  blog = "/blog/:slug/"
+  notes = "/notes/:slug/"
   tags = "/tags/:slug/"
 
+[menu]
+  [[menu.main]]
+    identifier = "articles"
+    name = "blog"
+    title = "articles"
+    url = "/blog/"
+
+  [[menu.main]]
+    identifier = "notes"
+    name = "notes"
+    title = "notes"
+    url = "/notes/"
+
 [markup]
   [markup.tableOfContents]
     startLevel = 1