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

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsiya <parsiya@gmail.com>2018-09-02 20:06:17 +0300
committerparsiya <parsiya@gmail.com>2018-09-02 20:06:17 +0300
commit892ead4ceeff7e8012ed83a2fd48639539775297 (patch)
treecff7913294718f80145c71020155f2201a84f22c
parent69ef26c1ebcefe7b2f0c363728062954918d8416 (diff)
Remove hardcoded rarr from source and it to continueReadingText markdown support
-rw-r--r--layouts/index.html4
-rw-r--r--sample-config.toml11
2 files changed, 5 insertions, 10 deletions
diff --git a/layouts/index.html b/layouts/index.html
index bdceb5d..331398c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -15,14 +15,14 @@
{{ else if .Description }}
{{ .Description }}
<footer>
- <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . }}{{ else }}Read On{{ end }} &rarr;</a>
+ <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On &rarr;{{ end }}</a>
</footer>
{{ else }}
<p>{{ .Summary }}</p>
{{ if .Truncated }}
<footer>
- <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . }}{{ else }}Read On{{ end }} &rarr;</a>
+ <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On &rarr;{{ end }}</a>
</footer>
{{ end }}
diff --git a/sample-config.toml b/sample-config.toml
index 9f01bdf..cf76b40 100644
--- a/sample-config.toml
+++ b/sample-config.toml
@@ -29,12 +29,6 @@ pygmentsStyle = "solarized-dark"
[permalinks]
post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the old ones
-# Make tags and categories work
-# As of Hugo v0.33 these are not needed anymore
-# [indexes]
-# tag = "tags"
-# category = "categories"
-
[params]
# --- Start sidebar options ---
@@ -89,8 +83,9 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the
# Search engine URL
searchEngineURL = "https://www.google.com/search"
- # Text of the "Continue Reading" label. &rarr; == right arrow, but it gets messed up in the string so it was added to index.html manually
- continueReadingText = "Would you like to know more?"
+ # Text of the "Continue Reading" label. Supports markdown and inline HTML.
+ # For example, &rarr; == right arrow.
+ continueReadingText = "Would you like to know more? &rarr;"
# Google analytics code - remove if you do not have/want Google Analytics - needs JavaScript
# googleAnalytics = "UA-XXXXX-X"