mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Merge branch 'master' into quote-shortcode
This commit is contained in:
commit
c593ae4d32
31
assets/scss/general.scss
Normal file
31
assets/scss/general.scss
Normal file
@ -0,0 +1,31 @@
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--accent-color);
|
||||
|
||||
&:hover {
|
||||
color: var(--accent-color-darker);
|
||||
}
|
||||
|
||||
&.link {
|
||||
box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0px calc(-1rem * var(--article-line-height)) 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.section-title {
|
||||
text-transform: uppercase;
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
display: block;
|
||||
font-size: 1.6rem;
|
||||
font-weight: bold;
|
||||
color: var(--body-text-color);
|
||||
|
||||
a {
|
||||
color: var(--body-text-color);
|
||||
}
|
||||
}
|
@ -166,7 +166,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.related-contents {
|
||||
.related-content {
|
||||
overflow-x: auto;
|
||||
padding-bottom: 15px;
|
||||
|
||||
|
@ -24,36 +24,5 @@
|
||||
@import "partials/layout/404.scss";
|
||||
@import "partials/layout/search.scss";
|
||||
|
||||
@import "general.scss";
|
||||
@import "custom.scss";
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--accent-color);
|
||||
|
||||
&:hover {
|
||||
color: var(--accent-color-darker);
|
||||
}
|
||||
|
||||
&.link {
|
||||
box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0px -10px 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.section-title {
|
||||
text-transform: uppercase;
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
display: block;
|
||||
font-size: 1.6rem;
|
||||
font-weight: bold;
|
||||
color: var(--body-text-color);
|
||||
|
||||
a {
|
||||
color: var(--body-text-color);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
Vibrant:
|
||||
- src: https://cdn.jsdelivr.net/npm/node-vibrant@3.1.5/dist/vibrant.min.js
|
||||
integrity: sha256-5NovOZc4iwiAWTYIFiIM7DxKUXKWvpVEuMEPLzcm5/g=
|
||||
- src: https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js
|
||||
integrity: sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=
|
||||
type: script
|
||||
|
||||
PhotoSwipe:
|
||||
@ -14,26 +14,24 @@ PhotoSwipe:
|
||||
type: script
|
||||
defer: true
|
||||
|
||||
- src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.css
|
||||
integrity: sha256-c0uckgykQ9v5k+IqViZOZKc47Jn7KQil4/MP3ySA3F8=
|
||||
- src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css
|
||||
type: style
|
||||
|
||||
- src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.css
|
||||
integrity: sha256-SBLU4vv6CA6lHsZ1XyTdhyjJxCjPif/TRkjnsyGAGnE=
|
||||
- src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css
|
||||
type: style
|
||||
|
||||
KaTeX:
|
||||
- src: https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css
|
||||
integrity: sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn
|
||||
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/katex.min.css
|
||||
integrity: sha256-J+iAE0sgH8QSz9hpcDxXIftnj65JEZgNhGcgReTTK9s=
|
||||
type: style
|
||||
|
||||
- src: https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js
|
||||
integrity: sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8
|
||||
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/katex.min.js
|
||||
integrity: sha256-InsNdER1b2xUewP+pKCUJpkhiqwHgqiPXDlIk7GzBu4=
|
||||
type: script
|
||||
defer: true
|
||||
|
||||
- src: https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js
|
||||
integrity: sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl
|
||||
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/contrib/auto-render.min.js
|
||||
integrity: sha256-y39Mpg7V3D4lhBX4x6O0bUqTV4pSrfgwEfGKfxkOdgI=
|
||||
type: script
|
||||
defer: true
|
||||
|
||||
|
@ -26,7 +26,7 @@ disqusShortname: hugo-theme-stack
|
||||
googleAnalytics:
|
||||
|
||||
# Theme i18n support
|
||||
# Available values: ar, ca, de, el, en, es, fr, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
|
||||
# Available values: ar, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
|
||||
DefaultContentLanguage: en
|
||||
|
||||
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: جدول المحتويات
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: محتوى مشابهه
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Taula de contingut
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Continguts relacionats
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Inhaltsverzeichnis
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Verwandte Inhalte
|
||||
|
||||
lastUpdatedOn:
|
||||
@ -52,6 +52,10 @@ widget:
|
||||
title:
|
||||
other: Schlagwörter
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Kategorien
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Suche
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Πινακας περιεχομενων
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Σχετικο περιεχομενο
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,8 +23,8 @@ article:
|
||||
tableOfContents:
|
||||
other: Table of contents
|
||||
|
||||
relatedContents:
|
||||
other: Related contents
|
||||
relatedContent:
|
||||
other: Related content
|
||||
|
||||
lastUpdatedOn:
|
||||
other: Last updated on
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Tabla de contenido
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Contenidos relacionados
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Table des matières
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Contenus liés
|
||||
|
||||
lastUpdatedOn:
|
||||
|
73
i18n/hu.yaml
Normal file
73
i18n/hu.yaml
Normal file
@ -0,0 +1,73 @@
|
||||
toggleMenu:
|
||||
other: Menü Kapcsolása
|
||||
|
||||
darkMode:
|
||||
other: Sötét Mód
|
||||
|
||||
list:
|
||||
page:
|
||||
one: "{{ .Count }} oldal"
|
||||
other: "{{ .Count }} oldalak"
|
||||
|
||||
section:
|
||||
other: Szekció
|
||||
|
||||
subsection:
|
||||
one: Alszekció
|
||||
other: Alszekciók
|
||||
|
||||
article:
|
||||
back:
|
||||
other: Vissza
|
||||
|
||||
tableOfContents:
|
||||
other: Tartalomjegyzék
|
||||
|
||||
relatedContent:
|
||||
other: Kapcsolódó tartalom
|
||||
|
||||
lastUpdatedOn:
|
||||
other: Utolsó frissítés időpontja
|
||||
|
||||
readingTime:
|
||||
one: "{{ .Count }} percnyi olvasmány"
|
||||
other: "{{ .Count }} percnyi olvasmány"
|
||||
|
||||
notFound:
|
||||
title:
|
||||
other: Nem található
|
||||
|
||||
subtitle:
|
||||
other: Ez az oldal nem létezik
|
||||
|
||||
widget:
|
||||
archives:
|
||||
title:
|
||||
other: Archívum
|
||||
|
||||
more:
|
||||
other: Több
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Cimkék
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Kategóriák
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Keresés
|
||||
|
||||
placeholder:
|
||||
other: Írj valamit...
|
||||
|
||||
resultTitle:
|
||||
other: "#PAGES_COUNT oldal (#TIME_SECONDS másodperc alatt)"
|
||||
|
||||
footer:
|
||||
builtWith:
|
||||
other: "{{ .Generator }} használatával készült"
|
||||
|
||||
designedBy:
|
||||
other: A {{ .Theme }} dizájnt {{ .DesignedBy }} tervezte
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Daftar Isi
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Konten terkait
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Indice
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Contenuti correlati
|
||||
|
||||
lastUpdatedOn:
|
||||
@ -51,6 +51,10 @@ widget:
|
||||
title:
|
||||
other: Tags
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categorie
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Cerca
|
||||
|
@ -11,7 +11,7 @@ article:
|
||||
tableOfContents:
|
||||
other: 目次
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: 関連するコンテンツ
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: 목차
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: 관련 글
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -17,7 +17,7 @@ list:
|
||||
other: Subsecties
|
||||
|
||||
article:
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Gerelateerde inhoud
|
||||
lastUpdatedOn:
|
||||
other: Laatst bijgewerkt op
|
||||
@ -38,6 +38,10 @@ widget:
|
||||
title:
|
||||
other: Tags
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categorie
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Zoeken
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Spis treści
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Powiązane artykuły
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Índice
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Conteúdo relacionado
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ list:
|
||||
article:
|
||||
back:
|
||||
other: Назад
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Также рекомендуем
|
||||
lastUpdatedOn:
|
||||
other: Обновлено
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: สารบัญ
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: เนื้อหาคล้ายคลึงกัน
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -17,7 +17,7 @@ list:
|
||||
other: Alt bölümler
|
||||
|
||||
article:
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Alakalı içerikler
|
||||
lastUpdatedOn:
|
||||
other: Son güncelleme
|
||||
|
@ -24,7 +24,7 @@ article:
|
||||
tableOfContents:
|
||||
other: Зміст
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: Схожі матеріали
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -11,7 +11,7 @@ article:
|
||||
tableOfContents:
|
||||
other: 目录
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: 相关文章
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -23,7 +23,7 @@ article:
|
||||
tableOfContents:
|
||||
other: 目錄
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: 相關內容
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -11,7 +11,7 @@ article:
|
||||
tableOfContents:
|
||||
other: 目錄
|
||||
|
||||
relatedContents:
|
||||
relatedContent:
|
||||
other: 相關文章
|
||||
|
||||
lastUpdatedOn:
|
||||
|
@ -30,7 +30,7 @@
|
||||
{{ partial "article/components/links" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "article/components/related-contents" . }}
|
||||
{{ partial "article/components/related-content" . }}
|
||||
|
||||
{{ if not (eq .Params.comments false) }}
|
||||
{{ partial "comments/include" . }}
|
||||
|
@ -10,7 +10,7 @@
|
||||
{{- $Width := $imageRaw.Width -}}
|
||||
{{- $Height := $imageRaw.Height -}}
|
||||
|
||||
{{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
|
||||
{{- if .context.Site.Params.imageProcessing.cover.enabled -}}
|
||||
{{- $thumbnail := $imageRaw.Fill .size -}}
|
||||
{{- $Permalink = $thumbnail.RelPermalink -}}
|
||||
{{- $Width = $thumbnail.Width -}}
|
||||
@ -36,4 +36,4 @@
|
||||
</h2>
|
||||
</div>
|
||||
</a>
|
||||
</article>
|
||||
</article>
|
||||
|
@ -1,8 +1,8 @@
|
||||
{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
|
||||
{{ with $related }}
|
||||
<aside class="related-contents--wrapper">
|
||||
<h2 class="section-title">{{ T "article.relatedContents" }}</h2>
|
||||
<div class="related-contents">
|
||||
<aside class="related-content--wrapper">
|
||||
<h2 class="section-title">{{ T "article.relatedContent" }}</h2>
|
||||
<div class="related-content">
|
||||
<div class="flex article-list--tile">
|
||||
{{ range . }}
|
||||
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
|
@ -1,4 +1,4 @@
|
||||
<script src="//cdn.jsdelivr.net/npm/twikoo@1.4.18/dist/twikoo.all.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/twikoo@1.5.11/dist/twikoo.all.min.js"></script>
|
||||
<div id="tcomment"></div>
|
||||
<style>
|
||||
.twikoo {
|
||||
|
Loading…
Reference in New Issue
Block a user