summaryrefslogtreecommitdiff
path: root/_includes/article/footer/license.html
blob: a2c1535e0cae8bfcafc82a92aacb974dd2c76f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{%- include snippets/get-locale-string.html key='LICENSE_ANNOUNCE' -%}
{%- assign _license_announce = __return -%}

{%- if include.license -%}

  {%-assign _license_name = '<a itemprop="license" rel="license" href="[URL]">[NAME]</a>' | replace: "[URL]", include.license.url | replace: "[NAME]", include.license.name -%}
  <div class="license">
    <p>{{ _license_announce | replace: "[LICENSE]", _license_name }}
      <a rel="license" href="{{ include.license.url }}">
        <img alt="{{ include.license.name }}" src="{{ include.license.image }}" />
      </a>
    </p>
  </div>
{%- endif -%}