1
0

Enable Atom feed

This commit is contained in:
Emil Miler 2021-12-14 21:03:30 +01:00
parent 132296db66
commit 030045935b
3 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,9 @@ title = "em.0x45.cz"
compile_sass = true compile_sass = true
build_search_index = false build_search_index = false
generate_feed = false
feed_filename = "atom.xml"
taxonomies = [ taxonomies = [
{name = "categories", feed = false} {name = "categories", feed = false}
] ]

View File

@ -1,4 +1,5 @@
+++ +++
title = "All posts" title = "All posts"
template = "posts.html" template = "posts.html"
generate_feed = true
+++ +++

View File

@ -5,6 +5,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{ config.title }}{% endblock %}</title> <title>{% block title %}{{ config.title }}{% endblock %}</title>
<link rel="alternate" type="application/atom+xml" title="Atom" href="{{ get_url(path="/posts/atom.xml", trailing_slash=false) }}">
<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
</head> </head>
<body> <body>
@ -13,7 +14,7 @@
<a href="{{ config.base_url }}" class="title">{{ config.title }}</a> <a href="{{ config.base_url }}" class="title">{{ config.title }}</a>
<nav> <nav>
<a href="">Source</a>, <a href="">Source</a>,
<a href="">RSS</a> <a href="{{ get_url(path="/posts/atom.xml", trailing_slash=false) }}">RSS/Atom</a>
</nav> </nav>
</div> </div>
</header> </header>