Somethin, idk

This commit is contained in:
Hazel Layne Aranda 2020-12-23 11:55:55 -05:00
parent da8221bf81
commit 7cbf18ce74
9 changed files with 79 additions and 10 deletions

View File

@ -16,6 +16,7 @@ build_search_index = false
[extra]
menu = [
{url = "$BASE_URL", name = "Home"},
{url = "$BASE_URL/glog", name = "GLOG Rules"},
{url = "https://pics.hazelnut.dev", name = "Photos"},
{url = "$BASE_URL/glog", name = "GLOG Rules", external = true},
{url = "$BASE_URL/tabletop", name = "Tabletop Shit"},
{url = "https://pics.hazelnut.dev", name = "Photos", external = true},
]

4
content/farewell.md Normal file
View File

@ -0,0 +1,4 @@
+++
title = "Farewell"
draft = true
+++

View File

@ -0,0 +1,5 @@
+++
title = "Tabletop Experiments and Stuff"
+++
HEWWO

View File

@ -0,0 +1,8 @@
+++
title = "New Tabletop RPG System (WIP)"
description = "Bored and restless, so time it is to design a tabletop system..."
date = 2020-12-21
draft = true
+++
GAAAA

View File

@ -0,0 +1,8 @@
+++
title = "New Tabletop RPG System NOT REAL"
description = "Bored and restless, so time it is to design a tabletop system..."
date = 2020-12-21
draft = true
+++
GAAAA

2
static/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

View File

@ -74,17 +74,27 @@ a:not(.internal)::after {
content: " " url("/link.svg");
}
a.external::after {
a.show-url::after {
content: " [" attr(href) "]" url("/link.svg");
color: var(--link-fancy);
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav li {
display: inline;
}
nav a {
color: var(--link-fancy);
}
nav a::after {
content: " " url("/link.svg");
nav a.internal {
margin-right: 1ch;
}
div.table-wrapper {
@ -137,3 +147,8 @@ div.table-wrapper tr:nth-child(even) {
float: right;
cursor: pointer;
}
p.post-date {
color: var(--decoration);
margin: 0;
}

View File

@ -1,10 +1,14 @@
<header>
<h1 class="site-title">{{ config.title }}</h1>
<nav>
{% for item in config.extra.menu %}
<a href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
{{ item.name }}
</a>
{% endfor %}
<ul>
{% for item in config.extra.menu %}
<li>
<a class="{% if not item.external %}internal{% endif %}" href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">
{{ item.name }}
</a>
</li>
{% endfor %}
</ul>
</nav>
</header>

22
templates/section.html Normal file
View File

@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block title %}{{ section.title }} - Hazelnut{% endblock title %}
{% block content %}
{{ section.content | safe }}
<hr>
<ul class="post-list">
{% for page in section.pages %}
<li>
<a class="internal" href="{{ page.permalink }}">
{{ page.title }}
{% if page.date %}
<p class="post-date">
{{ page.date | date(format="%Y-%m-%d") }}
</p>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endblock content %}