This commit is contained in:
2026-07-16 12:28:42 +03:00
parent e1f7c33692
commit 512a54ba2d
13 changed files with 87 additions and 31 deletions
+3 -3
View File
@@ -2,14 +2,14 @@
<nav class="post-nav" aria-label="Post navigation">
{% if page.higher %}
<a class="post-nav-link post-nav-prev hover-scale" href="{{ page.higher.permalink }}">
<span class="post-nav-label">&larr; Previous</span>
<span class="post-nav-label">&larr; {{ config.extra.post_nav_prev_label | default(value="Previous") }}</span>
<span class="post-nav-title">{{ page.higher.title }}</span>
</a>
{% endif %}
{% if page.lower %}
<a class="post-nav-link post-nav-next hover-scale" href="{{ page.lower.permalink }}">
<span class="post-nav-label">Next &rarr;</span>
<span class="post-nav-label">{{ config.extra.post_nav_next_label | default(value="Next") }} &rarr;</span>
<span class="post-nav-title">{{ page.lower.title }}</span>
</a>
{% endif %}
+36 -6
View File
@@ -5,12 +5,42 @@
<p class="hero-subtitle">{{ config.description }}</p>
<div class="masthead-links">
{% if config.extra.github_url %}<a href="{{ config.extra.github_url }}" target="_blank" rel="noopener noreferrer">GitHub</a>{% endif %}
{% if config.extra.twitter_url %}<a href="{{ config.extra.twitter_url }}" target="_blank" rel="noopener noreferrer">Twitter</a>{% endif %}
{% if config.extra.youtube_url %}<a href="{{ config.extra.youtube_url }}" target="_blank" rel="noopener noreferrer">YouTube</a>{% endif %}
{% if config.extra.linkedin_url %}<a href="{{ config.extra.linkedin_url }}" target="_blank" rel="noopener noreferrer">LinkedIn</a>{% endif %}
{% if config.extra.email %}<a href="mailto:{{ config.extra.email }}">Email</a>{% endif %}
{% if config.extra.show_rss_link %}<a href="{{ get_url(path="rss.xml") }}">RSS</a>{% endif %}
{% if config.extra.github_url %}
<a href="{{ config.extra.github_url }}" target="_blank" rel="noopener noreferrer">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
<span>GitHub</span>
</a>
{% endif %}
{% if config.extra.twitter_url %}
<a href="{{ config.extra.twitter_url }}" target="_blank" rel="noopener noreferrer">
<svg viewBox="0 0 24 24" width="14" height="14" fill="currentColor"><path d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"></path></svg>
<span>Twitter</span>
</a>
{% endif %}
{% if config.extra.youtube_url %}
<a href="{{ config.extra.youtube_url }}" target="_blank" rel="noopener noreferrer">
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor"><path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.42a2.78 2.78 0 0 0-1.94 2C1 8.13 1 12 1 12s0 3.87.46 5.58a2.78 2.78 0 0 0 1.94 2C5.12 20 12 20 12 20s6.88 0 8.6-.42a2.78 2.78 0 0 0 1.94-2C23 15.87 23 12 23 12s0-3.87-.46-5.58z"></path><polygon points="9.75 15.02 15.5 12 9.75 8.98 9.75 15.02" fill="var(--bg-color)"></polygon></svg>
<span>YouTube</span>
</a>
{% endif %}
{% if config.extra.linkedin_url %}
<a href="{{ config.extra.linkedin_url }}" target="_blank" rel="noopener noreferrer">
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>
<span>LinkedIn</span>
</a>
{% endif %}
{% if config.extra.email %}
<a href="mailto:{{ config.extra.email }}">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>
<span>Email</span>
</a>
{% endif %}
{% if config.extra.show_rss_link %}
<a href="{{ get_url(path="rss.xml") }}">
<svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>
<span>RSS</span>
</a>
{% endif %}
</div>
</div>
{% endif %}
+1 -1
View File
@@ -11,7 +11,7 @@
<div class="series-nav" aria-label="Post series: {{ page.extra.series }}">
<div class="series-nav-header">
<span class="series-nav-eyebrow">Series</span>
<span class="series-nav-eyebrow">{{ config.extra.series_label | default(value="Series") }}</span>
<span class="series-nav-title">{{ page.extra.series }}</span>
<span class="series-nav-badge">{{ page.extra.series_index }} / {{ series_total }}</span>
</div>
+1 -1
View File
@@ -1,5 +1,5 @@
<div class="social-share">
<span class="share-label">Share:</span>
<span class="share-label">{{ config.extra.share_label | default(value="Share:") }}</span>
<a
href="https://twitter.com/intent/tweet?text={{ page.title | urlencode }}&url={{ page.permalink | urlencode }}"
target="_blank"
+1 -1
View File
@@ -1,7 +1,7 @@
{% if page.toc %}
<aside class="post-toc-sidebar" aria-label="Table of contents">
<nav class="toc-nav">
<h2 class="toc-sidebar-title">Contents</h2>
<h2 class="toc-sidebar-title">{{ config.extra.toc_sidebar_title | default(value="Contents") }}</h2>
<ul>
{% for h1 in page.toc %}
<li>
+1 -1
View File
@@ -1,6 +1,6 @@
{% if page.toc %}
<details class="post-toc">
<summary>Table of Contents</summary>
<summary>{{ config.extra.toc_title | default(value="Table of Contents") }}</summary>
<ul>
{% for h1 in page.toc %}
<li>