File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ shopt -s globstar
4+ for i in content/** /* .md
5+ do
6+ # Fix anchor links: Must be converted to lowercase
7+ sed -i -e ' s/\(\[.*\](\)\(#.* "wikilink")\)/\1\L\2/g' $i
8+
9+ # # Fix relative links: Must prepend / on any non-anchor link
10+ # perl -0777 -i -pe 's/(\[(?s:.)*?\])\(([^#].* "wikilink"\))/\1(\/\2/g' $i
11+
12+ # TODO: Remove colons from relative link targets
13+ done
Original file line number Diff line number Diff line change 1- baseURL = ' '
1+ baseURL = ' https://mikage-emu.github.io/3dbrew/ '
22languageCode = ' en-us'
33title = ' 3dbrew'
44disablePathToLower = true
5+
6+ # Broken, see https://github.com/gohugoio/hugo/issues/12130
7+ # relativeURLs = true
Original file line number Diff line number Diff line change 1+ {{- if (not (or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "#"))) }}
2+ < a href ="/3dbrew/{{ .Destination }} "
3+ {{- with .Title }} title ="{{ . }} "{{ end -}}
4+ >
5+ {{- with .Text }}{{ . }}{{ end -}}
6+ </ a >
7+ {{ else }}
8+ < a href ="{{ .Destination | safeURL }} "
9+ {{- with .Title }} title ="{{ . }} "{{ end -}}
10+ >
11+ {{- with .Text }}{{ . }}{{ end -}}
12+ </ a >
13+ {{ end -}}
You can’t perform that action at this time.
0 commit comments