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

to the end user
This commit is contained in:
Marcell Mars 2021-04-09 00:29:12 +02:00
parent 6bdd8f1b8b
commit b167e218a9
2 changed files with 61 additions and 26 deletions

View file

@ -37,32 +37,63 @@ disableKinds = ["RSS", "sitemap"]
[module] [module]
# replacement allow for easier local development # 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]] [[module.imports]]
path = "git.sandpoints.org/Drawwell/SandpointsTheme" 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"
# if only [[module.imports]]'s path is provided # below is an example of customizations added to hugo web site
# and repo is made into hugo module (hugo mod init repo_name) #
# [[module.imports]]'s path should apply SandpointsTheme # [[module.imports.mounts]]
# # source = "customizations/Dotawo/assets/css/site.css"
# if repo needs some specific customization the rest of the # target = "assets/css/site.css"
# mounts below should be added respectively # [[module.imports.mounts]]
# # source = "customizations/Dotawo/static/css/site.min.css"
# [[module.imports.mounts]] # target = "static/css/site.min.css"
# source = "archetypes"
# target = "archetypes" # below is the list of imports to get the svelte webapp
# [[module.imports.mounts]] # which handles editing the website
# source = "assets" #
# target = "assets" [[module.imports]]
# [[module.imports.mounts]] path = "git.sandpoints.org/Drawwell/SandpointsEditPage"
# source = "data" [[module.imports.mounts]]
# target = "data" source = "public/index.md"
# [[module.imports.mounts]] target = "content/edit/index.md"
# source = "layouts" [[module.imports.mounts]]
# target = "layouts" source = "public/global.css"
# [[module.imports.mounts]] target = "static/edit/build/global.css"
# source = "static" [[module.imports.mounts]]
# target = "static" source = "public/build/bundle.css"
# [[module.imports.mounts]] target = "static/edit/build/bundle.css"
# source = "customizations/specific_custom_instance/assets/css/site.css" [[module.imports.mounts]]
# target = "assets/css/site.css" 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"

View file

@ -0,0 +1,4 @@
---
title: "meta"
outputs: js
---