diff --git a/src/views/partials/footer.html b/src/partials/footer.html similarity index 93% rename from src/views/partials/footer.html rename to src/partials/footer.html index 82d53ad..1c265cc 100644 --- a/src/views/partials/footer.html +++ b/src/partials/footer.html @@ -2,7 +2,7 @@
webOS Homebrew - © 2020–2024 + © 2020–2024
Guides
diff --git a/src/views/partials/navbar.html b/src/partials/navbar.html similarity index 100% rename from src/views/partials/navbar.html rename to src/partials/navbar.html diff --git a/src/views/partials/page.hbs b/src/partials/page.hbs similarity index 100% rename from src/views/partials/page.hbs rename to src/partials/page.hbs diff --git a/src/views/partials/rooted-vs-devmode.html b/src/partials/rooted-vs-devmode.html similarity index 100% rename from src/views/partials/rooted-vs-devmode.html rename to src/partials/rooted-vs-devmode.html diff --git a/src/views/donate.hbs b/src/views/donate.hbs new file mode 100644 index 0000000..320abb5 --- /dev/null +++ b/src/views/donate.hbs @@ -0,0 +1,7 @@ +{{#*inline "content"}} +

Donate

+

+ Under construction. +

+{{/inline}} +{{> page title="Donate" }} \ No newline at end of file diff --git a/src/views/index/index.hbs b/src/views/index/index.hbs index efc4eff..2a96c4d 100644 --- a/src/views/index/index.hbs +++ b/src/views/index/index.hbs @@ -54,10 +54,10 @@

More apps - Kodi - RetroArch - Moonlight - Ambient light + Kodi + RetroArch + Moonlight + Ambient light for webOS TV

@@ -68,7 +68,7 @@
-
+
@@ -103,7 +103,7 @@
-
+
@@ -142,11 +142,13 @@

- Kodi iconKodi + Kodi iconKodi
+ Moonlight iconMoonlight
- Moonlight iconMoonlight -
- RetroArch iconRetroArch + RetroArch iconRetroArch
And ✨more✨
@@ -289,7 +291,7 @@
-
Donate
+ Donate

diff --git a/webpack.config.js b/webpack.config.js index 0e140a3..b1dd2f5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,28 +13,19 @@ module.exports = { }, plugins: [ new HtmlBundlerPlugin({ - entry: { - index: { - import: './src/views/index/index.hbs', - }, - rooting: { - import: './src/views/rooting.hbs', - filename: 'rooting/index.html', - }, - devmode: { - import: './src/views/devmode.hbs', - filename: 'devmode/index.html', - }, - develop: { - import: './src/views/develop.hbs', - filename: 'develop/index.html', - }, + entry: 'src/views/', + test: /\.(html|hbs)$/, + filename: ({filename, chunk: {name}}) => { + if (name.startsWith(`index${path.sep}`)) { + return 'index.html'; + } + return '[name]/index.html'; }, preprocessor: 'handlebars', preprocessorOptions: { root: 'src', partials: [ - 'src/views/partials' + 'src/partials' ], }, loaderOptions: {