Add some better logic to the resizing, add a better contacts page. sidebar hiding still in the works
This commit is contained in:
parent
d8893f0463
commit
67de08a5b8
19 changed files with 180 additions and 99 deletions
21
templates/authors/list.html
Normal file
21
templates/authors/list.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{%- block title -%}
|
||||
{{ title_macros::title(page_title="Tags", main_title=config.title) }}
|
||||
{%- endblock -%}
|
||||
|
||||
{% block content %}
|
||||
<div class="post">
|
||||
<h1 class="post-title">all tags</h1>
|
||||
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
<li class="tag-list">
|
||||
<a href="{{ term.permalink | safe }}">
|
||||
{{ term.name }} ({{ term.pages | length }} post{{ term.pages | length | pluralize }})
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock content %}
|
18
templates/authors/single.html
Normal file
18
templates/authors/single.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>
|
||||
author: {{ term.name }}
|
||||
({{ term.pages | length }} post{{ term.pages | length | pluralize }})
|
||||
</h2>
|
||||
|
||||
<div class="page-intro">
|
||||
<p class="larger">view all <a href="/authors">authors</a>.</p>
|
||||
</div>
|
||||
|
||||
<ul class="postlist">
|
||||
{% for page in term.pages | sort(attribute="date") | reverse %}
|
||||
{% include "blog-entry.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" data-theme="light">
|
||||
<html lang="en" data-theme="light" data-sidebar="shown">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
|
@ -12,36 +12,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id="sidebar" class="column">
|
||||
<a href="/" class="sb_img"><img src="https://art.pixilart.com/sr2a62fc9ed2173.png" alt="teto creature"></a>
|
||||
|
||||
<button type="button" class="theme-toggle-button" data-theme-toggle aria-label="Toggle to dark"></button>
|
||||
<script src="/darkmode.js"></script>
|
||||
|
||||
<div class="sb_header personal"><b>personal</b></div>
|
||||
<a href="/blog" class="sb_link pers">📰 blog</a><br>
|
||||
<a href="/images" class="sb_link pers">🖼️ images</a><br>
|
||||
<a href="/hardware" class="sb_link pers">🖥️ hardware</a><br>
|
||||
<a href="/software" class="sb_link pers">💾 software</a><br>
|
||||
<a href="/tags" class="sb_link pers">🔎 all tags</a><br>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="sb_header nixfox"><b>nixfox</b></div>
|
||||
<a href="/nixfox" class="sb_link pers">📰 nixfox</a><br>
|
||||
<a href="https://uptime.nixfox.ca/status/nixfox" class="sb_link fox">⬆️ uptime</a><br>
|
||||
<a href="https://mail.nixfox.ca" class="sb_link fox">📧 email</a><br>
|
||||
<a href="https://files.nixfox.ca" class="sb_link fox">☁️ nextcloud</a><br>
|
||||
<a href="https://pass.nixfox.ca" class="sb_link fox">🔒 vaultwarden</a><br>
|
||||
<a href="https://git.nixfox.ca" class="sb_link fox">🗄️ forgejo</a><br>
|
||||
<a href="https://hedgedoc.nixfox.ca" class="sb_link fox">🗒️ hedgedoc</a><br>
|
||||
<a href="https://jelly.nixfox.ca" class="sb_link fox">📼 jellyfin</a><br>
|
||||
<a href="https://live.nixfox.ca" class="sb_link fox">📹 owncast</a><br>
|
||||
<a href="https://radio.nixfox.ca" class="sb_link fox">📻 icecast</a><br>
|
||||
<a href="https://chat.nixfox.ca" class="sb_link fox">💬 matrix</a><br>
|
||||
<a href="https://tor.nixfox.ca" class="sb_link fox">🗃️ transmission</a><br>
|
||||
<a href="https://git.nixfox.ca/Bun/nixfox-reborn.git" class="sb_link fox">💽 page code</a><br>
|
||||
</div>
|
||||
{% include "sidebar.html" %}
|
||||
|
||||
<div id="main" class="column">
|
||||
<div class="container">
|
||||
|
|
15
templates/blog-entry.html
Normal file
15
templates/blog-entry.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<li class="postlist-item">
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
<br>
|
||||
{{ page.description }}
|
||||
<br>
|
||||
authors: {%- for tag in page.taxonomies.authors | sort | unique(case_sensitive=false) %}
|
||||
<a class="post-author" href="{{ get_taxonomy_url(kind='authors', name=tag) | safe }}">{{ tag }}</a>
|
||||
{% endfor -%}
|
||||
<br>
|
||||
written: {{ page.date }}
|
||||
<br>
|
||||
tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %}
|
||||
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
|
||||
{% endfor -%}
|
||||
</li>
|
|
@ -1,14 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
{{ page.title }}
|
||||
</h1>
|
||||
<p class="subtitle"><strong>
|
||||
{{ page.date }},
|
||||
tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %}
|
||||
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
|
||||
{% endfor -%}
|
||||
</strong></p>
|
||||
{{ page.content | safe }}
|
||||
<h1 class="title">
|
||||
{{ page.title }}
|
||||
</h1>
|
||||
<p class="subtitle"><strong>
|
||||
{{ page.date }},
|
||||
tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %}
|
||||
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
|
||||
{% endfor -%}
|
||||
</strong></p>
|
||||
{{ page.content | safe }}
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,27 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
{{ section.title }}
|
||||
</h1>
|
||||
|
||||
<p class="larger">sort by <a href="/tags">tags</a>.</p>
|
||||
|
||||
<ul>
|
||||
<!-- If you are using pagination, section.pages will be empty.
|
||||
You need to use the paginator object -->
|
||||
{% for page in section.pages %}
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a> - by {{ page.authors }}
|
||||
<br>
|
||||
{{ page.description }}
|
||||
<br>
|
||||
written: {{ page.date }}
|
||||
<br>
|
||||
tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %}
|
||||
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
|
||||
{% endfor -%}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h1 class="title">
|
||||
{{ section.title }}
|
||||
</h1>
|
||||
|
||||
<p class="larger">sort by <a href="/tags">tags</a>.</p>
|
||||
|
||||
<ul>
|
||||
<!-- If you are using pagination, section.pages will be empty.
|
||||
You need to use the paginator object -->
|
||||
{% for page in section.pages %}
|
||||
{% include "blog-entry.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
{{ section.title }}
|
||||
</h1>
|
||||
{{ section.content | safe }}
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
{{ section.title }}
|
||||
</h1>
|
||||
{{ section.content | safe }}
|
||||
{% endblock content %}
|
||||
|
|
31
templates/sidebar.html
Normal file
31
templates/sidebar.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<div id="sidebar" class="column">
|
||||
<a href="/" class="sb_img"><img src="https://art.pixilart.com/sr2a62fc9ed2173.png" alt="teto creature"></a>
|
||||
|
||||
<button type="button" class="theme-toggle-button" data-theme-toggle aria-label="Toggle to dark"></button>
|
||||
<script src="/darkmode.js"></script>
|
||||
|
||||
<div class="sb_header personal"><b>personal</b></div>
|
||||
<a href="/blog" class="sb_link pers">📰 blog</a><br>
|
||||
<a href="/art" class="sb_link pers">🎨 art</a><br>
|
||||
<a href="/images" class="sb_link pers">🖼️ images</a><br>
|
||||
<a href="/hardware" class="sb_link pers">🖥️ hardware</a><br>
|
||||
<a href="/software" class="sb_link pers">💾 software</a><br>
|
||||
<a href="/tags" class="sb_link pers">🔎 all tags</a><br>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="sb_header nixfox"><b>nixfox</b></div>
|
||||
<a href="/nixfox" class="sb_link pers">📰 news</a><br>
|
||||
<a href="https://uptime.nixfox.ca/status/nixfox" class="sb_link fox">⬆️ uptime</a><br>
|
||||
<a href="https://mail.nixfox.ca" class="sb_link fox">📧 email</a><br>
|
||||
<a href="https://files.nixfox.ca" class="sb_link fox">☁️ nextcloud</a><br>
|
||||
<a href="https://pass.nixfox.ca" class="sb_link fox">🔒 vaultwarden</a><br>
|
||||
<a href="https://git.nixfox.ca" class="sb_link fox">🗄️ forgejo</a><br>
|
||||
<a href="https://hedgedoc.nixfox.ca" class="sb_link fox">🗒️ hedgedoc</a><br>
|
||||
<a href="https://jelly.nixfox.ca" class="sb_link fox">📼 jellyfin</a><br>
|
||||
<a href="https://live.nixfox.ca" class="sb_link fox">📹 owncast</a><br>
|
||||
<a href="https://radio.nixfox.ca" class="sb_link fox">📻 icecast</a><br>
|
||||
<a href="https://chat.nixfox.ca" class="sb_link fox">💬 matrix</a><br>
|
||||
<a href="https://tor.nixfox.ca" class="sb_link fox">🗃️ transmission</a><br>
|
||||
<a href="https://git.nixfox.ca/Bun/nixfox-reborn.git" class="sb_link fox">💽 page code</a><br>
|
||||
</div>
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{%- block title -%}
|
||||
{{ title_macros::title(page_title="Tags", main_title=config.title) }}
|
||||
{{ title_macros::title(page_title="Tags", main_title=config.title) }}
|
||||
{%- endblock -%}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -12,17 +12,7 @@
|
|||
|
||||
<ul class="postlist">
|
||||
{% for page in term.pages | sort(attribute="date") | reverse %}
|
||||
<li class="postlist-item">
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a> - by {{ page.authors }}
|
||||
<br>
|
||||
{{ page.description }}
|
||||
<br>
|
||||
written: {{ page.date }}
|
||||
<br>
|
||||
tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %}
|
||||
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
|
||||
{% endfor -%}
|
||||
</li>
|
||||
{% include "blog-entry.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue