Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e123a30b7 | ||
|
|
e409eddf5c | ||
|
|
03bf8b0c3f | ||
|
|
e294e4ed70 | ||
|
|
d3eacc9daf | ||
|
|
c0f57bab7a | ||
|
|
752fd5805f |
@@ -95,18 +95,11 @@
|
|||||||
-webkit-mask-image: var(--subsection-mask-image);
|
-webkit-mask-image: var(--subsection-mask-image);
|
||||||
mask-image: var(--subsection-mask-image);
|
mask-image: var(--subsection-mask-image);
|
||||||
|
|
||||||
// CSS-only: left fade ramps in quickly once horizontal scrolling starts,
|
|
||||||
// and right fade turns off near the end of horizontal scroll.
|
|
||||||
animation: subsection-left-fade linear both, subsection-right-fade linear both;
|
|
||||||
animation-timeline: scroll(self inline);
|
|
||||||
animation-range: 1px 24px, 0% 100%;
|
|
||||||
animation-timing-function: ease-out, linear;
|
|
||||||
|
|
||||||
[dir="rtl"] & {
|
[dir="rtl"] & {
|
||||||
margin-left: calc(var(--overlap-x) * -1);
|
margin-left: calc(var(--overlap-x) * -1);
|
||||||
margin-right: calc(var(--overlap-x) * -1);
|
margin-right: calc(var(--overlap-x) * -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-list--tile {
|
.article-list--tile {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: var(--spacing-xs) var(--overlap-x) var(--shadow-overlap-y) var(--overlap-x);
|
padding: var(--spacing-xs) var(--overlap-x) var(--shadow-overlap-y) var(--overlap-x);
|
||||||
@@ -132,6 +125,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only apply scroll-driven edge fades in browsers that support scroll timelines.
|
||||||
|
// Browsers without support (e.g. Firefox) fall back to the static right-edge fade
|
||||||
|
// defined by the explicit CSS variable declarations above.
|
||||||
|
@supports (animation-timeline: scroll(self inline)) {
|
||||||
|
.subsection-list {
|
||||||
|
animation: subsection-left-fade linear both, subsection-right-fade linear both;
|
||||||
|
animation-timeline: scroll(self inline);
|
||||||
|
animation-range: 1px 24px, 0% 100%;
|
||||||
|
animation-timing-function: ease-out, linear;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes subsection-left-fade {
|
@keyframes subsection-left-fade {
|
||||||
from {
|
from {
|
||||||
--left-edge-fade-size: 0px;
|
--left-edge-fade-size: 0px;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
baseURL = "https://demo.stack.cai.im/"
|
baseURL = "https://demo.stack.cai.im/"
|
||||||
languageCode = "en-us"
|
locale = "en-us"
|
||||||
title = "Hugo Theme Stack"
|
title = "Hugo Theme Stack"
|
||||||
# Theme i18n support
|
# Theme i18n support
|
||||||
# See i18n folder for available languages
|
# See i18n folder for available languages
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
[en]
|
[en]
|
||||||
languageName = "English"
|
label = "English"
|
||||||
title = "Hugo Theme Stack"
|
title = "Hugo Theme Stack"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[en.params.sidebar]
|
[en.params.sidebar]
|
||||||
subtitle = "Card-style Hugo theme designed for bloggers"
|
subtitle = "Card-style Hugo theme designed for bloggers"
|
||||||
|
|
||||||
[zh]
|
[zh]
|
||||||
languageName = "简体中文"
|
label = "简体中文"
|
||||||
title = "Hugo 主题 Stack"
|
title = "Hugo 主题 Stack"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[zh.params.sidebar]
|
[zh.params.sidebar]
|
||||||
subtitle = "为博客设计的卡片式 Hugo 主题"
|
subtitle = "为博客设计的卡片式 Hugo 主题"
|
||||||
|
|
||||||
[zh-hant-tw]
|
[zh-hant-tw]
|
||||||
languageName = "正體中文"
|
label = "正體中文"
|
||||||
title = "Hugo 主題 Stack"
|
title = "Hugo 主題 Stack"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[zh-hant-tw.params.sidebar]
|
[zh-hant-tw.params.sidebar]
|
||||||
subtitle = "為博客設計的卡片式 Hugo 主題"
|
subtitle = "為博客設計的卡片式 Hugo 主題"
|
||||||
|
|
||||||
[ja]
|
[ja]
|
||||||
languageName = "日本語"
|
label = "日本語"
|
||||||
title = "Hugo Theme Stack"
|
title = "Hugo Theme Stack"
|
||||||
weight = 4
|
weight = 4
|
||||||
|
|
||||||
[ja.params.sidebar]
|
[ja.params.sidebar]
|
||||||
subtitle = "ブログ用のカードスタイルの Hugo テーマ"
|
subtitle = "ブログ用のカードスタイルの Hugo テーマ"
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<div class="inline-meta">
|
<div class="inline-meta">
|
||||||
{{ partial "helper/icon" "language" }}
|
{{ partial "helper/icon" "language" }}
|
||||||
{{ range $Page.Translations }}
|
{{ range $Page.Translations }}
|
||||||
<a href="{{ .RelPermalink }}" class="link">{{ .Language.LanguageName }}</a>
|
<a href="{{ .RelPermalink }}" class="link">{{ .Language.Label }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- $ThemeVersion := "4.0.0" -}}
|
{{- $ThemeVersion := "4.0.3" -}}
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<section class="copyright">
|
<section class="copyright">
|
||||||
©
|
©
|
||||||
|
|||||||
@@ -14,12 +14,14 @@
|
|||||||
{{ if .Image }}
|
{{ if .Image }}
|
||||||
{{ $url := urls.Parse .Image }}
|
{{ $url := urls.Parse .Image }}
|
||||||
{{ $permalink := .Image }}
|
{{ $permalink := .Image }}
|
||||||
{{ $resource := dict
|
|
||||||
|
{{ $result = dict
|
||||||
"Resource" nil
|
"Resource" nil
|
||||||
"Permalink" $permalink
|
"Permalink" $permalink
|
||||||
"Height" nil
|
"Height" nil
|
||||||
"Width" nil
|
"Width" nil
|
||||||
}}
|
}}
|
||||||
|
{{ $resource := dict }}
|
||||||
{{ $local := true }}
|
{{ $local := true }}
|
||||||
|
|
||||||
{{ if not (in (slice "https" "http") $url.Scheme) }}
|
{{ if not (in (slice "https" "http") $url.Scheme) }}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="menu-bottom-section">
|
<li class="menu-bottom-section">
|
||||||
<ol class="menu">
|
<ol class="menu">
|
||||||
{{- $currentLanguageCode := .Language.Lang -}}
|
{{- $currentLanguageCode := .Language.Name -}}
|
||||||
{{ if hugo.IsMultilingual }}
|
{{ if hugo.IsMultilingual }}
|
||||||
<li id="i18n-switch">
|
<li id="i18n-switch">
|
||||||
{{ partial "helper/icon" "language" }}
|
{{ partial "helper/icon" "language" }}
|
||||||
@@ -72,11 +72,11 @@
|
|||||||
{{ range .Site.Home.AllTranslations }}
|
{{ range .Site.Home.AllTranslations }}
|
||||||
{{ $target := . }}
|
{{ $target := . }}
|
||||||
{{ range $.AllTranslations }}
|
{{ range $.AllTranslations }}
|
||||||
{{ if eq .Language.Lang $target.Language.Lang }}
|
{{ if eq .Language.Name $target.Language.Name }}
|
||||||
{{ $target = . }}
|
{{ $target = . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<option value="{{ $target.RelPermalink }}" {{ if eq $target.Language.Lang $currentLanguageCode }}selected{{ end }}>{{ .Language.LanguageName }}</option>
|
<option value="{{ $target.RelPermalink }}" {{ if eq $target.Language.Name $currentLanguageCode }}selected{{ end }}>{{ .Language.Label }}</option>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Site.LanguageCode }}" dir="{{ default `ltr` .Language.LanguageDirection }}">
|
<html lang="{{ .Site.Language.Locale }}" dir="{{ default `ltr` .Language.Direction }}">
|
||||||
<head>
|
<head>
|
||||||
{{- partial "head/head.html" . -}}
|
{{- partial "head/head.html" . -}}
|
||||||
{{- block "head" . -}}{{ end }}
|
{{- block "head" . -}}{{ end }}
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
|
<language>{{ site.Language.Locale }}</language>{{ with $authorEmail }}
|
||||||
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
|
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
|
||||||
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
|
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
|
||||||
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
|
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
|
||||||
|
|||||||
+1
-2
@@ -15,8 +15,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $TOCManuallyDisabled := eq .Params.toc false -}}
|
{{- $TOCEnabled := and (default .Site.Params.article.toc .Params.toc) $TOCWidgetEnabled -}}
|
||||||
{{- $TOCEnabled := and (not $TOCManuallyDisabled) $TOCWidgetEnabled -}}
|
|
||||||
{{- $hasTOC := ge (len .TableOfContents) 100 -}}
|
{{- $hasTOC := ge (len .TableOfContents) 100 -}}
|
||||||
{{- .Scratch.Set "TOCEnabled" (and $TOCEnabled $hasTOC) -}}
|
{{- .Scratch.Set "TOCEnabled" (and $TOCEnabled $hasTOC) -}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user