aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-04-05 02:54:28 -0400
committertdro <tdro@users.noreply.github.com>2022-04-05 02:54:28 -0400
commit62cec58fa6cdea18021f54a77dfaf910106d4443 (patch)
treed3d10dd22a42114613b5edfe20694b1a82fea61c
parentf62ea6cceab97af2bdc4fab8f215e4ed90be84ca (diff)
downloadhugo-theme-opulene-master.tar.gz
hugo-theme-opulene-master.tar.bz2
hugo-theme-opulene-master.zip
config: Add local module mounts to expose raw markdown sourceHEADmaster
-rw-r--r--config.json36
-rw-r--r--config.toml34
-rw-r--r--config.yaml20
3 files changed, 90 insertions, 0 deletions
diff --git a/config.json b/config.json
index 622b432..80a39ff 100644
--- a/config.json
+++ b/config.json
@@ -84,5 +84,41 @@
"page": [
"html"
]
+ },
+ "module": {
+ "mounts": [
+ {
+ "source": "content",
+ "target": "content"
+ },
+ {
+ "source": "static",
+ "target": "static"
+ },
+ {
+ "source": "layouts",
+ "target": "layouts"
+ },
+ {
+ "source": "data",
+ "target": "data"
+ },
+ {
+ "source": "assets",
+ "target": "assets"
+ },
+ {
+ "source": "i18n",
+ "target": "i18n"
+ },
+ {
+ "source": "archetypes",
+ "target": "archetypes"
+ },
+ {
+ "source": "content",
+ "target": "static/raw"
+ }
+ ]
}
}
diff --git a/config.toml b/config.toml
index e8ea31f..c3881ef 100644
--- a/config.toml
+++ b/config.toml
@@ -66,3 +66,37 @@ pygmentsCodeFencesGuessSyntax = true
taxonomy = ["html", "rss"]
term = ["html", "rss"]
page = ["html"]
+
+[module]
+
+ [[module.mounts]]
+ source = "content"
+ target = "content"
+
+ [[module.mounts]]
+ source = "static"
+ target = "static"
+
+ [[module.mounts]]
+ source = "layouts"
+ target = "layouts"
+
+ [[module.mounts]]
+ source = "data"
+ target = "data"
+
+ [[module.mounts]]
+ source = "assets"
+ target = "assets"
+
+ [[module.mounts]]
+ source = "i18n"
+ target = "i18n"
+
+ [[module.mounts]]
+ source = "archetypes"
+ target = "archetypes"
+
+ [[module.mounts]]
+ source = "content"
+ target = "static/raw"
diff --git a/config.yaml b/config.yaml
index c410746..e31bda0 100644
--- a/config.yaml
+++ b/config.yaml
@@ -66,3 +66,23 @@ outputs:
- rss
page:
- html
+
+module:
+ mounts:
+ - source: content
+ target: content
+ - source: static
+ target: static
+ - source: layouts
+ target: layouts
+ - source: data
+ target: data
+ - source: assets
+ target: assets
+ - source: i18n
+ target: i18n
+ - source: archetypes
+ target: archetypes
+
+ - source: content
+ target: static/raw