Watch
1
0
Fork
You've already forked rgebee-info
0

feat: Update templates and styling
All checks were successful
Build / build (push) Successful in 18s

This commit is contained in:
Chris 2026-10-29 20:37:59 +00:00
commit ab79feb4ab
7 changed files with 432 additions and 203 deletions

View file

@ -1,9 +1,12 @@
{% extends "base.html" %}
{% block title %}404 - {{ config.title }}{% endblock title %}
{% block content %}
<div class="404-content">
<div class="error-404-content">
<div class="title">
<h1>404 Page Not Found</h1>
</div>
<p>That page does not exist.</p>
</div>
{% endblock content %}

View file

@ -2,48 +2,52 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>
{% if page.title %}
{{ page.title }}
{% elif section.title %}
{{ config.title }} - {{ section.title }}
{% else %}
{{ config.title }}
{% endif %}
</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="{{ config.description }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark">
<meta name="theme-color" content="#16191d">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
{% set desc = config.description %}
{% if page and page.description %}
{% set desc = page.description %}
{% endif %}
<meta name="description" content="{{ desc }}">
{% if page %}
<link rel="canonical" href="{{ page.canonical_url | safe }}">
<meta property="og:type" content="{% if page.kind == 'page' %}article{% else %}website{% endif %}">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:description" content="{{ desc }}">
<meta property="og:url" content="{{ page.canonical_url | safe }}">
{% endif %}
<link rel="stylesheet" href="/global.css">
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg">
<link
rel="alternate"
type="application/atom+xml"
title="RSS"
href="{{ config.base_url }}/atom.xml"
>
<link rel="icon" type="image/png" href="/images/favicon.svg">
<link rel="alternate" type="application/atom+xml" title="Atom" href="{{ config.base_url | safe }}/atom.xml">
</head>
<body>
{% set path = current_path | default(value="") %}
<header class="container">
<nav>
<nav aria-label="nav">
<ul>
<li>
<a href="/">Home</a>
<a href="/"{% if path == "/" %} aria-current="page"{% endif %}>Home</a>
</li>
<li>
<a href="/blog">Blog</a>
<a href="/blog/"{% if path == "/blog/" %} aria-current="page"{% endif %}>Blog</a>
</li>
</ul>
</nav>
</header>
<main class="container">
{% block content %} {% endblock content %}
{% block content %}
{% endblock content %}
</main>
<footer class="container">
<a href="/atom.xml" target="_blank" rel="noopener">RSS</a>
<div>
<a href="/atom.xml" target="_blank" rel="noopener">RSS</a>
</div>
</footer>
</body>
</html>

View file

@ -1,12 +1,36 @@
{% extends "base.html" %}
{% block title %}{{ page.title }}{% endblock title %}
{% block content %}
<div class="blog-page-content">
<div class="title">
<h1>{{ page.title }}</h1>
<span>{{ page.date }}</span>
<span>{{ page.date | date(format="%Y-%m-%d") }}</span>
{% if page.taxonomies.tags %}
<span class="tags">
{% for tag in page.taxonomies.tags %}
{% set t = get_taxonomy_term(kind="tags", term=tag) %}
<a href="{{ t.permalink | safe }}">{{ tag }}</a>{% if not loop.last %} · {% endif %}
{% endfor %}
</span>
{% endif %}
</div>
{{ page.content | safe }}
</div>
{# adjacent posts: higher = older (below in the list), lower = newer (above) #}
{% if page.higher or page.lower %}
<nav class="post-nav" aria-label="Other posts">
{% if page.higher %}
<a href="{{ page.higher.permalink | safe }}">&lt;&lt; Previous</a>
{% else %}
<span></span>
{% endif %}
{% if page.lower %}
<a href="{{ page.lower.permalink | safe }}">Next &gt;&gt;</a>
{% else %}
<span></span>
{% endif %}
</nav>
{% endif %}
</div>
{% endblock content %}

View file

@ -1,21 +1,19 @@
{% extends "base.html" %}
{% block title %}{{ section.title }} - {{ config.title }}{% endblock title %}
{% block content %}
<div class="blog-content">
<div class="blog">
<div class="title">
<h1>{{ section.title }}</h1>
</div>
<div>
<ul class="blog-list">
{% for page in section.pages %}
<li class="blog-item">
<div>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</div>
<span class="blog-item-meta">{{ page.date }}</span>
</li>
{% endfor %}
</ul>
</div>
<ul class="blog-list">
{% for page in section.pages %}
<li class="blog-item">
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
<span class="blog-item-meta">{{ page.date | date(format="%Y-%m-%d") }}</span>
</li>
{% endfor %}
</ul>
</div>
{% endblock content %}

View file

@ -3,7 +3,7 @@
{% block content %}
<div class="index-content">
<div class="title">
<img src="/images/logo.png" alt="logo" />
<img src="/images/logo.png" alt="" />
<h1>{{ config.title }}</h1>
</div>
<div>
@ -15,13 +15,15 @@
<h2>Latest blog posts</h2>
<ul class="blog-list">
{% set blog = get_section(path="blog/_index.md") %}
{% for page in blog.pages | slice(end=5) %}
<li class="blog-item">
<div>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</div>
<span class="blog-item-meta">{{ page.date }}</span>
</li>
{% for page in blog.pages %}
{% if loop.index <= 5 %}
<li class="blog-item">
<div>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</div>
<span class="blog-item-meta">{{ page.date | date(format="%Y-%m-%d") }}</span>
</li>
{% endif %}
{% endfor %}
</ul>
</div>

View file

@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}Tags - {{ config.title }}{% endblock title %}
{% block content %}
<div class="blog">
<div class="title">
<h1>Tags</h1>
</div>
<p>
{% for term in terms %}
<a href="{{ term.permalink | safe }}">{{ term.name }}</a>{% if not loop.last %} · {% endif %}
{% endfor %}
</p>
</div>
{% endblock content %}

View file

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}{{ term.name }} - {{ config.title }}{% endblock title %}
{% block content %}
<div class="blog">
<div class="title">
<h1>{{ term.name }}</h1>
</div>
<ul class="blog-list">
{% for page in term.pages %}
<li class="blog-item">
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
<span class="blog-item-meta">{{ page.date | date(format="%Y-%m-%d") }}</span>
</li>
{% endfor %}
</ul>
</div>
{% endblock content %}