mirror of
https://github.com/Speyll/anemone.git
synced 2024-11-21 20:56:29 +00:00
added webring shortcode
This commit is contained in:
parent
f70c2070d0
commit
42801d375a
6 changed files with 18 additions and 16 deletions
|
@ -38,9 +38,3 @@ header_nav = [
|
||||||
{ name = "/journal/", url = "/journal" },
|
{ name = "/journal/", url = "/journal" },
|
||||||
{ name = "/blog/", url = "/blog" },
|
{ 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)
|
- Email: [jgll6dij6@mozmail.com](mailto:jgll6dij6@mozmail.com)
|
||||||
- Code repositories: [speyll@github.com](https://github.com/Speyll)
|
- 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="#") }}
|
|
@ -61,6 +61,9 @@ Now a table:
|
||||||
|
|
||||||
random image of a dog[^4]
|
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.
|
[^1]: this is a footnote. It should highlight if you click on the corresponding superscript number.
|
||||||
|
|
|
@ -307,3 +307,7 @@ textarea {
|
||||||
.floatLeft {
|
.floatLeft {
|
||||||
float: left
|
float: left
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.webring {
|
||||||
|
margin: 0.4rem;
|
||||||
|
}
|
|
@ -128,14 +128,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</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>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</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>
|
Loading…
Reference in a new issue