mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-06 21:14:06 -04:00
23 lines
931 B
HTML
23 lines
931 B
HTML
{% import "macros/figures.html" as figures %}
|
|
|
|
{%- macro link_alternate(filename, title) -%}
|
|
{%- if filename is ending_with("atom.xml") -%}
|
|
{%- set type = 'type="application/atom+xml" ' -%}
|
|
{%- elif filename is ending_with("rss.xml") -%}
|
|
{%- set type = 'type="application/rss+xml" ' -%}
|
|
{%- elif filename is ending_with(".json") -%}
|
|
{%- set type = 'type="application/feed+json" ' -%}
|
|
{%- endif -%}
|
|
<link rel="alternate" {{ type | default(value="") | safe -}} href="{{ get_url(path=filename) }}" title="{{ title | replace(from='"', to=""") | safe }}">
|
|
{%- endmacro -%}
|
|
|
|
|
|
|
|
{%- macro content(page) -%}
|
|
|
|
{%if page.taxonomies.category is containing("photo") %}
|
|
{{ figures::image(src=page.extra.picture_src, caption=page.description) }}
|
|
{% else %}
|
|
{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}
|
|
{% endif %}
|
|
{%- endmacro -%}
|