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

github.com/wayjam/hugo-theme-mixedpaper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayJam So <imsuwj@gmail.com>2020-05-10 11:31:39 +0300
committerWayJam So <imsuwj@gmail.com>2020-05-10 11:31:39 +0300
commit9579d503bf75ba1fc5b08f0326236137b289c3c5 (patch)
tree0fd47c2ef73fdc33d6a211b33cf081e0f003f976
parent123118da50d662b9d9dcdbad231df72ccbdc08c0 (diff)
fix: summary length
-rw-r--r--exampleSite/config.toml3
-rw-r--r--exampleSite/content/archives/_index.md8
-rw-r--r--layouts/index.html3
3 files changed, 9 insertions, 5 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 2ed5e50..0558b7e 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -4,8 +4,9 @@ title = "Mixedpaper"
theme = "hugo-theme-mixedpaper"
enableRobotsTXT = true
paginate = 10 # Set the number of posts to show before overflowing to the next page.
-summaryLength = 10 # Configure how long the post summary should be on the homepage.
+summaryLength = 100 # Configure how long the post summary should be on the homepage.
pygmentsUseClasses = true # enable theme-defined highlight style
+hasCJKLanguage = true
# Add your Google Analytics identifier: UA-XXXXXXXX-X
googleAnalytics = ""
diff --git a/exampleSite/content/archives/_index.md b/exampleSite/content/archives/_index.md
index c77cfe0..de333b4 100644
--- a/exampleSite/content/archives/_index.md
+++ b/exampleSite/content/archives/_index.md
@@ -1,7 +1,7 @@
-+++
-title = "Archives"
-description = ""
-+++
+---
+title: Archives
+description:
+---
You can change archives page details above.
diff --git a/layouts/index.html b/layouts/index.html
index 31a951a..742c6bc 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -10,6 +10,9 @@
</h3>
<div class="post_content summary">
{{ .Summary }}
+ {{ if .Truncated }}
+ <span class="hellip">&hellip;</span>
+ {{ end }}
</div>
</article>
{{ end }}