Skip to content
Snippets Groups Projects
Unverified Commit f0f5bfa5 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add more detailed author data

parent 7a1d68a7
No related branches found
No related tags found
No related merge requests found
{
"nik": {
"display_name": "Nik"
"display_name": "Nik",
"email": "dominik.george@teckids.org",
"fediverse": "@nik@toot.teckids.org"
},
"pinguin": {
"display_name": "Pingu"
......
......@@ -20,7 +20,6 @@ taxonomies = [
{ name = "produkt", render = false, feed = false },
{ name = "tags", render = false },
]
[markdown]
......@@ -30,6 +29,7 @@ external_links_target_blank = true
external_links_no_referrer = true
[slugify]
taxonomies = "on"
#paths_keep_dates = true
[search]
......
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
<title>{{ config.title }}
{%- if term %} - {{ term.name }}
{%- elif section.title %} - {{ section.title }}
{%- endif -%}
</title>
{%- if config.description %}
<subtitle>{{ config.description }}</subtitle>
{%- endif %}
<link rel="self" type="application/atom+xml" href="{{ feed_url | safe }}"/>
<link rel="alternate" type="text/html" href="
{%- if section -%}
{{ section.permalink | escape_xml | safe }}
{%- else -%}
{{ config.base_url | escape_xml | safe }}
{%- endif -%}
"/>
<generator uri="https://www.getzola.org/">Zola</generator>
<updated>{{ last_updated | date(format="%+") }}</updated>
<id>{{ feed_url | safe }}</id>
{%- for page in pages %}
{% set authors_data = load_data(path="authors.json") -%}
<entry xml:lang="{{ page.lang }}">
<title>{{ page.title }}</title>
<published>{{ page.date | date(format="%+") }}</published>
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
{% for author in page.authors %}
<author>
<name>{{ authors_data[author].display_name }}</name>
<uri>https://teckids.org/authors/{{ author }}/</uri>
{% if authors_data[author].email -%}
<email>{{ authors_data[author].email }}</email>
{% endif -%}
</author>
{% endfor %}
<link rel="alternate" type="text/html" href="{{ page.permalink | safe }}"/>
<id>{{ page.permalink | safe }}</id>
{% if page.summary %}
<summary type="html">{{ page.summary }}</summary>
{% else %}
<content type="html" xml:base="{{ page.permalink | escape_xml | safe }}">{{ page.content }}</content>
{% endif %}
</entry>
{%- endfor %}
</feed>
......@@ -15,6 +15,8 @@
<link rel="alternate" type="application/atom+xml" href="{{ get_url(path="atom.xml", trailing_slash=false) }}" />
{% endblock %}
{% block meta_extra %}{% endblock %}
{% block og %}
<meta property="og:site_name" content="{{ config.title }}" />
{% if thing %}
......
......@@ -2,6 +2,13 @@
{% block rdfa_type %}schema:BlogPosting{% endblock %}
{% block meta_extra %}
{% set authors_data = load_data(path="authors.json") -%}
{% if authors_data[page.authors.0].fediverse %}
<meta name="fediverse:creator" content="{{ authors_data[page.authors.0].fediverse }}" />
{% endif %}
{% endblock %}
{% block content %}
{% set blog_section = get_section(path="blog/_index.md") %}
{% set post = page -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment