mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
82 lines
2.8 KiB
HTML
82 lines
2.8 KiB
HTML
{#-
|
|
This file was automatically generated - do not edit
|
|
-#}
|
|
{% if page.meta %}
|
|
{% if page.meta.git_revision_date_localized %}
|
|
{% set updated = page.meta.git_revision_date_localized %}
|
|
{% elif page.meta.revision_date %}
|
|
{% set updated = page.meta.revision_date %}
|
|
{% endif %}
|
|
{% if page.meta.git_creation_date_localized %}
|
|
{% set created = page.meta.git_creation_date_localized %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if updated or created or git_info or committers %}
|
|
<aside class="md-source-file">
|
|
{% if updated %}
|
|
<span class="md-source-file__fact">
|
|
<span class="md-icon" title="{{ lang.t('source.file.date.updated') }}">
|
|
{% include ".icons/material/clock-edit-outline.svg" %}
|
|
</span>
|
|
{{ updated }}
|
|
</span>
|
|
{% endif %}
|
|
{% if created %}
|
|
<span class="md-source-file__fact">
|
|
<span class="md-icon" title="{{ lang.t('source.file.date.created') }}">
|
|
{% include ".icons/material/clock-plus-outline.svg" %}
|
|
</span>
|
|
{{ created }}
|
|
</span>
|
|
{% endif %}
|
|
{% if git_info %}
|
|
{% set authors = git_info.get("page_authors") %}
|
|
<span class="md-source-file__fact">
|
|
<span class="md-icon" title="{{ lang.t('source.file.contributors') }}">
|
|
{% if authors | length == 1 %}
|
|
{% include ".icons/material/account.svg" %}
|
|
{% else %}
|
|
{% include ".icons/material/account-group.svg" %}
|
|
{% endif %}
|
|
</span>
|
|
<nav>
|
|
{% for author in authors %}
|
|
<a href="mailto:{{ author.email }}">
|
|
{{- author.name -}}
|
|
</a>
|
|
{%- if loop.revindex > 1 %}, {% endif -%}
|
|
{% endfor %}
|
|
</nav>
|
|
</span>
|
|
{% endif %}
|
|
{% if committers %}
|
|
<span class="md-source-file__fact">
|
|
<span class="md-icon" title="{{ lang.t('source.file.contributors') }}">
|
|
{% include ".icons/material/github.svg" %}
|
|
</span>
|
|
<span>GitHub</span>
|
|
<nav>
|
|
{% for author in committers[:4] %}
|
|
<a href="{{ author.url }}" class="md-author" title="@{{ author.login }}">
|
|
{% set separator = "&" if "?" in author.avatar else "?" %}
|
|
<img src="{{ author.avatar }}{{ separator }}size=72" alt="{{ author.name or 'GitHub user' }}">
|
|
</a>
|
|
{% endfor %}
|
|
{% set more = committers[4:] | length %}
|
|
{% if more > 0 %}
|
|
{% if page.edit_url %}
|
|
<a href="{{ page.edit_url | replace('edit', 'blob') }}" class="md-author md-author--more">
|
|
+{{ more }}
|
|
</a>
|
|
{% else %}
|
|
<span class="md-author md-author--more">
|
|
+{{ more }}
|
|
</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
</nav>
|
|
</span>
|
|
{% endif %}
|
|
</aside>
|
|
{% endif %}
|