metadata should be provided in theme not in content/ directory exposed
to the end user
This commit is contained in:
parent
6bdd8f1b8b
commit
b167e218a9
2 changed files with 61 additions and 26 deletions
|
@ -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"
|
||||||
|
|
||||||
# if only [[module.imports]]'s path is provided
|
# metadata file needed for autocompletion
|
||||||
# and repo is made into hugo module (hugo mod init repo_name)
|
#
|
||||||
# [[module.imports]]'s path should apply SandpointsTheme
|
[[module.imports.mounts]]
|
||||||
#
|
source = "exampleSite/content/metadata/_index.md"
|
||||||
# if repo needs some specific customization the rest of the
|
target = "content/metadata/_index.md"
|
||||||
# mounts below should be added respectively
|
|
||||||
#
|
# below is an example of customizations added to hugo web site
|
||||||
# [[module.imports.mounts]]
|
#
|
||||||
# source = "archetypes"
|
# [[module.imports.mounts]]
|
||||||
# target = "archetypes"
|
# source = "customizations/Dotawo/assets/css/site.css"
|
||||||
# [[module.imports.mounts]]
|
# target = "assets/css/site.css"
|
||||||
# source = "assets"
|
# [[module.imports.mounts]]
|
||||||
# target = "assets"
|
# source = "customizations/Dotawo/static/css/site.min.css"
|
||||||
# [[module.imports.mounts]]
|
# target = "static/css/site.min.css"
|
||||||
# source = "data"
|
|
||||||
# target = "data"
|
# below is the list of imports to get the svelte webapp
|
||||||
# [[module.imports.mounts]]
|
# which handles editing the website
|
||||||
# source = "layouts"
|
#
|
||||||
# target = "layouts"
|
[[module.imports]]
|
||||||
# [[module.imports.mounts]]
|
path = "git.sandpoints.org/Drawwell/SandpointsEditPage"
|
||||||
# source = "static"
|
[[module.imports.mounts]]
|
||||||
# target = "static"
|
source = "public/index.md"
|
||||||
# [[module.imports.mounts]]
|
target = "content/edit/index.md"
|
||||||
# source = "customizations/specific_custom_instance/assets/css/site.css"
|
[[module.imports.mounts]]
|
||||||
# target = "assets/css/site.css"
|
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"
|
||||||
|
|
4
exampleSite/content/metadata/_index.md
Normal file
4
exampleSite/content/metadata/_index.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: "meta"
|
||||||
|
outputs: js
|
||||||
|
---
|
Loading…
Add table
Reference in a new issue