Skip to content

Commit a4092fb

Browse files
committed
Create source.html
1 parent 7096af5 commit a4092fb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

overrides/partials/source.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{# Custom repo link without Material\'s source component JS to avoid GitHub release API lookup #}
2+
{%- set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" -%}
3+
<a href="{{ config.repo_url }}" title="{{ lang.t('source') }}" class="md-source">
4+
<div class="md-source__icon md-icon">
5+
{% include ".icons/" ~ icon ~ ".svg" %}
6+
</div>
7+
<div class="md-source__repository">
8+
{{ config.repo_name }}
9+
</div>
10+
</a>

0 commit comments

Comments
 (0)