Run example site as hugo module

This commit is contained in:
Andreas Deininger 2023-07-11 00:15:33 +02:00
parent f81e6346d1
commit d28d683001
10 changed files with 17 additions and 12 deletions

View File

@ -15,7 +15,7 @@ permissions:
# Environment variables available to all jobs and steps in this workflow # Environment variables available to all jobs and steps in this workflow
env: env:
HUGO_ENV: production HUGO_ENV: production
HUGO_VERSION: "0.115.1" HUGO_VERSION: "0.115.2"
GO_VERSION: "1.20.5" GO_VERSION: "1.20.5"
NODE_VERSION: "18.15.0" NODE_VERSION: "18.15.0"
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }} TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}

View File

@ -1,6 +1,9 @@
[hugoVersion] [hugoVersion]
extended = true extended = true
min = "0.115.1" min = "0.115.2"
[[imports]]
path = "github.com/zeon-studio/hugoplate"
[[imports]] [[imports]]
path = "github.com/gethugothemes/hugo-modules/search" path = "github.com/gethugothemes/hugo-modules/search"

View File

@ -5,7 +5,7 @@ description: "this is meta description"
image: "/images/404.png" image: "/images/404.png"
draft: false draft: false
# don't create a separete page # don't create a separate page
_build: _build:
render: "never" render: "never"
--- ---

View File

@ -8,7 +8,7 @@ button:
label: "Get Started Now" label: "Get Started Now"
link: "https://github.com/zeon-studio/hugoplate" link: "https://github.com/zeon-studio/hugoplate"
# don't create a separete page # don't create a separate page
_build: _build:
render: "never" render: "never"
--- ---

View File

@ -25,7 +25,7 @@ testimonials:
avatar: "/images/avatar-sm.png" avatar: "/images/avatar-sm.png"
content: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui iusto illo molestias, assumenda expedita commodi inventore non itaque molestiae voluptatum dolore, facilis sapiente, repellat veniam." content: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui iusto illo molestias, assumenda expedita commodi inventore non itaque molestiae voluptatum dolore, facilis sapiente, repellat veniam."
# don't create a separete page # don't create a separate page
_build: _build:
render: "never" render: "never"
--- ---

View File

@ -26,4 +26,5 @@ require (
github.com/gethugothemes/hugo-modules/tab v0.0.0-20230618103508-54805e19264d // indirect github.com/gethugothemes/hugo-modules/tab v0.0.0-20230618103508-54805e19264d // indirect
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230618103508-54805e19264d // indirect github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20230618103508-54805e19264d // indirect
github.com/gethugothemes/hugo-modules/videos v0.0.0-20230618103508-54805e19264d // indirect github.com/gethugothemes/hugo-modules/videos v0.0.0-20230618103508-54805e19264d // indirect
github.com/zeon-studio/hugoplate v0.0.0-20230708052538-f81e6346d179 // indirect
) )

View File

@ -1,7 +1,6 @@
######################## default configuration #################### ######################## default configuration ####################
baseURL = "https://hugoplate.netlify.app/site/" baseURL = "https://hugoplate.netlify.app/site/"
title = "Hugoplate" title = "Hugoplate"
theme = "hugoplate"
# Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List # Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
timeZone = "America/New_York" timeZone = "America/New_York"
# post pagination # post pagination
@ -33,7 +32,6 @@ target = "assets"
source = "hugo_stats.json" source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json" target = "assets/watching/hugo_stats.json"
############################# Build ############################## ############################# Build ##############################
[build] [build]
noJSConfigInAssets = false noJSConfigInAssets = false

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/zeon-studio/hugoplate
go 1.20

View File

@ -8,9 +8,9 @@
"dev": "hugo server", "dev": "hugo server",
"build": "hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic", "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic",
"test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify",
"dev:example": "cd exampleSite; hugo server --themesDir ../..", "dev:example": "cd exampleSite; hugo server",
"build:example": "cd exampleSite; hugo --themesDir ../.. --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic",
"test:example": "cd exampleSite; hugo server --themesDir ../.. --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify",
"update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy",
"remove-darkmode": "node ./scripts/removeDarkmode.js && yarn format", "remove-darkmode": "node ./scripts/removeDarkmode.js && yarn format",
"project-setup": "node ./scripts/projectSetup.js", "project-setup": "node ./scripts/projectSetup.js",
@ -22,7 +22,7 @@
"@tailwindcss/forms": "^0.5.3", "@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9", "@tailwindcss/typography": "^0.5.9",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"postcss": "^8.4.24", "postcss": "^8.4.25",
"postcss-cli": "^10.1.0", "postcss-cli": "^10.1.0",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"prettier-plugin-go-template": "0.0.13", "prettier-plugin-go-template": "0.0.13",

View File

@ -3,7 +3,7 @@
# default versions # default versions
NODE_VERSION='18.16.1'; NODE_VERSION='18.16.1';
GO_VERSION='1.20.5'; GO_VERSION='1.20.5';
HUGO_VERSION='0.115.1'; HUGO_VERSION='0.115.2';
# install Node.js # install Node.js
# echo "Installing Node.js $NODE_VERSION..." # echo "Installing Node.js $NODE_VERSION..."