Add meta to Atom
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7e77bdeef1
commit
b1f2d4b51d
|
@ -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>
|
||||
|
|
|
@ -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 -%}
|
||||
|
|
Loading…
Reference in New Issue