Run example site as hugo module
This commit is contained in:
parent
f81e6346d1
commit
d28d683001
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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 }}
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
---
|
---
|
||||||
|
@ -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"
|
||||||
---
|
---
|
||||||
|
@ -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"
|
||||||
---
|
---
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
|
@ -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",
|
||||||
|
@ -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..."
|
||||||
|
Loading…
Reference in New Issue
Block a user