diff options
author | parsiya <parsiya@gmail.com> | 2018-09-02 20:06:17 +0300 |
---|---|---|
committer | parsiya <parsiya@gmail.com> | 2018-09-02 20:06:17 +0300 |
commit | 892ead4ceeff7e8012ed83a2fd48639539775297 (patch) | |
tree | cff7913294718f80145c71020155f2201a84f22c | |
parent | 69ef26c1ebcefe7b2f0c363728062954918d8416 (diff) |
Remove hardcoded rarr from source and it to continueReadingText markdown support
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | sample-config.toml | 11 |
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 }} →</a> + <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On →{{ end }}</a> </footer> {{ else }} <p>{{ .Summary }}</p> {{ if .Truncated }} <footer> - <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . }}{{ else }}Read On{{ end }} →</a> + <a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On →{{ 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. → == 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, → == right arrow. + continueReadingText = "Would you like to know more? →" # Google analytics code - remove if you do not have/want Google Analytics - needs JavaScript # googleAnalytics = "UA-XXXXX-X" |