Browse Source

fix(scripts): update install to place theme metadata in theme data folder

updates #59
Josh Habdas 1 year ago
parent
commit
5e89f6d8ea
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
2 changed files with 4 additions and 3 deletions
  1. 2
    2
      archetypes/help.md
  2. 2
    1
      bin/install

+ 2
- 2
archetypes/help.md View File

@@ -1,11 +1,11 @@
1 1
 +++
2
-title = "Help {{ .Site.Data.theme.latest.version }}"
2
+title = "Help {{ .Site.Data.npm.latest.version }}"
3 3
 expirydate = {{ .Date }}
4 4
 noindex = true
5 5
 toc = true
6 6
 type = "help"
7 7
 layout = "help"
8
-integrity = "{{ strings.TrimLeft "sha512-" .Site.Data.theme.latest.dist.integrity }}"
8
+integrity = "{{ strings.TrimLeft "sha512-" .Site.Data.npm.latest.dist.integrity }}"
9 9
 +++
10 10
 
11 11
 {{< hackcss-form name="validate" action="/help/" >}}

+ 2
- 1
bin/install View File

@@ -96,7 +96,8 @@ update_archetypes () {
96 96
 
97 97
 generate_help_docs () {
98 98
    echo "Generating help documentation ..."
99
-   mkdir data/theme && echo "$THEME_META" | tr '\r\n' ' ' > data/theme/latest.json
99
+   path=themes/after-dark/data/npm
100
+   mkdir -p "$path" && echo "$THEME_META" | tr '\r\n' ' ' > "$path"/latest.json
100 101
    hugo new help/index.md --kind help 1>/dev/null
101 102
 }
102 103
 

Loading…
Cancel
Save