done
This commit is contained in:
parent
0314b6a427
commit
16128c6279
53 changed files with 713 additions and 75 deletions
3
site/_includes/-footer.njk
Normal file
3
site/_includes/-footer.njk
Normal file
|
@ -0,0 +1,3 @@
|
|||
<footer>
|
||||
© Joshua Seigler 2024 - present
|
||||
</footer>
|
|
@ -1,17 +1,15 @@
|
|||
<header>
|
||||
<nav>
|
||||
<div>
|
||||
<div class="nav-categories">
|
||||
<a href="{{ "/" | url }}">joshua.seigler.net</a>
|
||||
{% for name, collection in collections %}
|
||||
{% if name !== "all" %}
|
||||
<a href="{{ ["/", name ,"/"] | join("") | url }}">/{{name | capitalize }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<a href="{{ "/posts" | url }}">/posts</a>
|
||||
<a href="{{ "/timeline" | url }}">/timeline</a>
|
||||
<a href="{{ "/recipes" | url }}">/recipes</a>
|
||||
<a href="{{ "/music" | url }}">/music</a>
|
||||
</div>
|
||||
<aside>
|
||||
Language:
|
||||
<label data-font="english">English <input type="radio" name="language" value="english"/></label>
|
||||
<label data-font="aurebesh">Aurebesh <input type="radio" name="language" value="aurebesh"/></label>
|
||||
<label class="nav-language-button" data-font="english">English<input type="radio" name="language" value="english"/></label>
|
||||
<label class="nav-language-button" data-font="aurebesh">Aurebesh<input type="radio" name="language" value="aurebesh"/></label>
|
||||
<script type="text/javascript">
|
||||
const initialLanguage = localStorage.getItem("language") ?? 'english'
|
||||
document.body.setAttribute('data-font', initialLanguage);
|
||||
|
@ -29,4 +27,12 @@
|
|||
</aside>
|
||||
</nav>
|
||||
<h1>{{ tag | capitalize if tag else title }}</h1>
|
||||
<div class="header-meta">
|
||||
{%-if author -%}
|
||||
<author>{{ author }}</author>
|
||||
{%- endif -%}
|
||||
{%- if dateString -%}
|
||||
<date>{{ dateString }}</date>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
@ -10,10 +10,11 @@ title: Joshua's Homepage
|
|||
<link rel="stylesheet" href="{{ "/assets/site.css" | url }}"/>
|
||||
<title>{{ tag | capitalize if tag else title }} - joshua.seigler.net</title>
|
||||
</head>
|
||||
<body data-font="english">
|
||||
<body data-font="english" data-path="{{page.url}}">
|
||||
{% include "-header.njk" %}
|
||||
<main>
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
{% include "-footer.njk" %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
18
site/_includes/collection.njk
Normal file
18
site/_includes/collection.njk
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
layout: "base.njk"
|
||||
eleventyComputed:
|
||||
title: "{{ page.fileSlug | capitalize }}"
|
||||
---
|
||||
{{ content | safe }}
|
||||
{% set tag = page.fileSlug %}
|
||||
{% if collections[tag] %}
|
||||
<section>
|
||||
{% for item in collections[tag] | reverse %}
|
||||
<article class="item-summary">
|
||||
<a href="{{ item.url }}">{{ item.data.title }}</a>
|
||||
{% if item.data.dateString %}<aside>{{item.data.dateString}}</aside>{% endif %}
|
||||
<p class="item-summary-description">{{ item.data.description }}</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
layout: base.njk
|
||||
---
|
||||
{{ content | safe }}
|
||||
{{ content | safe }}
|
Loading…
Add table
Add a link
Reference in a new issue