mirror of
https://github.com/kittywitch/dork.dev.git
synced 2026-02-09 07:09:18 -08:00
feat: fix sections
This commit is contained in:
parent
8ef43c8de1
commit
e07f15d555
3 changed files with 21 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
+++
|
+++
|
||||||
title = "My writings"
|
title = "Writings"
|
||||||
sort_by = "date"
|
sort_by = "date"
|
||||||
template = "blog.html"
|
template = "writings.html"
|
||||||
page_template = "page.html"
|
page_template = "page.html"
|
||||||
draft = false
|
draft = false
|
||||||
+++
|
+++
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section id="blogposts">
|
<section id="external">
|
||||||
<h2>Things I find value in sharing</h2>
|
<h2>Things I find value in sharing</h2>
|
||||||
{% set data = load_data(path="content/external/external.toml") %}
|
{% set data = load_data(path="content/external/external.toml") %}
|
||||||
{% for category in data.categories %}
|
{% for category in data.categories %}
|
||||||
|
|
|
||||||
18
templates/writings.html
Normal file
18
templates/writings.html
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<section id="writings">
|
||||||
|
<h2>Writings</h2>
|
||||||
|
<ul>
|
||||||
|
{% for post in section.pages %}
|
||||||
|
<li>
|
||||||
|
<article>
|
||||||
|
<a href="{{post.permalink | safe}}"><h3>{{ post.title }}</h3></a>
|
||||||
|
<p>Posted: <time>{{ post.date }}</time></p>
|
||||||
|
</article>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
{% endblock content %}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue