Merge pull request #4 from deining/hugo-module

Run example site as hugo module
This commit is contained in:
Somrat 2023-07-12 09:55:32 +06:00 committed by GitHub
commit 5eca80cb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
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 }}

View File

@ -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"

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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
)

View File

@ -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

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",
"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",

View File

@ -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..."