Add footer with RSS link

This commit is contained in:
Emi Matchu 2024-09-20 14:39:13 -07:00
parent ecad5ffd95
commit 02203c187f
3 changed files with 43 additions and 25 deletions

View file

@ -26,6 +26,10 @@
maybe other things later! maybe other things later!
</p> </p>
</header> </header>
{{ content }} <main>{{ content }}</main>
<footer>
Made with love by Matchu and the OpenNeo team!
<nav><a href="/feed.xml">Follow with an RSS reader</a></nav>
</footer>
</body> </body>
</html> </html>

View file

@ -2,24 +2,22 @@
layout: default layout: default
--- ---
<main> <article>
<article> <header>
<header> <h2>
<h2> <a href="{{ page.url }}">{{ page.title }}</a>
<a href="{{ page.url }}">{{ page.title }}</a> </h2>
</h2> <p role="doc-subtitle">
<p role="doc-subtitle"> Posted on {{ page.date | date_to_string: "ordinal", "US" }}{% if
Posted on {{ page.date | date_to_string: "ordinal", "US" }}{% if page.author %}, by {{ page.author }}{% endif %}
page.author %}, by {{ page.author }}{% endif %} </p>
</p> </header>
</header>
{% if page.banner %} {% if page.banner %}
<img <img
src="{{ page.banner.url }}" src="{{ page.banner.url }}"
width="{{ page.banner.width }}" width="{{ page.banner.width }}"
height="{{ page.banner.height}}" height="{{ page.banner.height}}"
/> />
{% endif %} {{ content }} {% endif %} {{ content }}
</article> </article>
</main>

View file

@ -44,9 +44,7 @@ body > header {
row-gap: 0.5em; row-gap: 0.5em;
column-gap: 0.5em; column-gap: 0.5em;
border-bottom: 1px solid #060;
padding-bottom: 0.75em; padding-bottom: 0.75em;
margin-bottom: 0.75em;
.logo { .logo {
grid-area: logo; grid-area: logo;
@ -71,11 +69,29 @@ body > header {
[role="doc-subtitle"] { [role="doc-subtitle"] {
grid-area: subtitle; grid-area: subtitle;
font-size: 0.75em; font-size: 0.85em;
margin: 0; margin: 0;
} }
} }
main {
border-block: 1px solid #060;
padding-block: 0.75em;
}
body > footer {
font-size: 0.85em;
padding-block: 0.5em;
nav {
display: inline;
}
nav::before {
content: "• ";
}
}
article { article {
> header { > header {
h2 { h2 {
@ -85,7 +101,7 @@ article {
} }
p { p {
font-size: 0.75em; font-size: 0.85em;
margin-top: 0; margin-top: 0;
} }
} }