aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.sources.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-04 02:27:15 -0400
committertdro <tdro@noreply.example.com>2022-05-04 02:27:15 -0400
commit30d44aac7a8539d9706df009cb3667d39ed7f350 (patch)
tree90fb63f92a3998c6a2b3ce8f18d7b2f286e9b9dc /themes/default/layouts/_default/home.sources.html
parente4d1b4ae07b939730b82635b9cea4fab4005237e (diff)
downloadcanory-30d44aac7a8539d9706df009cb3667d39ed7f350.tar.gz
canory-30d44aac7a8539d9706df009cb3667d39ed7f350.tar.bz2
canory-30d44aac7a8539d9706df009cb3667d39ed7f350.zip
themes/default/layouts: Allow sub directories
Set base URL on all links.
Diffstat (limited to 'themes/default/layouts/_default/home.sources.html')
-rw-r--r--themes/default/layouts/_default/home.sources.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/default/layouts/_default/home.sources.html b/themes/default/layouts/_default/home.sources.html
index aa77e2a..e37f53e 100644
--- a/themes/default/layouts/_default/home.sources.html
+++ b/themes/default/layouts/_default/home.sources.html
@@ -35,7 +35,7 @@
{{ range sort $_default ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
- <a download title="{{ .Name }}" href="/source/files/_default/{{ .Name }}">
+ <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/source/files/_default/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>
@@ -52,7 +52,7 @@
{{ range sort $_markup ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
- <a download title="{{ .Name }}" href="/source/files/_default/_markup/{{ .Name }}">
+ <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/source/files/_default/_markup/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>
@@ -69,7 +69,7 @@
{{ range sort $partials ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
- <a download title="{{ .Name }}" href="/source/files/partials/{{ .Name }}">
+ <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/source/files/partials/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>
@@ -86,7 +86,7 @@
{{ range sort $shortcodes ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
- <a download title="{{ .Name }}" href="/source/files/shortcodes/{{ .Name }}">
+ <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/source/files/shortcodes/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>