diff --git a/docs/content/extras/aliases.md b/docs/content/extras/aliases.md index 9fd252cbe..ec7dc6950 100644 --- a/docs/content/extras/aliases.md +++ b/docs/content/extras/aliases.md @@ -72,9 +72,10 @@ Assuming a baseurl of `mysite.tld`, the contents of the html file will look some + http://mysite.tld/posts/my-original-url - + ``` diff --git a/target/htmlredirect.go b/target/htmlredirect.go index 1e2abec40..d8eac943c 100644 --- a/target/htmlredirect.go +++ b/target/htmlredirect.go @@ -26,8 +26,8 @@ import ( jww "github.com/spf13/jwalterweatherman" ) -const alias = "" -const aliasXHtml = "" +const alias = "{{ .Permalink }}" +const aliasXHtml = "{{ .Permalink }}" var defaultAliasTemplates *template.Template