{{ p.title }}
{%- if pr.image -%}; the definition is the first
quoted line, else the first numbered sense, else the first paragraph under the heading.
{%- endcomment -%}
{%- assign html = p.content | markdownify -%} {%- comment -%} content may still be raw Markdown when the stream page renders {%- endcomment -%}
{%- assign pos = "" -%}
{%- if html contains "" | slice: 1 | first | split: "<" | first | strip -%}{%- endif -%}
{%- if html contains "" -%}{%- assign def = html | split: "" | slice: 1 | first | split: "
" | first -%}
{%- elsif html contains "" -%}{%- assign def = html | split: "" | slice: 1 | first | split: "- " | slice: 1 | first | split: "
" | first -%}
{%- else -%}{%- assign def = html | split: "" | last | split: "" | first -%}{%- endif -%}
{%- assign def = def | strip_html | strip | split: "; “" | first | truncate: 220 -%}
{{ p.title }}{% if pos != "" %} {{ pos | downcase }}{% endif %}
{%- if def != "" -%}{{ def }}{%- endif -%}
{%- if p.source-author -%}Came across it reading {{ p.source-author }}{%- endif -%}
{%- endif -%}
{%- if p.show_title or p.source == "blog" -%}{% if p.source == "blog" %}{{ p.title }}{% else %}{{ p.title }}{% endif %}
{%- endif -%}
{%- if p.source == "blog" -%}
{%- if p.header.teaser -%}
{%- endif -%}
{{ p.excerpt | strip_html | truncate: 280 }}
{%- endif -%}
{%- if p.video -%}
{%- if p.video.duration > 0 -%}
{%- assign mins = p.video.duration | divided_by: 60 -%}{%- assign secs = p.video.duration | modulo: 60 -%}
{{ mins }}:{% if secs < 10 %}0{% endif %}{{ secs }}
{%- endif -%}
{%- endif -%}
{%- if p.activity -%}
{%- assign a = p.activity -%}
{%- assign hrs = a.duration_s | divided_by: 3600 -%}{%- assign mins = a.duration_s | modulo: 3600 | divided_by: 60 -%}{%- assign secs = a.duration_s | modulo: 60 -%}
- {{ a.type }}
{%- if a.distance_m > 0 -%}
- {% if a.type == "Swim" %}{{ a.distance_m }} m{% else %}{{ a.distance_m | divided_by: 1609.34 | round: 2 }} mi{% endif %}
{%- endif -%}
- {% if hrs > 0 %}{{ hrs }}:{% if mins < 10 %}0{% endif %}{% endif %}{{ mins }}:{% if secs < 10 %}0{% endif %}{{ secs }}
{%- if a.elevation_m > 0 -%}- {{ a.elevation_m | times: 3.28084 | round }} ft climb
{%- endif -%}
{%- if a.location -%}- {{ a.location | remove: ", United States" }}
{%- endif -%}
{%- endif -%}
{%- if p.source == "blog" or p.source == "presentations" or p.source == "dictionary" -%}
{%- elsif include.single or p.source != "youtube" -%}
{{ p.content_html }}
{%- else -%}
{{ p.post_text | strip_newlines | truncate: 200 }}
{%- endif -%}
{%- if media_count > 0 -%}
{%- endif -%}
{%- if p.link_card -%}
{%- if p.link_card.image -%}
{%- endif -%}
{{ p.link_card.title }}
{%- if p.link_card.description != "" -%}{{ p.link_card.description | truncate: 140 }}{%- endif -%}
{%- assign host = p.link_card.url | split: "/" -%}
{{ host[2] | remove: "www." }}
{%- endif -%}
{%- comment -%} "View on my site · Pixelfed · Mastodon": the first is this post's page here, then the original, then cross-posts {%- endcomment -%}
View on
{%- unless include.single or p.source == "presentations" or p.source == "dictionary" %} {% if p.source == "blog" %}my blog{% else %}my site{% endif %}{% endunless -%}
{%- if p.source == "dictionary" %} my dictionary{%- endif -%}
{%- if p.post_url -%}{%- unless include.single or p.source == "presentations" %} ·{% endunless %} {{ label }}{%- endif -%}
{%- for x in also %} · {{ x.label }}{%- endfor %}
" -%}{%- assign def = html | split: "" | slice: 1 | first | split: "" | first -%} {%- elsif html contains "" -%}{%- assign def = html | split: "
" | slice: 1 | first | split: "
- " | slice: 1 | first | split: "
" | first -%} {%- else -%}{%- assign def = html | split: "" | last | split: "" | first -%}{%- endif -%} {%- assign def = def | strip_html | strip | split: "; “" | first | truncate: 220 -%}{{ p.title }}{% if pos != "" %} {{ pos | downcase }}{% endif %}
{%- if def != "" -%}{{ def }}{%- endif -%} {%- if p.source-author -%}Came across it reading {{ p.source-author }}{%- endif -%} {%- endif -%} {%- if p.show_title or p.source == "blog" -%}{% if p.source == "blog" %}{{ p.title }}{% else %}{{ p.title }}{% endif %}
{%- endif -%} {%- if p.source == "blog" -%} {%- if p.header.teaser -%}{%- endif -%}
{{ p.excerpt | strip_html | truncate: 280 }}{%- endif -%} {%- if p.video -%}{%- if p.video.duration > 0 -%} {%- assign mins = p.video.duration | divided_by: 60 -%}{%- assign secs = p.video.duration | modulo: 60 -%} {{ mins }}:{% if secs < 10 %}0{% endif %}{{ secs }} {%- endif -%} {%- endif -%} {%- if p.activity -%} {%- assign a = p.activity -%} {%- assign hrs = a.duration_s | divided_by: 3600 -%}{%- assign mins = a.duration_s | modulo: 3600 | divided_by: 60 -%}{%- assign secs = a.duration_s | modulo: 60 -%}
- {{ a.type }}
{%- if a.distance_m > 0 -%}- {% if a.type == "Swim" %}{{ a.distance_m }} m{% else %}{{ a.distance_m | divided_by: 1609.34 | round: 2 }} mi{% endif %}
{%- endif -%}- {% if hrs > 0 %}{{ hrs }}:{% if mins < 10 %}0{% endif %}{% endif %}{{ mins }}:{% if secs < 10 %}0{% endif %}{{ secs }}
{%- if a.elevation_m > 0 -%}- {{ a.elevation_m | times: 3.28084 | round }} ft climb
{%- endif -%} {%- if a.location -%}- {{ a.location | remove: ", United States" }}
{%- endif -%}{%- endif -%} {%- if p.source == "blog" or p.source == "presentations" or p.source == "dictionary" -%} {%- elsif include.single or p.source != "youtube" -%}
{{ p.content_html }}{%- else -%}{{ p.post_text | strip_newlines | truncate: 200 }}{%- endif -%} {%- if media_count > 0 -%} {%- endif -%} {%- if p.link_card -%}{%- if p.link_card.image -%}{%- endif -%} {%- comment -%} "View on my site · Pixelfed · Mastodon": the first is this post's page here, then the original, then cross-posts {%- endcomment -%}{%- endif -%}
{{ p.link_card.title }}{%- if p.link_card.description != "" -%}{{ p.link_card.description | truncate: 140 }}{%- endif -%} {%- assign host = p.link_card.url | split: "/" -%}{{ host[2] | remove: "www." }}View on {%- unless include.single or p.source == "presentations" or p.source == "dictionary" %} {% if p.source == "blog" %}my blog{% else %}my site{% endif %}{% endunless -%} {%- if p.source == "dictionary" %} my dictionary{%- endif -%} {%- if p.post_url -%}{%- unless include.single or p.source == "presentations" %} ·{% endunless %} {{ label }}{%- endif -%} {%- for x in also %} · {{ x.label }}{%- endfor %}