diff options
author | tdro <tdro@noreply.example.com> | 2022-05-24 19:31:26 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-24 19:31:26 -0400 |
commit | fbf386ebd6a8a279a0dc0de3e19eb0c29cc41e71 (patch) | |
tree | 14d8dd852d7782f4f2e73b19b881be249972f79b | |
parent | aabe5dadf735d64e7a45cf5a618b5c6f7aa8f547 (diff) | |
download | canory-fbf386ebd6a8a279a0dc0de3e19eb0c29cc41e71.tar.gz canory-fbf386ebd6a8a279a0dc0de3e19eb0c29cc41e71.tar.bz2 canory-fbf386ebd6a8a279a0dc0de3e19eb0c29cc41e71.zip |
config: Keep files under sources
Remove extra source folder in public path.
-rw-r--r-- | config.json | 2 | ||||
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | config.yaml | 2 | ||||
-rw-r--r-- | themes/default/layouts/_default/home.sources.html | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/config.json b/config.json index 5f87944..f5b51c2 100644 --- a/config.json +++ b/config.json @@ -281,7 +281,7 @@ }, { "source": "themes/default/layouts", - "target": "static/source/files" + "target": "static/sources/files" }, { "source": "data", diff --git a/config.toml b/config.toml index c228645..c7d0a01 100644 --- a/config.toml +++ b/config.toml @@ -210,7 +210,7 @@ enableRobotsTXT = true [[module.mounts]] source = "themes/default/layouts" - target = "static/source/files" + target = "static/sources/files" [[module.mounts]] source = "data" diff --git a/config.yaml b/config.yaml index 7bc34c2..611e53c 100644 --- a/config.yaml +++ b/config.yaml @@ -188,6 +188,6 @@ module: - source: content target: static/raw - source: themes/default/layouts - target: static/source/files + target: static/sources/files - source: data target: static/data diff --git a/themes/default/layouts/_default/home.sources.html b/themes/default/layouts/_default/home.sources.html index 720f249..8297794 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="{{ $.Site.BaseURL }}/source/files/_default/{{ .Name }}"> + <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/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="{{ $.Site.BaseURL }}/source/files/_default/_markup/{{ .Name }}"> + <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/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="{{ $.Site.BaseURL }}/source/files/partials/{{ .Name }}"> + <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/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="{{ $.Site.BaseURL }}/source/files/shortcodes/{{ .Name }}"> + <a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/files/shortcodes/{{ .Name }}"> <code> <span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span> <span>{{ .Name }}</span> |