added webring shortcode

This commit is contained in:
Speyll 2023-07-25 04:05:11 +01:00
parent f70c2070d0
commit 42801d375a
6 changed files with 18 additions and 16 deletions

View file

@ -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 = "#" },
#]
]

View file

@ -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.
- {{ metaData(content="@Speyll") }} anywhere else.
## Webrings
- 🈯 {{ webring(prev="#", webring="#", webringName="Random Webring", next="#") }}
- 🎶 {{ webring(prev="#", webring="#", webringName="Another Webring", next="#") }}

View file

@ -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.

View file

@ -306,4 +306,8 @@ textarea {
.floatLeft {
float: left
}
.webring {
margin: 0.4rem;
}

View file

@ -128,14 +128,6 @@
</div>
</div>
{% if config.extra.footer_nav %}
<nav class="textCenter">
{% for nav_item in config.extra.footer_nav %}
<a href="{{ nav_item.url | safe }}">{{ nav_item.name }}</a>
{% endfor %}
</nav>
{% endif %}
</footer>
</div>
</body>

View file

@ -0,0 +1,4 @@
<span class="webring">
<a href={{prev}}></a>
<a href={{webring}}>{{webringName}}</a>
<a href={{next}}></a></span>