Sha256: 211be82bc0f9b435dc665f6b60d25bf4764f548905c464a764011f90b4e70476

Contents?: true

Size: 850 Bytes

Versions: 4

Compression:

Stored size: 850 Bytes

Contents

{% comment %}
  @param actor [ActivityDrop] Actor
  @param without_link [Boolean] Don't link
{% endcomment %}

{% if include.actor.available %}
  {% assign id = include.actor.id | strip_html %}
  {% assign instance_hostname = id | split: '/' %}
  {% assign instance_hostname = instance_hostname[2] %}

  {% capture mention %}
    @<span>{{- include.actor.preferredUsername | strip_html -}}@{{- instance_hostname -}}</span>
  {% endcapture %}

  {% capture mention %}
    <span class="h-card break-wrap" translate="no">
      {% if include.without_link %}
        <span class="mention">{{- mention -}}</span>
      {% else %}
        {% include_cached external_link.html class="u-url mention" href=id text=mention %}
      {% endif %}
    </span>
  {% endcapture %}

  {{ mention | normalize_whitespace }}
{% else %}
  {{ include.actor }}
{% endif %}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
compost-jekyll-theme-0.3.8 _includes/activity_pub/actor_mention.html
compost-jekyll-theme-0.3.7 _includes/activity_pub/actor_mention.html
compost-jekyll-theme-0.3.6 _includes/activity_pub/actor_mention.html
compost-jekyll-theme-0.3.5 _includes/activity_pub/actor_mention.html