From 6dddf991f748bc0d4cf1526060fb58e0f9400fdb Mon Sep 17 00:00:00 2001 From: avitex Date: Sun, 12 Apr 2020 03:49:16 +1000 Subject: [PATCH] fix links and titles, gen rss --- config.toml | 1 + content/about/bio.md | 1 + content/about/social.md | 1 + templates/macros.html | 2 +- templates/root.html | 7 ++++--- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index 62ce2df..efdf727 100644 --- a/config.toml +++ b/config.toml @@ -5,6 +5,7 @@ description = "Home of avitex" compile_sass = true highlight_code = true build_search_index = true +generate_rss = true taxonomies = [ {name = "blog/tags", rss = true}, diff --git a/content/about/bio.md b/content/about/bio.md index c7091a8..ab372ed 100644 --- a/content/about/bio.md +++ b/content/about/bio.md @@ -1,4 +1,5 @@ +++ +title = "Bio" +++ Nothing here... yet \ No newline at end of file diff --git a/content/about/social.md b/content/about/social.md index 6599d47..c6d53f5 100644 --- a/content/about/social.md +++ b/content/about/social.md @@ -1,4 +1,5 @@ +++ +title = "Social" +++ ## Identity diff --git a/templates/macros.html b/templates/macros.html index 1a42728..dff502c 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,6 +1,6 @@ {% macro link(url) %} {%- if url is starting_with("/") or url is starting_with("./") -%} - {{ get_url(path=url) }} + {{ get_url(path=url, trailing_slash=false) }} {%- else -%} {{ url }} {%- endif -%} diff --git a/templates/root.html b/templates/root.html index 6fcf075..2e76be4 100644 --- a/templates/root.html +++ b/templates/root.html @@ -6,9 +6,10 @@ - - - + + + + {% block title %}{{ config.title }}{% endblock title %}