mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-23 02:23:08 +01:00
- Every page now has a shortlink - Shortlinks can be manually overridden with the shortlink frontmatter param - A single "index.redirects" file is created at build time - A "redirects" tool splits that one file into multiple `_redirects` files, as would be needed on a site like byjp.fyi
5 lines
154 B
Text
5 lines
154 B
Text
{{ range .Site.RegularPages }}
|
|
{{- if .Permalink -}}
|
|
{{- printf "/%s %s 301\n" (partial "shortlink.txt" .) .Permalink -}}
|
|
{{- end -}}
|
|
{{- end -}}
|