From d0e40059b070886c6d10ea3d7ae899e596cce53f Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Sun, 13 Nov 2022 11:42:25 -0500 Subject: [PATCH] Replace twitter icon with mastodon. Add attribution for SVG. --- config.toml | 4 +- templates/index.html | 122 ++++++++++++++++++++++++++++++++++++++++++ templates/macros.html | 2 + 3 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 templates/index.html diff --git a/config.toml b/config.toml index 5d875f0..8226b70 100644 --- a/config.toml +++ b/config.toml @@ -39,8 +39,8 @@ hermit_menu = [ hermit_social = [ { name = "github", link = "https://github.com/IslandUsurper" }, -{ name = "twitter", link = "https://fosstodon.org/@IslandUsurper" }, -{ name = "twitter", link = "https://theres.life/@IslandUsurper" } +{ name = "mastodon", link = "https://fosstodon.org/@IslandUsurper" }, +{ name = "mastodon", link = "https://theres.life/@IslandUsurper" } ] [extra.author] diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..346e965 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,122 @@ +{% import "macros.html" as macros %} + + + + + + + + + + + + + + {% if page.title %} + {{page.title}} + {% else %} + {{config.title}} + {% endif %} + + {% if config.generate_feed %} + + {% endif %} + + + + {% block header %} + {% endblock header %} + + {% block title %} +
+
+

{{config.title}}

+

{{config.extra.home_subtitle}}

+
+ {{macros::render_social_icons()}} +
+ {% endblock title %} + {% block main %} + + {% endblock main %} +
+ + {% block footer %} + + {% endblock footer %} +
+ + + + + + + + + {% if config.extra.highlightjs.enable %} + + + + + + {% if config.extra.highlightjs.clipboard %} + + + {% endif %} + + {% endif %} + + {% if not config.extra.highlightjs.enable %} + + {% endif %} + + + {% block js_footer %} + {% endblock js_footer %} + + {% if config.extra.google_analytics.enable %} + + + + {% endif %} + + diff --git a/templates/macros.html b/templates/macros.html index f8fdc3c..c25773d 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -47,6 +47,8 @@ {% elif icon.name == "twitter" %} + {% elif icon.name == "mastodon" %} + {% elif icon.name == "youtube" %} {% elif icon.name == "email" %}