mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Merge branch 'master' into patch-3
This commit is contained in:
commit
fec02b959e
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;
|
overflow-x: auto;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
|
|
||||||
|
@ -24,36 +24,5 @@
|
|||||||
@import "partials/layout/404.scss";
|
@import "partials/layout/404.scss";
|
||||||
@import "partials/layout/search.scss";
|
@import "partials/layout/search.scss";
|
||||||
|
|
||||||
|
@import "general.scss";
|
||||||
@import "custom.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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -26,7 +26,7 @@ disqusShortname: hugo-theme-stack
|
|||||||
googleAnalytics:
|
googleAnalytics:
|
||||||
|
|
||||||
# Theme i18n support
|
# 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
|
DefaultContentLanguage: en
|
||||||
|
|
||||||
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
|
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: جدول المحتويات
|
other: جدول المحتويات
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: محتوى مشابهه
|
other: محتوى مشابهه
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Taula de contingut
|
other: Taula de contingut
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Continguts relacionats
|
other: Continguts relacionats
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Inhaltsverzeichnis
|
other: Inhaltsverzeichnis
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Verwandte Inhalte
|
other: Verwandte Inhalte
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
@ -52,6 +52,10 @@ widget:
|
|||||||
title:
|
title:
|
||||||
other: Schlagwörter
|
other: Schlagwörter
|
||||||
|
|
||||||
|
categoriesCloud:
|
||||||
|
title:
|
||||||
|
other: Kategorien
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: Suche
|
other: Suche
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Πινακας περιεχομενων
|
other: Πινακας περιεχομενων
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Σχετικο περιεχομενο
|
other: Σχετικο περιεχομενο
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,8 +23,8 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Table of contents
|
other: Table of contents
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Related contents
|
other: Related content
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: Last updated on
|
other: Last updated on
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Tabla de contenido
|
other: Tabla de contenido
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Contenidos relacionados
|
other: Contenidos relacionados
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Table des matières
|
other: Table des matières
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Contenus liés
|
other: Contenus liés
|
||||||
|
|
||||||
lastUpdatedOn:
|
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:
|
tableOfContents:
|
||||||
other: Daftar Isi
|
other: Daftar Isi
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Konten terkait
|
other: Konten terkait
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Indice
|
other: Indice
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Contenuti correlati
|
other: Contenuti correlati
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -11,7 +11,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: 目次
|
other: 目次
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: 関連するコンテンツ
|
other: 関連するコンテンツ
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: 목차
|
other: 목차
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: 관련 글
|
other: 관련 글
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -17,7 +17,7 @@ list:
|
|||||||
other: Subsecties
|
other: Subsecties
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Gerelateerde inhoud
|
other: Gerelateerde inhoud
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: Laatst bijgewerkt op
|
other: Laatst bijgewerkt op
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Spis treści
|
other: Spis treści
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Powiązane artykuły
|
other: Powiązane artykuły
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Índice
|
other: Índice
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Conteúdo relacionado
|
other: Conteúdo relacionado
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ list:
|
|||||||
article:
|
article:
|
||||||
back:
|
back:
|
||||||
other: Назад
|
other: Назад
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Также рекомендуем
|
other: Также рекомендуем
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: Обновлено
|
other: Обновлено
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: สารบัญ
|
other: สารบัญ
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: เนื้อหาคล้ายคลึงกัน
|
other: เนื้อหาคล้ายคลึงกัน
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -17,7 +17,7 @@ list:
|
|||||||
other: Alt bölümler
|
other: Alt bölümler
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Alakalı içerikler
|
other: Alakalı içerikler
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
other: Son güncelleme
|
other: Son güncelleme
|
||||||
|
@ -24,7 +24,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: Зміст
|
other: Зміст
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: Схожі матеріали
|
other: Схожі матеріали
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -11,7 +11,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: 目录
|
other: 目录
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: 相关文章
|
other: 相关文章
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -23,7 +23,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: 目錄
|
other: 目錄
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: 相關內容
|
other: 相關內容
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -11,7 +11,7 @@ article:
|
|||||||
tableOfContents:
|
tableOfContents:
|
||||||
other: 目錄
|
other: 目錄
|
||||||
|
|
||||||
relatedContents:
|
relatedContent:
|
||||||
other: 相關文章
|
other: 相關文章
|
||||||
|
|
||||||
lastUpdatedOn:
|
lastUpdatedOn:
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
{{ partial "article/components/links" . }}
|
{{ partial "article/components/links" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "article/components/related-contents" . }}
|
{{ partial "article/components/related-content" . }}
|
||||||
|
|
||||||
{{ if not (eq .Params.comments false) }}
|
{{ if not (eq .Params.comments false) }}
|
||||||
{{ partial "comments/include" . }}
|
{{ partial "comments/include" . }}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
{{- $Width := $imageRaw.Width -}}
|
{{- $Width := $imageRaw.Width -}}
|
||||||
{{- $Height := $imageRaw.Height -}}
|
{{- $Height := $imageRaw.Height -}}
|
||||||
|
|
||||||
{{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
|
{{- if .context.Site.Params.imageProcessing.cover.enabled -}}
|
||||||
{{- $thumbnail := $imageRaw.Fill .size -}}
|
{{- $thumbnail := $imageRaw.Fill .size -}}
|
||||||
{{- $Permalink = $thumbnail.RelPermalink -}}
|
{{- $Permalink = $thumbnail.RelPermalink -}}
|
||||||
{{- $Width = $thumbnail.Width -}}
|
{{- $Width = $thumbnail.Width -}}
|
||||||
@ -36,4 +36,4 @@
|
|||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</article>
|
</article>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
|
{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
|
||||||
{{ with $related }}
|
{{ with $related }}
|
||||||
<aside class="related-contents--wrapper">
|
<aside class="related-content--wrapper">
|
||||||
<h2 class="section-title">{{ T "article.relatedContents" }}</h2>
|
<h2 class="section-title">{{ T "article.relatedContent" }}</h2>
|
||||||
<div class="related-contents">
|
<div class="related-content">
|
||||||
<div class="flex article-list--tile">
|
<div class="flex article-list--tile">
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
|
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
|
Loading…
Reference in New Issue
Block a user