mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 06:43:50 -04:00
Refactored JavaScript architecture
This commit is contained in:
@@ -26,24 +26,23 @@
|
||||
-->
|
||||
{% set platform = config.extra.repo_icon or repo_url %}
|
||||
{% if "github" in platform %}
|
||||
{% set repo_icon = "md-source--github" %}
|
||||
{% set repo_type = "github" %}
|
||||
{% set repo_icon = "md-source--github" %} <!-- TODO: remove this in favor of type -->
|
||||
{% elif "gitlab" in platform %}
|
||||
{% set repo_type = "gitlab" %}
|
||||
{% set repo_icon = "md-source--gitlab" %}
|
||||
{% elif "bitbucket" in platform %}
|
||||
{% set repo_type = "bitbucket" %}
|
||||
{% set repo_icon = "md-source--bitbucket" %}
|
||||
{% else %}
|
||||
{% set repo_type = "" %}
|
||||
{% set repo_icon = "" %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Repository containing source -->
|
||||
<a href="{{ repo_url }}" title="Go to repository"
|
||||
class="md-source {{ repo_icon }}">
|
||||
class="md-source {{ repo_icon }}" data-md-source="{{ repo_type }}"> <!-- use <> for custom / private repo -->
|
||||
<div class="md-source__repository">
|
||||
{{ repo_name }}
|
||||
<ul class="md-source__facts">
|
||||
{% if config.extra.version %}
|
||||
<li class="md-source__fact">v{{ config.extra.version }}</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user