diff --git a/alchemy/templates/archives.html b/alchemy/templates/archives.html index 8ace156..2a115a5 100644 --- a/alchemy/templates/archives.html +++ b/alchemy/templates/archives.html @@ -12,7 +12,7 @@
{% for article in dates %}
{{ article.locale_date }}
-
{{ article.title }}
+
{{ article.title }}{% if article.link %} {% endif %}
{% endfor %}
{% endblock %} diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 9fa242e..31b71cc 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -10,7 +10,13 @@ {% endblock %} {% block page_header %} + {% if article.link %} + + {% endif %} {{ article.title }} + {% if article.link %} + + {% endif %} {% endblock %} {% block content %} @@ -53,6 +59,11 @@
{{ article.content }} + {% if article.link %} + + {% endif %}
{% include 'include/comments.html' %} diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index f9c6a46..2bc19e9 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -40,7 +40,7 @@

- {{ article.title }} + {{ article.title }}{% if article.link %} {% endif %}

{{ article.summary|striptags }} diff --git a/docs/pelican-tips.md b/docs/pelican-tips.md index c54709b..5b83822 100644 --- a/docs/pelican-tips.md +++ b/docs/pelican-tips.md @@ -59,6 +59,11 @@ RFG_FAVICONS = True unzip -l .zip ``` +## Link posts + +When adding a Link: field to the post's metadata header, the article will be rendered as a link post, which means a link icon will appear behind its title, and the title of the article will link to the destination of the link when viewing the article page. In that same page a 'view link' link/button will be rendered at the end of the content. + + ## Use `sitemap.xml` There is a `sitemap.html` Jinja2 template that can be used to [generate a sitemap](https://github.com/getpelican/pelican/wiki/Tips-n-Tricks#generate-sitemapxml).