post tags and archive
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: post
|
layout: post
|
||||||
author: Sam Hadow
|
author: Sam Hadow
|
||||||
|
tags: nextcloud
|
||||||
---
|
---
|
||||||
|
|
||||||
On my server I self-host nextcloud with a PostgreSQL database and this container image *docker.io/library/nextcloud:fpm-alpine*.
|
On my server I self-host nextcloud with a PostgreSQL database and this container image *docker.io/library/nextcloud:fpm-alpine*.
|
||||||
|
|||||||
32
archive.html
Normal file
32
archive.html
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
title: "Post Archive"
|
||||||
|
permalink: /archive.html
|
||||||
|
---
|
||||||
|
<h1>All my posts organized by their tags</h1>
|
||||||
|
|
||||||
|
<div id="tags-list">
|
||||||
|
{% for tag in site.tags %}
|
||||||
|
{% assign tag_name = tag | first %}
|
||||||
|
{% assign tag_name_pretty = tag_name | replace: "_", " " | capitalize %}
|
||||||
|
<div class="tag-list">
|
||||||
|
<div id="#{{ tag_name | slugize }}"></div>
|
||||||
|
<h3 class="post-list-heading line-bottom"> In #{{ tag_name }}: </h3>
|
||||||
|
<a name="{{ tag_name | slugize }}"></a>
|
||||||
|
<ul class="post-list post-list-narrow">
|
||||||
|
{% for post in site.tags[tag_name] %}
|
||||||
|
<li>
|
||||||
|
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
||||||
|
<b>
|
||||||
|
<a href="{{ post.url | relative_url }}">
|
||||||
|
{{ post.title | escape }}
|
||||||
|
</a>
|
||||||
|
</b> - <i>{{ post.date | date: date_format }}</i>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Code partially taken from https://emmatheeng.github.io/projects/blog_setup/blog-tags.html -->
|
||||||
11
blog.html
11
blog.html
@@ -7,12 +7,21 @@ title: Blog
|
|||||||
<ul>
|
<ul>
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<li>
|
<li>
|
||||||
<h2>
|
<h2 style="margin-bottom: 0.6em;">
|
||||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||||
<span style="font-size: 0.6em; font-style: italic; margin-left: 0.5rem;">
|
<span style="font-size: 0.6em; font-style: italic; margin-left: 0.5rem;">
|
||||||
{{ post.date | date: "%B %d, %Y" }}
|
{{ post.date | date: "%B %d, %Y" }}
|
||||||
</span>
|
</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
<span style="display: block; font-size: 0.8em; font-style: italic; margin-bottom: 0.6em;">
|
||||||
|
{%- if post.tags -%}
|
||||||
|
{% for tag in post.tags %}
|
||||||
|
<a href="{{ site.baseurl }}/archive.html#{{ tag | slugify }}">
|
||||||
|
#{{ tag }}
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
{%- endif -%}
|
||||||
|
</span>
|
||||||
{{ post.excerpt }}
|
{{ post.excerpt }}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user