added webring shortcode
This commit is contained in:
@@ -38,9 +38,3 @@ header_nav = [
|
||||
{ name = "/journal/", url = "/journal" },
|
||||
{ name = "/blog/", url = "/blog" },
|
||||
]
|
||||
|
||||
#footer_nav = [
|
||||
# { name = "< previous", url = "#" },
|
||||
# { name = "webring", url = "#" },
|
||||
# { name = "next >", url = "#" },
|
||||
#]
|
||||
@@ -25,3 +25,8 @@ this list is just the content of `content/_index.md`, the tests are shamelessly
|
||||
- Email: [jgll6dij6@mozmail.com](mailto:jgll6dij6@mozmail.com)
|
||||
- Code repositories: [speyll@github.com](https://github.com/Speyll)
|
||||
- {{ metaData(content="@Speyll") }} anywhere else.
|
||||
|
||||
## Webrings
|
||||
|
||||
- 🈯 {{ webring(prev="#", webring="#", webringName="Random Webring", next="#") }}
|
||||
- 🎶 {{ webring(prev="#", webring="#", webringName="Another Webring", next="#") }}
|
||||
@@ -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.
|
||||
|
||||
@@ -307,3 +307,7 @@ textarea {
|
||||
.floatLeft {
|
||||
float: left
|
||||
}
|
||||
|
||||
.webring {
|
||||
margin: 0.4rem;
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
4
templates/shortcodes/webring.html
Normal file
4
templates/shortcodes/webring.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<span class="webring">
|
||||
<a href={{prev}}>⇱</a>
|
||||
<a href={{webring}}>{{webringName}}</a>
|
||||
<a href={{next}}>⇲</a></span>
|
||||
Reference in New Issue
Block a user