From 42801d375a14de3dd7aaf86f3d0fbc613bb611a0 Mon Sep 17 00:00:00 2001 From: Speyll Date: Tue, 25 Jul 2023 04:05:11 +0100 Subject: [PATCH] added webring shortcode --- config.toml | 8 +------- content/_index.md | 7 ++++++- content/blog/2020-07-07-overview-post.md | 3 +++ static/css/style.css | 4 ++++ templates/base.html | 8 -------- templates/shortcodes/webring.html | 4 ++++ 6 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 templates/shortcodes/webring.html diff --git a/config.toml b/config.toml index 6720e2c..a30e767 100644 --- a/config.toml +++ b/config.toml @@ -37,10 +37,4 @@ header_nav = [ { name = "/about/", url = "/about" }, { name = "/journal/", url = "/journal" }, { name = "/blog/", url = "/blog" }, -] - -#footer_nav = [ -# { name = "< previous", url = "#" }, -# { name = "webring", url = "#" }, -# { name = "next >", url = "#" }, -#] \ No newline at end of file +] \ No newline at end of file diff --git a/content/_index.md b/content/_index.md index de242a0..110c8c9 100644 --- a/content/_index.md +++ b/content/_index.md @@ -24,4 +24,9 @@ this list is just the content of `content/_index.md`, the tests are shamelessly ## Online presence - Email: [jgll6dij6@mozmail.com](mailto:jgll6dij6@mozmail.com) - Code repositories: [speyll@github.com](https://github.com/Speyll) - - {{ metaData(content="@Speyll") }} anywhere else. \ No newline at end of file + - {{ metaData(content="@Speyll") }} anywhere else. + +## Webrings + + - 🈯 {{ webring(prev="#", webring="#", webringName="Random Webring", next="#") }} + - 🎶 {{ webring(prev="#", webring="#", webringName="Another Webring", next="#") }} \ No newline at end of file diff --git a/content/blog/2020-07-07-overview-post.md b/content/blog/2020-07-07-overview-post.md index 4224e7d..6f1db46 100644 --- a/content/blog/2020-07-07-overview-post.md +++ b/content/blog/2020-07-07-overview-post.md @@ -61,6 +61,9 @@ Now a table: random image of a dog[^4] +## Webrings + - 🈯 {{ webring(prev="#", webring="#", webringName="Random Webring", next="#") }} + --- [^1]: this is a footnote. It should highlight if you click on the corresponding superscript number. diff --git a/static/css/style.css b/static/css/style.css index 7076101..b345e1b 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -306,4 +306,8 @@ textarea { .floatLeft { float: left +} + +.webring { + margin: 0.4rem; } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 16c67e1..0190f32 100644 --- a/templates/base.html +++ b/templates/base.html @@ -128,14 +128,6 @@ - - {% if config.extra.footer_nav %} - - {% endif %} diff --git a/templates/shortcodes/webring.html b/templates/shortcodes/webring.html new file mode 100644 index 0000000..f5e94d3 --- /dev/null +++ b/templates/shortcodes/webring.html @@ -0,0 +1,4 @@ + +⇱ +{{webringName}} +⇲ \ No newline at end of file