Update Beautiful Jekyll to the latest commit version

This commit is contained in:
johnnyzb 2025-05-16 16:35:38 +03:00
parent 55804453a2
commit 484c65f982
33 changed files with 983 additions and 408 deletions

View file

@ -0,0 +1,8 @@
{% if site.cloudflare_analytics %}
<!-- Cloudflare Web Analytics -->
<script defer
src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "{{ site.cloudflare_analytics}}"}'>
</script>
<!-- End Cloudflare Web Analytics -->
{% endif %}

View file

@ -0,0 +1,7 @@
{% if site.commentbox %}
<div class="commentbox"></div>
<script src="https://unpkg.com/commentbox.io/dist/commentBox.min.js"></script>
<script>commentBox('{{ site.commentbox }}')</script>
{% endif %}

View file

@ -3,4 +3,6 @@
{% include fb-comment.html %}
{% include staticman-comments.html %}
{% include utterances-comment.html %}
{% include giscus-comment.html %}
{% include commentbox.html %}
{% endif %}

View file

@ -12,7 +12,7 @@
{% if site.url-pretty %}
&nbsp;&nbsp;&bull;&nbsp;&nbsp;
<a href="{{ '' | absolute_url }}">{{ site.url-pretty }}</a>
<a href="{{ '/' | absolute_url }}">{{ site.url-pretty }}</a>
{% endif %}
</div>
</footer>

View file

@ -20,7 +20,7 @@
{% if site.url-pretty %}
&nbsp;&bull;&nbsp;
<span class="author-site">
<a href="{% if site.url-canonical %}{{ site.url-canonical }}{% else %}{{ '' | absolute_url }}{% endif %}">{{ site.url-pretty }}</a>
<a href="{% if site.url-canonical %}{{ site.url-canonical }}{% else %}{{ '/' | absolute_url }}{% endif %}">{{ site.url-pretty }}</a>
</span>
{% endif %}
@ -30,6 +30,12 @@
<a href="http://{{- site.matomo.uri -}}/index.php?module=CoreAdminHome&action=optOut" target="_blank" class="text_muted">Do-not-Track</a>
{% endif %}
{% endif%}
{% if site.edit_page_button and site.github.repository_url %}
&nbsp;&bull;&nbsp;
<a title="Edit this page on GitHub" href="{{ site.github.repository_url }}/edit/{{ site.github.source.branch }}/{{ page.path }}" class="text_muted">Edit page</a>
{% endif%}
</p>
{% unless site.remove-ads %}<p class="theme-by text-muted">
Powered by

View file

@ -0,0 +1,16 @@
{% if site.giscus.repository and site.giscus.hostname %}
<script src="https://{{ site.giscus.hostname }}/client.js"
data-repo="{{ site.giscus.repository }}"
data-repo-id="{{ site.giscus.repository-id }}"
data-category="{{ site.giscus.category }}"
data-category-id="{{ site.giscus.category-id }}"
data-mapping="{{ site.giscus.mapping }}"
data-reactions-enabled="{{ site.giscus.reactions-enabled }}"
data-emit-metadata="{{ site.giscus.emit-metadata }}"
data-theme="{{ site.giscus.theme }}"
crossorigin="anonymous"
async>
</script>
{% endif %}

View file

@ -1,5 +1,17 @@
{% if site.google_analytics %}
<!-- Google Analytics -->
{% unless site.gtag %}
<div id="bj-ganalytics-deprecated-msg" style="position: fixed; background: #b90404; bottom: 0; width: 100%; z-index: 10000; color: #f0f0f0; text-align: center; padding: 0.5rem;">
<div title="Close" onclick="$(this).parent().remove()" style="position: absolute; right: 5px; top: 0; font-size: 1.5em; line-height: 1; cursor: pointer;">&times;</div>
<div style="max-width: 800px; margin: auto; font-size: 1.1em;">
This website is using outdated Google Analytics
<details style="font-size: 0.8em;">
<summary>More info</summary>
As of July 2023, Google's Universal Analytics is going away and being replaced by Google Analytics 4. This website is still using the old Universal Analytics. In order to remove this message, the website owner must remove the <code>google_analytics</code> property in the website's config file, and optionally replace it with the new <code>gtag</code> property.
</details>
</div>
</div>
{% endunless %}
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {

View file

@ -2,7 +2,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% capture title %}
{% capture pagetitle %}
{%- if page.share-title -%}
{{ page.share-title | strip_html | xml_escape }}
{%- elsif page.title -%}
@ -12,6 +12,14 @@
{%- endif -%}
{% endcapture %}
{% capture title %}
{%- if site.title and site.title-on-all-pages and (site.title != pagetitle) -%}
{{ pagetitle }} | {{ site.title }}
{%- else -%}
{{ pagetitle }}
{%- endif -%}
{% endcapture %}
{% capture description %}
{%- if page.share-description -%}
{{ page.share-description | strip_html | xml_escape }}
@ -25,8 +33,15 @@
<title>{{ title }}</title>
{% if site.author %}
<meta name="author" content="{{ site.author }}">
{% capture author %}
{%- if page.author -%}
{{ page.author | strip_html }}
{%- elsif site.author -%}
{{ site.author }}
{%- endif -%}
{% endcapture %}
{% if author != "" %}
<meta name="author" content="{{ author }}">
{% endif %}
<meta name="description" content="{{ description }}">
@ -39,11 +54,15 @@
<meta name="keywords" content="{{ site.keywords }}">
{% endif %}
{% if site.rss-description %}
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
{% endif %}
{% include gtag.html %}
{% include gtm_head.html %}
{% include google_analytics.html %}
{% include cloudflare_analytics.html %}
{% include mathjax.html %}
{% if layout.common-ext-css %}
{% for css in layout.common-ext-css %}
@ -109,7 +128,9 @@
{% if page.id %}
<meta property="og:type" content="article">
<meta property="og:article:author" content="{{ site.author }}">
{% if author != "" %}
<meta property="og:article:author" content="{{ author }}">
{% endif %}
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
<meta property="og:url" content="{{ page.url | absolute_url }}">
<link rel="canonical" href="{{ page.url | absolute_url }}">
@ -140,6 +161,11 @@
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
{% endif %}
{% assign favicon_exists = site.static_files | where: "path", "/favicon.ico" | size %}
{% if favicon_exists == 1 %}
<link rel="icon" href="{{ '/favicon.ico' | relative_url }}" />
{% endif %}
{% if page.head-extra %}
{% for file in page.head-extra %}
{% include {{ file }} %}

View file

@ -1,15 +1,11 @@
<!-- TODO this file has become a mess, refactor it -->
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
{% if page.cover-img or page.title %}
{% if page.cover-img %}
<div id="header-big-imgs" data-num-img={% if page.cover-img.first %}{{ page.cover-img.size }}{% else %}1{% endif %}
{% for bigimg in page.cover-img %}
{% assign imgnum = forloop.index %}
{% for imginfo in bigimg %}
{% if imginfo[0] %}
{% if imginfo[0] %}
data-img-src-{{ imgnum }}="{{ imginfo[0] | absolute_url }}"
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
{% else %}
@ -21,23 +17,26 @@
{% endif %}
<header class="header-section {% if page.cover-img %}has-img{% endif %}">
{% if page.cover-img %}
<div class="big-img intro-header">
<div class="intro-header {% if page.cover-img %} big-img {% endif %}">
{% if page.cover-img or page.title %}
<div class="container-md">
<div class="row">
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
<div class="{{ include.type }}-heading">
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
<h1>{% if page.title %}{{ page.title | strip_html }}{% else %}<br/>{% endif %}</h1>
{% if page.subtitle %}
{% if include.type == "page" %}
<hr class="small">
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
<span class="{{ include.type }}-subheading">{{ page.subtitle | strip_html }}</span>
{% else %}
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
<h2 class="{{ include.type }}-subheading">{{ page.subtitle | strip_html }}</h2>
{% endif %}
{% endif %}
{% if include.type == "post" %}
{% if include.type == "post" %}
{% if page.author %}
By <strong>{{ page.author | strip_html }}</strong><br>
{% endif%}
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
{% if page.last-updated %}
<span class="post-meta">
@ -53,44 +52,14 @@
</div>
</div>
</div>
<span class='img-desc'></span>
{% endif %}
{% if page.cover-img %}<span class='img-desc'></span>{% endif %}
</div>
{% if page.header-extra %}
{% for file in page.header-extra %}
{% include {{ file }} %}
{% endfor %}
{% endif %}
<div class="intro-header no-img">
<div class="container-md">
<div class="row">
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
<div class="{{ include.type }}-heading">
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
{% if page.subtitle %}
{% if include.type == "page" %}
<hr class="small">
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
{% else %}
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
{% endif %}
{% endif %}
{% if include.type == "post" %}
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
{% if page.last-updated %}
<span class="post-meta">
<span class="d-none d-md-inline middot">&middot;</span>
Last updated {{ page.last-updated | date: date_format }}
</span>
{% endif %}
{% if page.readtime %}
{% include readtime.html %}
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
</div>
</header>
{% else %}
<div class="intro-header"></div>
{% endif %}

12
_includes/mathjax.html Normal file
View file

@ -0,0 +1,12 @@
{% if page.mathjax %}
<script type="text/javascript">
MathJax = {
options: {
skipHtmlTags: [
'script', 'noscript', 'style', 'textarea', 'pre', 'code'
]
}
};
</script>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{% endif %}

View file

@ -1,9 +1,9 @@
<nav class="navbar navbar-expand-xl navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">
{%- if site.title-img -%}
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a>
<a class="navbar-brand navbar-brand-logo" href="{{ '/' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a>
{%- elsif site.title -%}
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
<a class="navbar-brand" href="{{ '/' | absolute_url }}">{{ site.title }}</a>
{%- endif -%}
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar" aria-controls="main-navbar" aria-expanded="false" aria-label="Toggle navigation">
@ -16,7 +16,7 @@
{%- if link[1].first %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ link[0] }}</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
{%- for childlink in link[1] -%}
{%- for linkparts in childlink %}
<a class="dropdown-item" href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
@ -30,6 +30,14 @@
</li>
{%- endif -%}
{%- endfor -%}
{% if site.post_search %}
<li class="nav-item">
<a class="nav-link" id="nav-search-link" href="#" title="Search">
<span id="nav-search-icon" class="fa fa-search"></span>
<span id="nav-search-text">Search</span>
</a>
</li>
{%- endif -%}
</ul>
</div>
@ -42,7 +50,7 @@
{% if site.avatar and page.show-avatar != false %}
<div class="avatar-container">
<div class="avatar-img-border">
<a href="{{ '' | absolute_url }}">
<a href="{{ '/' | absolute_url }}">
<img alt="Navigation bar avatar" class="avatar-img" src="{{ site.avatar | relative_url }}" />
</a>
</div>
@ -50,3 +58,5 @@
{% endif %}
</nav>
{% include search.html %}

19
_includes/search.html Normal file
View file

@ -0,0 +1,19 @@
{% if site.post_search %}
<div id="beautifuljekyll-search-overlay">
<div id="nav-search-exit" title="Exit search"></div>
<input type="text" id="nav-search-input" placeholder="Search">
<ul id="search-results-container"></ul>
<script src="https://unpkg.com/simple-jekyll-search@latest/dest/simple-jekyll-search.min.js"></script>
<script>
SimpleJekyllSearch({
searchInput: document.getElementById('nav-search-input'),
resultsContainer: document.getElementById('search-results-container'),
json: '{{ site.baseurl }}/assets/data/searchcorpus.json'
});
</script>
</div>
{% endif %}

View file

@ -1,6 +1,9 @@
{% if site.social-network-links %}
<ul class="list-inline text-center footer-links">
{%- if site.rss-description -%}
{%- for network in site.social-network-links -%}
{%- if network[0] == "rss" and network[1] and site.rss-description -%}
<li class="list-inline-item">
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
<span class="fa-stack fa-lg" aria-hidden="true">
@ -10,11 +13,11 @@
<span class="sr-only">RSS</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.email -%}
{%- if network[0] == "email" -%}
<li class="list-inline-item">
<a href="mailto:{{ site.social-network-links.email }}" title="Email me">
<a href="mailto:{{ network[1] }}" title="Email me">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-envelope fa-stack-1x fa-inverse"></i>
@ -22,11 +25,11 @@
<span class="sr-only">Email me</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.calendly -%}
{%- if network[0] == "calendly" -%}
<li class="list-inline-item">
<a href="https://calendly.com/{{ site.social-network-links.calendly }}" title="Schedule a meeting with me">
<a href="https://calendly.com/{{ network[1] }}" title="Schedule a meeting with me">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-calendar-check fa-stack-1x fa-inverse"></i>
@ -34,11 +37,11 @@
<span class="sr-only">Schedule a meeting with me</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.facebook -%}
{%- if network[0] == "facebook" -%}
<li class="list-inline-item">
<a href="https://www.facebook.com/{{ site.social-network-links.facebook }}" title="Facebook">
<a href="https://www.facebook.com/{{ network[1] }}" title="Facebook">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-facebook fa-stack-1x fa-inverse"></i>
@ -46,11 +49,11 @@
<span class="sr-only">Facebook</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.telegram -%}
{%- if network[0] == "telegram" -%}
<li class="list-inline-item">
<a href="https://t.me/{{ site.social-network-links.telegram }}" title="Telegram">
<a href="https://t.me/{{ network[1] }}" title="Telegram">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-telegram-plane fa-stack-1x fa-inverse"></i>
@ -58,35 +61,63 @@
<span class="sr-only">Telegram</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.github -%}
{%- if network[0] == "whatsapp" -%}
<li class="list-inline-item">
<a href="https://git.poweris.moe/{{ site.social-network-links.github }}" title="GitHub">
<a href="https://wa.me/{{ network[1] }}" title="Whatsapp">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-whatsapp fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Whatsapp</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "github" -%}
<li class="list-inline-item">
<a href="https://git.poweris.moe/{{ network[1] }}" title="Git">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">GitHub</span>
<span class="sr-only">Git</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.twitter -%}
{%- if network[0] == "gitlab" -%}
<li class="list-inline-item">
<a href="https://twitter.com/{{ site.social-network-links.twitter }}" title="Twitter">
<a href="https://gitlab.com/{{ network[1] }}" title="GitLab">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-twitter fa-stack-1x fa-inverse"></i>
<i class="fab fa-gitlab fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Twitter</span>
<span class="sr-only">GitLab</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.reddit -%}
{%- if network[0] == "twitter" -%}
<li class="list-inline-item">
<a href="https://reddit.com/u/{{ site.social-network-links.reddit }}" title="Reddit">
<a href="https://twitter.com/{{ network[1] }}" title="X (Twitter)">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-x-twitter fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">X (Twitter)</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "reddit" -%}
{% assign reddit_start = network[1] | split: "/" | first -%}
{% unless reddit_start == 'r' or reddit_start == 'u' -%}
{% assign reddit_url_prefix = 'u/' -%}
{% endunless -%}
<li class="list-inline-item">
<a href="https://reddit.com/{{ reddit_url_prefix }}{{ network[1] }}" title="Reddit">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-reddit fa-stack-1x fa-inverse"></i>
@ -94,11 +125,11 @@
<span class="sr-only">Reddit</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.linkedin -%}
{%- if network[0] == "linkedin" -%}
<li class="list-inline-item">
<a href="https://linkedin.com/in/{{ site.social-network-links.linkedin }}" title="LinkedIn">
<a href="https://linkedin.com/in/{{ network[1] }}" title="LinkedIn">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-linkedin fa-stack-1x fa-inverse"></i>
@ -106,11 +137,11 @@
<span class="sr-only">LinkedIn</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.xing -%}
{%- if network[0] == "xing" -%}
<li class="list-inline-item">
<a href="https://www.xing.com/profile/{{ site.social-network-links.xing }}" title="Xing">
<a href="https://www.xing.com/profile/{{ network[1] }}" title="Xing">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-xing fa-stack-1x fa-inverse"></i>
@ -118,11 +149,11 @@
<span class="sr-only">Xing</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.stackoverflow -%}
{%- if network[0] == "stackoverflow" -%}
<li class="list-inline-item">
<a href="https://stackoverflow.com/users/{{ site.social-network-links.stackoverflow }}" title="StackOverflow">
<a href="https://stackoverflow.com/users/{{ network[1] }}" title="StackOverflow">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-stack-overflow fa-stack-1x fa-inverse"></i>
@ -130,11 +161,11 @@
<span class="sr-only">StackOverflow</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.snapchat -%}
{%- if network[0] == "snapchat" -%}
<li class="list-inline-item">
<a href="https://www.snapchat.com/add/{{ site.social-network-links.snapchat }}" title="Snapchat">
<a href="https://www.snapchat.com/add/{{ network[1] }}" title="Snapchat">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-snapchat-ghost fa-stack-1x fa-inverse"></i>
@ -142,11 +173,11 @@
<span class="sr-only">Snapchat</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.instagram -%}
{%- if network[0] == "instagram" -%}
<li class="list-inline-item">
<a href="https://www.instagram.com/{{ site.social-network-links.instagram }}" title="Instagram">
<a href="https://www.instagram.com/{{ network[1] }}" title="Instagram">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-instagram fa-stack-1x fa-inverse"></i>
@ -154,11 +185,11 @@
<span class="sr-only">Instagram</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.youtube -%}
{%- if network[0] == "youtube" -%}
<li class="list-inline-item">
<a href="https://www.youtube.com/{{ site.social-network-links.youtube }}" title="YouTube">
<a href="https://www.youtube.com/{{ network[1] }}" title="YouTube">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-youtube fa-stack-1x fa-inverse"></i>
@ -166,11 +197,11 @@
<span class="sr-only">YouTube</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.spotify -%}
{%- if network[0] == "spotify" -%}
<li class="list-inline-item">
<a href="https://open.spotify.com/user/{{ site.social-network-links.spotify }}" title="Spotify">
<a href="https://open.spotify.com/user/{{ network[1] }}" title="Spotify">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-spotify fa-stack-1x fa-inverse"></i>
@ -178,11 +209,11 @@
<span class="sr-only">Spotify</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.telephone -%}
{%- if network[0] == "telephone" -%}
<li class="list-inline-item">
<a href="tel:{{ site.social-network-links.telephone }}" title="Phone">
<a href="tel:{{ network[1] }}" title="Phone">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-phone fa-stack-1x fa-inverse"></i>
@ -190,11 +221,11 @@
<span class="sr-only">Phone</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.steam -%}
{%- if network[0] == "steam" -%}
<li class="list-inline-item">
<a href="https://steamcommunity.com/id/{{ site.social-network-links.steam }}" title="Steam">
<a href="https://steamcommunity.com/id/{{ network[1] }}" title="Steam">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-steam fa-stack-1x fa-inverse"></i>
@ -202,11 +233,11 @@
<span class="sr-only">Steam</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.twitch -%}
{%- if network[0] == "twitch" -%}
<li class="list-inline-item">
<a href="https://www.twitch.tv/{{ site.social-network-links.twitch }}" title="Twitch">
<a href="https://www.twitch.tv/{{ network[1] }}" title="Twitch">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-twitch fa-stack-1x fa-inverse"></i>
@ -214,11 +245,11 @@
<span class="sr-only">Twitch</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.yelp -%}
{%- if network[0] == "yelp" -%}
<li class="list-inline-item">
<a href="https://{{ site.social-network-links.yelp }}.yelp.com" title="Yelp">
<a href="https://yelp.com/{{ network[1] }}" title="Yelp">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-yelp fa-stack-1x fa-inverse"></i>
@ -226,11 +257,11 @@
<span class="sr-only">Yelp</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.mastodon -%}
{%- if network[0] == "mastodon" -%}
<li class="list-inline-item">
<a href="https://{{ site.social-network-links.mastodon }}" title="Mastodon">
<a rel="me" href="https://{{ network[1] }}" title="Mastodon">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-mastodon fa-stack-1x fa-inverse"></i>
@ -238,11 +269,11 @@
<span class="sr-only">Mastodon</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.bluesky -%}
{%- if network[0] == "bluesky" -%}
<li class="list-inline-item">
<a rel="me" href="https://bsky.app/profile/{{ site.social-network-links.bluesky }}" title="Bluesky">
<a rel="me" href="https://bsky.app/profile/{{ network[1] }}" title="Bluesky">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-brands fa-bluesky fa-stack-1x fa-inverse"></i>
@ -250,11 +281,11 @@
<span class="sr-only">Bluesky</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.ORCID -%}
{%- if network[0] == "ORCID" -%}
<li class="list-inline-item">
<a href="https://orcid.org/{{ site.social-network-links.ORCID }}" title="ORCID">
<a href="https://orcid.org/{{ network[1] }}" title="ORCID">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-orcid fa-stack-1x fa-inverse"></i>
@ -262,11 +293,11 @@
<span class="sr-only">ORCID</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.google-scholar -%}
{%- if network[0] == "google-scholar" -%}
<li class="list-inline-item">
<a href="https://scholar.google.com/{{ site.social-network-links.google-scholar }}" title="Google Scholar">
<a href="https://scholar.google.com/citations?user={{ network[1] }}" title="Google Scholar">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fa fa-graduation-cap fa-stack-1x fa-inverse"></i>
@ -274,11 +305,11 @@
<span class="sr-only">Google Scholar</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if site.social-network-links.patreon -%}
{%- if network[0] == "patreon" -%}
<li class="list-inline-item">
<a href="https://patreon.com/{{ site.social-network-links.patreon }}" title="Patreon">
<a href="https://patreon.com/{{ network[1] }}" title="Patreon">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-patreon fa-stack-1x fa-inverse"></i>
@ -286,6 +317,97 @@
<span class="sr-only">Patreon</span>
</a>
</li>
{%- endif -%}
{%- endif -%}
{%- if network[0] == "medium" -%}
<li class="list-inline-item">
<a href="https://medium.com/@{{ network[1] }}" title="Medium">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-medium fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Medium</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "itchio" -%}
<li class="list-inline-item">
<a href="https://{{ network[1] }}.itch.io/" title="Itchio">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-itch-io fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Itchio</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "discord" -%}
{% assign discord_start = network[1] | split: "/" | first -%}
{% unless discord_start == 'users' or discord_start == 'invite' -%}
{% assign discord_url_prefix = 'invite/' -%}
{% endunless -%}
<li class="list-inline-item">
<a href="https://discord.com/{{discord_url_prefix}}{{network[1]}}" title="Discord">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-discord fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Discord</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "kaggle" -%}
<li class="list-inline-item">
<a href="https://www.kaggle.com/{{ network[1] }}" title="Kaggle">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-kaggle fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Kaggle</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "hackerrank" -%}
<li class="list-inline-item">
<a href="https://www.hackerrank.com/{{ network[1] }}" title="Hackerrank">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-hackerrank fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Hackerrank</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "untappd" -%}
<li class="list-inline-item">
<a href="https://untappd.com/user/{{ network[1] }}" title="Untappd">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-untappd fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Untappd</span>
</a>
</li>
{%- endif -%}
{%- if network[0] == "strava" -%}
<li class="list-inline-item">
<a href="https://www.strava.com/athletes/{{ site.social-network-links.strava}}" title="Strava">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-strava fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Strava</span>
</a>
</li>
{%- endif -%}
{%- endfor -%}
</ul>
{% endif %}

View file

@ -11,10 +11,10 @@
<span class="sr-only">Share: </span>
{% if site.share-links-active.twitter %}
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
<span class="fab fa-fw fa-twitter" aria-hidden="true"></span>
<span class="sr-only">Twitter</span>
<a href="https://twitter.com/intent/tweet?text={{ page.title | strip_html | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-twitter" title="Share on X (Twitter)">
<span class="fab fa-fw fa-x-twitter" aria-hidden="true"></span>
<span class="sr-only">X (Twitter)</span>
</a>
{% endif %}
@ -42,6 +42,14 @@
</a>
{% endif %}
{% if site.share-links-active.reddit %}
<a href="https://www.reddit.com/submit?url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-reddit" title="Share on Reddit">
<span class="fab fa-fw fa-reddit" aria-hidden="true"></span>
<span class="sr-only">Reddit</span>
</a>
{% endif %}
</section>
{% endif %}