« get me outta code hell

data, content: embed scripts on static pages - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-27 21:13:39 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-27 21:13:39 -0400
commita65693efe23b97da173463f207979f81767d791c (patch)
tree75687a16de9476eebe68163deab7b037e125af70 /src/data
parent930bb9e0f1fc7167dbf53636246e3cd2de773774 (diff)
data, content: embed scripts on static pages
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/static-page.js1
-rw-r--r--src/data/yaml.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/data/things/static-page.js b/src/data/things/static-page.js
index ab9c5f98..8a3fd10e 100644
--- a/src/data/things/static-page.js
+++ b/src/data/things/static-page.js
@@ -30,5 +30,6 @@ export class StaticPage extends Thing {
     directory: directory(),
     content: simpleString(),
     stylesheet: simpleString(),
+    script: simpleString(),
   });
 }
diff --git a/src/data/yaml.js b/src/data/yaml.js
index 2c600341..dda06949 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -646,6 +646,7 @@ export const processStaticPageDocument = makeProcessDocument(T.StaticPage, {
     directory: 'Directory',
 
     stylesheet: 'Style',
+    script: 'Script',
     content: 'Content',
   },
 });