Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/article/components/related-content.html (renamed from layouts/partials/article/components/related-contents.html)6
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index c70df20..5f300bf 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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" . }}
diff --git a/layouts/partials/article/components/related-contents.html b/layouts/partials/article/components/related-content.html
index 29cfff6..aba88e3 100644
--- a/layouts/partials/article/components/related-contents.html
+++ b/layouts/partials/article/components/related-content.html
@@ -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") }}