Merge pull request #4 from deining/hugo-module
Run example site as hugo module
This commit is contained in:
commit
5eca80cb99
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
|
||||
env:
|
||||
HUGO_ENV: production
|
||||
HUGO_VERSION: "0.115.1"
|
||||
HUGO_VERSION: "0.115.2"
|
||||
GO_VERSION: "1.20.5"
|
||||
NODE_VERSION: "18.15.0"
|
||||
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
|
||||
|
@ -1,6 +1,9 @@
|
||||
[hugoVersion]
|
||||
extended = true
|
||||
min = "0.115.1"
|
||||
min = "0.115.2"
|
||||
|
||||
[[imports]]
|
||||
path = "github.com/zeon-studio/hugoplate"
|
||||
|
||||
[[imports]]
|
||||
path = "github.com/gethugothemes/hugo-modules/search"
|
||||
|
@ -5,7 +5,7 @@ description: "this is meta description"
|
||||
image: "/images/404.png"
|
||||
draft: false
|
||||
|
||||
# don't create a separete page
|
||||
# don't create a separate page
|
||||
_build:
|
||||
render: "never"
|
||||
---
|
||||
|
@ -8,7 +8,7 @@ button:
|
||||
label: "Get Started Now"
|
||||
link: "https://github.com/zeon-studio/hugoplate"
|
||||
|
||||
# don't create a separete page
|
||||
# don't create a separate page
|
||||
_build:
|
||||
render: "never"
|
||||
---
|
||||
|
@ -25,7 +25,7 @@ testimonials:
|
||||
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."
|
||||
|
||||
# don't create a separete page
|
||||
# don't create a separate page
|
||||
_build:
|
||||
render: "never"
|
||||
---
|
||||
|
@ -26,4 +26,5 @@ require (
|
||||
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/videos v0.0.0-20230618103508-54805e19264d // indirect
|
||||
github.com/zeon-studio/hugoplate v0.0.0-20230708052538-f81e6346d179 // indirect
|
||||
)
|
||||
|
@ -1,7 +1,6 @@
|
||||
######################## default configuration ####################
|
||||
baseURL = "https://hugoplate.netlify.app/site/"
|
||||
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
|
||||
timeZone = "America/New_York"
|
||||
# post pagination
|
||||
@ -33,7 +32,6 @@ target = "assets"
|
||||
source = "hugo_stats.json"
|
||||
target = "assets/watching/hugo_stats.json"
|
||||
|
||||
|
||||
############################# Build ##############################
|
||||
[build]
|
||||
noJSConfigInAssets = false
|
||||
|
@ -8,9 +8,9 @@
|
||||
"dev": "hugo server",
|
||||
"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",
|
||||
"dev:example": "cd exampleSite; hugo server --themesDir ../..",
|
||||
"build:example": "cd exampleSite; hugo --themesDir ../.. --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",
|
||||
"dev:example": "cd exampleSite; hugo server",
|
||||
"build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic",
|
||||
"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",
|
||||
"remove-darkmode": "node ./scripts/removeDarkmode.js && yarn format",
|
||||
"project-setup": "node ./scripts/projectSetup.js",
|
||||
@ -22,7 +22,7 @@
|
||||
"@tailwindcss/forms": "^0.5.3",
|
||||
"@tailwindcss/typography": "^0.5.9",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"postcss": "^8.4.24",
|
||||
"postcss": "^8.4.25",
|
||||
"postcss-cli": "^10.1.0",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier-plugin-go-template": "0.0.13",
|
||||
|
@ -3,7 +3,7 @@
|
||||
# default versions
|
||||
NODE_VERSION='18.16.1';
|
||||
GO_VERSION='1.20.5';
|
||||
HUGO_VERSION='0.115.1';
|
||||
HUGO_VERSION='0.115.2';
|
||||
|
||||
# install Node.js
|
||||
# echo "Installing Node.js $NODE_VERSION..."
|
||||
|
Loading…
Reference in New Issue
Block a user