diff options
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/_default/_markup/render-link.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 46f0eb8..9d0f65c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -10,7 +10,7 @@ summaryLength = 100 # Custom cummary length, add <!--more--> in post file to cus paginate = 10 [permalinks] - post = "/:title/" # Custom post links, e.g. "/:year/:month/:title/" + post = "/:filename/" # Custom post links, e.g. "/:year/:month/:title/" [params] subTitle = "This is a Sub Title" diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..a5cd49a --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
\ No newline at end of file |