RSS for posts
This commit is contained in:
parent
bb118f6144
commit
8fac396d7e
13 changed files with 233 additions and 14 deletions
|
|
@ -9,6 +9,7 @@
|
|||
{% if age_confirmation %}{% include "fragments/age_restricted_check.html"
|
||||
%}{% endif %}
|
||||
<div><a href="/">< To home</a></div>
|
||||
<div><a href="{% if let Some(tags_text) = tags_text %}/posts.xml?tags={{ tags_text.replace(' ', "+") }}{% else %}/posts.xml{% endif %}">RSS feed</a></div>
|
||||
<article>
|
||||
<h2>Search</h2>
|
||||
<form method="get" action="/posts">
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@
|
|||
value="{{ application_name }}"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label>Base URL</label>
|
||||
<input name="base_url" type="text" value="{{ base_url }}" />
|
||||
</div>
|
||||
<div>
|
||||
<label>Ask for age confirmation?</label>
|
||||
<input
|
||||
|
|
|
|||
|
|
@ -92,12 +92,12 @@
|
|||
</ul>
|
||||
</article>
|
||||
{% endif %}
|
||||
<article>
|
||||
<article id="tags-list">
|
||||
<h2>Tags</h2>
|
||||
{% if tags.is_empty() %}
|
||||
<p>No tags in post. Consider adding some!</p>
|
||||
{% else %}
|
||||
<ul id="tags-list">
|
||||
<ul>
|
||||
{% for tag in tags %}
|
||||
<li>
|
||||
<a href="/posts?tags={{ tag.name }}">{{ tag.name }}</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue