refactor(theme): migrated from website repo
migrated the files required to create the themes for this mkdocs site. MR !1 #1
This commit is contained in:
7
theme-overrides/partials/article_extended_preview.html
Executable file
7
theme-overrides/partials/article_extended_preview.html
Executable file
@ -0,0 +1,7 @@
|
||||
<a href="{{ page.url|url }}">
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/arrow-right-24.svg" %}
|
||||
</span>
|
||||
Continue reading
|
||||
<hr>
|
||||
</a>
|
||||
32
theme-overrides/partials/article_metadata.html
Executable file
32
theme-overrides/partials/article_metadata.html
Executable file
@ -0,0 +1,32 @@
|
||||
<aside class="mdx-author">
|
||||
{% if config.extra.blog.author_image is defined %}
|
||||
<p>
|
||||
<img alt={{ config.extra.blog.author }} src={{ config.extra.blog.author_image }}>
|
||||
</p>
|
||||
{% endif %}
|
||||
<p>
|
||||
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
{% if config.extra.blog.author %}
|
||||
<strong itemprop="name">{{ config.extra.blog.author }}</strong>
|
||||
·
|
||||
{% endif %}
|
||||
{% include "partials/article_social.html" %}
|
||||
</span>
|
||||
<span>
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/calendar-24.svg" %}
|
||||
</span>
|
||||
<span itemprop="dateCreated">{{ page.meta.date.strftime("%Y-%m-%d") }}</span> ·
|
||||
{% if page.meta.git_revision_date_localized %}Updated <span itemprop="dateModified">{{ page.meta.git_revision_date_localized.replace("\n", "").replace("\r", "") }}</span> <br>{% endif %}
|
||||
<span class="twemoji">
|
||||
{% include ".icons/octicons/clock-24.svg" %}
|
||||
</span>
|
||||
<!--Min reading time is 1 minute-->
|
||||
{% set read_time = page.content | wordcount // config.extra.blog.words_read_per_minute|default(300, true) %}
|
||||
{% if read_time == 0 %}
|
||||
{% set read_time = 1 %}
|
||||
{% endif %}
|
||||
<span itemprop="timeRequired">{{ read_time }} min </span>read
|
||||
</span>
|
||||
</p>
|
||||
</aside>
|
||||
17
theme-overrides/partials/article_social.html
Executable file
17
theme-overrides/partials/article_social.html
Executable file
@ -0,0 +1,17 @@
|
||||
{% if config.extra.social %}
|
||||
{% set ns = namespace() %}
|
||||
{% for social in config.extra.social %}
|
||||
{% set title = social.name %}
|
||||
{% if not title and "//" in social.link %}
|
||||
{% set _,url = social.link.split("//") %}
|
||||
{% set title = url.split("/")[0] %}
|
||||
{% endif %}
|
||||
{% if ns.line_break is defined %}
|
||||
{{ ns.line_break }}
|
||||
{% endif %}
|
||||
<a href="{{ social.link }}" target="_blank" rel="noopener" title="{{ title | e }}" class="twemoji">
|
||||
{% include ".icons/" ~ social.icon ~ ".svg" %}
|
||||
</a>
|
||||
{% set ns.line_break = " · " %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
14
theme-overrides/partials/footer.html
Executable file
14
theme-overrides/partials/footer.html
Executable file
@ -0,0 +1,14 @@
|
||||
{#-
|
||||
This file was automatically generated - do not edit
|
||||
-#}
|
||||
<footer class="md-footer">
|
||||
|
||||
<div class="md-footer-meta md-typeset">
|
||||
<div class="md-footer-meta__inner md-grid">
|
||||
{% include "partials/copyright.html" %}
|
||||
{% if config.extra.social %}
|
||||
{% include "partials/social.html" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user