metadata should be provided in theme not in content/ directory exposed

to the end user
master
Marcell Mars 3 years ago
parent 6bdd8f1b8b
commit b167e218a9

@ -37,32 +37,63 @@ disableKinds = ["RSS", "sitemap"]
[module]
# replacement allow for easier local development
replacements = "git.sandpoints.org/Drawwell/SandpointsTheme -> /home/m/devel/SandpointsTheme"
#
# replacements = ["git.sandpoints.org/Drawwell/SandpointsTheme -> /home/m/devel/SandpointsTheme", "git.sandpoints.org/Drawwell/SandpointsEditPage -> /home/m/devel/SandpointsEditPage"]
# if any customizations are added one should add also
# the hugo's skeleton directory structure:
# archetypes, assets, layouts, static & data
#
[[module.imports]]
path = "git.sandpoints.org/Drawwell/SandpointsTheme"
[[module.imports.mounts]]
source = "archetypes"
target = "archetypes"
[[module.imports.mounts]]
source = "assets"
target = "assets"
[[module.imports.mounts]]
source = "layouts"
target = "layouts"
[[module.imports.mounts]]
source = "static"
target = "static"
[[module.imports.mounts]]
source = "data"
target = "data"
# metadata file needed for autocompletion
#
[[module.imports.mounts]]
source = "exampleSite/content/metadata/_index.md"
target = "content/metadata/_index.md"
# below is an example of customizations added to hugo web site
#
# [[module.imports.mounts]]
# source = "customizations/Dotawo/assets/css/site.css"
# target = "assets/css/site.css"
# [[module.imports.mounts]]
# source = "customizations/Dotawo/static/css/site.min.css"
# target = "static/css/site.min.css"
# if only [[module.imports]]'s path is provided
# and repo is made into hugo module (hugo mod init repo_name)
# [[module.imports]]'s path should apply SandpointsTheme
#
# if repo needs some specific customization the rest of the
# mounts below should be added respectively
#
# [[module.imports.mounts]]
# source = "archetypes"
# target = "archetypes"
# [[module.imports.mounts]]
# source = "assets"
# target = "assets"
# [[module.imports.mounts]]
# source = "data"
# target = "data"
# [[module.imports.mounts]]
# source = "layouts"
# target = "layouts"
# [[module.imports.mounts]]
# source = "static"
# target = "static"
# [[module.imports.mounts]]
# source = "customizations/specific_custom_instance/assets/css/site.css"
# target = "assets/css/site.css"
# below is the list of imports to get the svelte webapp
# which handles editing the website
#
[[module.imports]]
path = "git.sandpoints.org/Drawwell/SandpointsEditPage"
[[module.imports.mounts]]
source = "public/index.md"
target = "content/edit/index.md"
[[module.imports.mounts]]
source = "public/global.css"
target = "static/edit/build/global.css"
[[module.imports.mounts]]
source = "public/build/bundle.css"
target = "static/edit/build/bundle.css"
[[module.imports.mounts]]
source = "public/build/bundle.js"
target = "static/edit/build/bundle.js"
[[module.imports.mounts]]
source = "public/build/bundle.js.map"
target = "static/edit/build/bundle.js.map"

@ -0,0 +1,4 @@
---
title: "meta"
outputs: js
---
Loading…
Cancel
Save