Matt Langford
A pastor who writes about building better workflows and creating meaningful systems.
Skip to main content
Matt Langford
About
☀
☾
Archive
/ May 2025
There is 1 post in this archive.
2025 May
Save Webpages to Godspeed with this Bookmarklet
{{ webmentions | size }}
{% assign all_webmentions=webmentions %} {% assign likes="" | split: "" %} {% assign reposts="" | split: "" %} {% assign bookmarks="" | split: "" %} {% assign replies="" | split: "" %} {% assign mentions_list="" | split: "" %} {% for mention in all_webmentions %} {% if mention.type == "like" %} {% assign likes=likes | push: mention %} {% elsif mention.type == "repost" %} {% assign reposts=reposts | push: mention %} {% elsif mention.type == "bookmark" %} {% assign bookmarks=bookmarks | push: mention %} {% elsif mention.type == "reply" %} {% assign replies=replies | push: mention %} {% elsif mention.type == "link" %} {% assign mentions_list=mentions_list | push: mention %} {% endif %} {% endfor %} {% assign reactions=likes | concat: reposts | concat: bookmarks %} {% assign total_count=all_webmentions | size %} {% if total_count > 0 %}
{{ total_count }} Webmention{% if total_count != 1 %}s{% endif %}
What is this?
{% if reactions.size > 0 %}
{%- assign parts="" | split: "" -%} {%- if likes.size > 0 -%} {%- capture like_part -%}{{ likes.size }} Like{% if likes.size != 1 %}s{% endif %}{%- endcapture -%} {%- assign parts=parts | push: like_part -%} {%- endif -%} {%- if reposts.size > 0 -%} {%- capture repost_part -%}{{ reposts.size }} Repost{% if reposts.size != 1 %}s{% endif %}{%- endcapture -%} {%- assign parts=parts | push: repost_part -%} {%- endif -%} {%- if bookmarks.size > 0 -%} {%- capture bookmark_part -%}{{ bookmarks.size }} Save{% if bookmarks.size != 1 %}s{% endif %}{%- endcapture -%} {%- assign parts = parts | push: bookmark_part -%} {%- endif -%} {{ parts | join: ", " }}
{% for reaction in reactions %} {% assign author = reaction.author %} {% assign name = author.name | default: 'Anonymous' %} {% assign photo = author.photo %} {% assign url = reaction.url | default: author.url | default: '#' %} {% if photo %}
{% else %}
{{ name | slice: 0 }}
{% endif %} {% endfor %}
{% endif %} {% if replies.size > 0 %}
{{ replies.size }} Repl{% if replies.size != 1 %}ies{% else %}y{% endif %}
{% for reply in replies %} {% include webmentions/mention-item.html mention=reply %} {% endfor %}
{% endif %} {% if mentions_list.size > 0 %}
{{ mentions_list.size }} Mention{% if mentions_list.size != 1 %}s{% endif %}
{% for mention in mentions_list %} {% include webmentions/mention-item.html mention=mention %} {% endfor %}
{% endif %}
{% endif %}