Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jacobsun/edidor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/file_template.js')
-rw-r--r--src/js/file_template.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/js/file_template.js b/src/js/file_template.js
new file mode 100644
index 0000000..64fbdd8
--- /dev/null
+++ b/src/js/file_template.js
@@ -0,0 +1,20 @@
+export function genFile (identifier, themeName) {
+ return `/*
+Hugo Edidor theme wild mode exported.
+homepage: https://github.com/jacobsun/edidor
+Usage:
+1. Throw me to your site root folder/static/css directory, you can rename me to whatever you like.
+2. Copy the code below to your config file.
+
+--------
+[[menu.main]]
+parent = "Theme"
+identifier = "${identifier}"
+name = "${themeName}"
+url = "#"
+weight = 30
+--------
+
+3. Change the field 'name' and 'weight' to whatever you like. Leave others alone, and don't add your custom field, hugo doesn't support that, though I really hope so :/.
+*/`
+}