Add meta to Atom
continuous-integration/drone/push Build is passing Details

pull/1/head
mat ess 2022-11-18 23:36:47 -05:00
parent 7e77bdeef1
commit b1f2d4b51d
2 changed files with 6 additions and 4 deletions

View File

@ -30,11 +30,13 @@
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
<id>{{ page.permalink | safe }}</id>
<summary>
{{ page.description | safe | default(value="a post from mat's blog.") -}}
</summary>
<summary>{{ page.description | default(value="a post from mat's blog.") | safe }}</summary>
<content type="html">
{%- if page.extra.hero %}
<![CDATA[<meta property="og:image" content="{{ get_url(path=page.path) }}/hero.webp">]]>
<![CDATA[<meta property="twitter:image" content="{{ get_url(path=page.path) }}/hero.webp">]]>
<![CDATA[{{ post_macros::hero(page=page) }}]]>
{% endif -%}
{{ page.content }}
</content>
</entry>

View File

@ -16,7 +16,7 @@
{%- endfor %}
{%- endfor %}
<link href="{{ get_url(path='style/fonts.css', cachebust=true) }}" rel="stylesheet preload" as="style" />
{# RSS #}
{# Atom #}
{%- block rss -%}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path='atom.xml', trailing_slash=false) }}">
{%- endblock -%}