mirror of
https://github.com/calofmijuck/blog.git
synced 2025-12-06 14:53:50 +00:00
feat: updates from the official theme repo
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -17,10 +17,11 @@ package-lock.json
|
|||||||
|
|
||||||
# IDE configurations
|
# IDE configurations
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode/*
|
||||||
!.vscode/settings.json
|
!.vscode/settings.json
|
||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
_sass/dist
|
_sass/vendors
|
||||||
assets/js/dist
|
assets/js/dist
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "jekyll-theme-chirpy", "~> 7.2", ">= 7.2.4"
|
gem "jekyll-theme-chirpy", "~> 7.3", ">= 7.3.1"
|
||||||
|
|
||||||
gem "html-proofer", "~> 5.0", group: :test
|
gem "html-proofer", "~> 5.0", group: :test
|
||||||
|
|
||||||
|
|||||||
@@ -10,63 +10,68 @@ script_includes:
|
|||||||
- comment
|
- comment
|
||||||
---
|
---
|
||||||
|
|
||||||
{% include lang.html %} {% include toc-status.html %}
|
{% include lang.html %}
|
||||||
|
|
||||||
|
{% include toc-status.html %}
|
||||||
|
|
||||||
<article class="px-1" data-toc="{{ enable_toc }}">
|
<article class="px-1" data-toc="{{ enable_toc }}">
|
||||||
<header>
|
<header>
|
||||||
<h1 data-toc-skip>{{ page.title }}</h1>
|
<h1 data-toc-skip>{{ page.title }}</h1>
|
||||||
{% if page.description %}
|
{% if page.description %}
|
||||||
<p class="post-desc fw-light mb-4">{{ page.description }}</p>
|
<p class="post-desc fw-light mb-4">{{ page.description }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="post-meta text-muted">
|
<div class="post-meta text-muted">
|
||||||
<!-- published date -->
|
<!-- published date -->
|
||||||
<span>
|
<span>
|
||||||
{{ site.data.locales[lang].post.posted }} {% include datetime.html
|
{{ site.data.locales[lang].post.posted }}
|
||||||
date=page.date tooltip=true lang=lang %}
|
{% include datetime.html date=page.date tooltip=true lang=lang %}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- lastmod date -->
|
<!-- lastmod date -->
|
||||||
{% if page.last_modified_at and page.last_modified_at != page.date %}
|
{% if page.last_modified_at and page.last_modified_at != page.date %}
|
||||||
<span>
|
<span>
|
||||||
{{ site.data.locales[lang].post.updated }} {% include datetime.html
|
{{ site.data.locales[lang].post.updated }}
|
||||||
date=page.last_modified_at tooltip=true lang=lang %}
|
{% include datetime.html date=page.last_modified_at tooltip=true lang=lang %}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
<!-- author(s) -->
|
<!-- author(s) -->
|
||||||
<span>
|
<span>
|
||||||
{% if page.author %} {% assign authors = page.author %} {% elsif
|
{% if page.author %}
|
||||||
page.authors %} {% assign authors = page.authors %} {% endif %} {{
|
{% assign authors = page.author %}
|
||||||
site.data.locales[lang].post.written_by }}
|
{% elsif page.authors %}
|
||||||
|
{% assign authors = page.authors %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{{ site.data.locales[lang].post.written_by }}
|
||||||
|
|
||||||
<em>
|
<em>
|
||||||
{% if authors %} {% for author in authors %} {% if
|
{% if authors %}
|
||||||
site.data.authors[author].url -%}
|
{% for author in authors %}
|
||||||
<a href="{{ site.data.authors[author].url }}"
|
{% if site.data.authors[author].url -%}
|
||||||
>{{ site.data.authors[author].name }}</a
|
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
|
||||||
>
|
{%- else -%}
|
||||||
{%- else -%} {{ site.data.authors[author].name }} {%- endif %} {%
|
{{ site.data.authors[author].name }}
|
||||||
unless forloop.last %}{{ '</em
|
{%- endif %}
|
||||||
>,
|
{% unless forloop.last %}{{ '</em>, <em>' }}{% endunless %}
|
||||||
<em
|
{% endfor %}
|
||||||
>' }}{% endunless %} {% endfor %} {% else %}
|
{% else %}
|
||||||
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
|
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</em>
|
</em>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<!-- pageviews -->
|
<!-- pageviews -->
|
||||||
{% if site.pageviews.provider and
|
{% if site.pageviews.provider and site.analytics[site.pageviews.provider].id %}
|
||||||
site.analytics[site.pageviews.provider].id %}
|
<span>
|
||||||
<span>
|
<em id="pageviews">
|
||||||
<em id="pageviews">
|
<i class="fas fa-spinner fa-spin small"></i>
|
||||||
<i class="fas fa-spinner fa-spin small"></i>
|
</em>
|
||||||
</em>
|
{{ site.data.locales[lang].post.pageview_measure }}
|
||||||
{{ site.data.locales[lang].post.pageview_measure }}
|
</span>
|
||||||
</span>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- read time -->
|
<!-- read time -->
|
||||||
@@ -77,86 +82,76 @@ script_includes:
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% if enable_toc %}
|
{% if enable_toc %}
|
||||||
<div
|
<div id="toc-bar" class="d-flex align-items-center justify-content-between invisible">
|
||||||
id="toc-bar"
|
<span class="label text-truncate">{{ page.title }}</span>
|
||||||
class="d-flex align-items-center justify-content-between invisible"
|
<button type="button" class="toc-trigger btn me-1">
|
||||||
>
|
<i class="fa-solid fa-list-ul fa-fw"></i>
|
||||||
<span class="label text-truncate">{{ page.title }}</span>
|
|
||||||
<button type="button" class="toc-trigger btn me-1">
|
|
||||||
<i class="fa-solid fa-list-ul fa-fw"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button
|
|
||||||
id="toc-solo-trigger"
|
|
||||||
type="button"
|
|
||||||
class="toc-trigger btn btn-outline-secondary btn-sm"
|
|
||||||
>
|
|
||||||
<span class="label ps-2 pe-1"
|
|
||||||
>{{- site.data.locales[lang].panel.toc -}}</span
|
|
||||||
>
|
|
||||||
<i class="fa-solid fa-angle-right fa-fw"></i>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<dialog id="toc-popup" class="p-0">
|
|
||||||
<div
|
|
||||||
class="header d-flex flex-row align-items-center justify-content-between"
|
|
||||||
>
|
|
||||||
<div class="label text-truncate py-2 ms-4">{{- page.title -}}</div>
|
|
||||||
<button
|
|
||||||
id="toc-popup-close"
|
|
||||||
type="button"
|
|
||||||
class="btn mx-1 my-1 opacity-75"
|
|
||||||
>
|
|
||||||
<i class="fas fa-close"></i>
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="toc-popup-content" class="px-4 py-3 pb-4"></div>
|
|
||||||
</dialog>
|
<button id="toc-solo-trigger" type="button" class="toc-trigger btn btn-outline-secondary btn-sm">
|
||||||
|
<span class="label ps-2 pe-1">{{- site.data.locales[lang].panel.toc -}}</span>
|
||||||
|
<i class="fa-solid fa-angle-right fa-fw"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<dialog id="toc-popup" class="p-0">
|
||||||
|
<div class="header d-flex flex-row align-items-center justify-content-between">
|
||||||
|
<div class="label text-truncate py-2 ms-4">{{- page.title -}}</div>
|
||||||
|
<button id="toc-popup-close" type="button" class="btn mx-1 my-1 opacity-75">
|
||||||
|
<i class="fas fa-close"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div id="toc-popup-content" class="px-4 py-3 pb-4"></div>
|
||||||
|
</dialog>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="content">{{ content }}</div>
|
<div class="content">
|
||||||
|
{{ content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="post-tail-wrapper text-muted">
|
<div class="post-tail-wrapper text-muted">
|
||||||
<!-- categories -->
|
<!-- categories -->
|
||||||
{% if page.categories.size > 0 %}
|
{% if page.categories.size > 0 %}
|
||||||
<div class="post-meta mb-3">
|
<div class="post-meta mb-3">
|
||||||
<i class="far fa-folder-open fa-fw me-1"></i>
|
<i class="far fa-folder-open fa-fw me-1"></i>
|
||||||
{% for category in page.categories %}
|
{% for category in page.categories %}
|
||||||
<a
|
<a href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/">{{ category }}</a>
|
||||||
href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/"
|
{%- unless forloop.last -%},{%- endunless -%}
|
||||||
>{{ category }}</a
|
{% endfor %}
|
||||||
>
|
</div>
|
||||||
{%- unless forloop.last -%},{%- endunless -%} {% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- tags -->
|
<!-- tags -->
|
||||||
{% if page.tags.size > 0 %}
|
{% if page.tags.size > 0 %}
|
||||||
<div class="post-tags">
|
<div class="post-tags">
|
||||||
<i class="fa fa-tags fa-fw me-1"></i>
|
<i class="fa fa-tags fa-fw me-1"></i>
|
||||||
{% for tag in page.tags %}
|
{% for tag in page.tags %}
|
||||||
<a
|
<a
|
||||||
href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
|
||||||
class="post-tag no-text-decoration"
|
class="post-tag no-text-decoration"
|
||||||
>
|
>
|
||||||
{{- tag -}}
|
{{- tag -}}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="post-tail-bottom d-flex justify-content-between align-items-center mt-5 pb-2"
|
class="
|
||||||
|
post-tail-bottom
|
||||||
|
d-flex justify-content-between align-items-center mt-5 pb-2
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<div class="license-wrapper">
|
<div class="license-wrapper">
|
||||||
{% if site.data.locales[lang].copyright.license.template %} {% capture
|
{% if site.data.locales[lang].copyright.license.template %}
|
||||||
_replacement %}
|
{% capture _replacement %}
|
||||||
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
<a href="{{ site.data.locales[lang].copyright.license.link }}">
|
||||||
{{ site.data.locales[lang].copyright.license.name }}
|
{{ site.data.locales[lang].copyright.license.name }}
|
||||||
</a>
|
</a>
|
||||||
{% endcapture %} {{ site.data.locales[lang].copyright.license.template |
|
{% endcapture %}
|
||||||
replace: ':LICENSE_NAME', _replacement }} {% endif %}
|
|
||||||
|
{{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include post-sharing.html lang=lang %}
|
{% include post-sharing.html lang=lang %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
@import 'main
|
@use 'main
|
||||||
{%- if jekyll.environment == 'production' -%}
|
{%- if jekyll.environment == 'production' -%}
|
||||||
.bundle
|
.bundle
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user