From 9ee6dcd1dba6beb8ae997e80f8bf5572d49aa4de Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 13 Apr 2020 23:33:25 +0800 Subject: Use hooks to let in-post links open in new tab --- exampleSite/config.toml | 2 +- layouts/_default/_markup/render-link.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 layouts/_default/_markup/render-link.html 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 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 @@ +{{ .Text | safeHTML }} \ No newline at end of file -- cgit v1.2.3