-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 93746e0
Showing
142 changed files
with
17,148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Use an official node image as a parent image | ||
FROM node:20 | ||
|
||
# Set environment variables for versions | ||
ARG HUGO_VERSION=0.126.1 | ||
ARG GO_VERSION=1.22.3 | ||
|
||
# Install dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y ca-certificates openssl git curl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Determine architecture | ||
RUN ARCH=$(uname -m) && \ | ||
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; else ARCH=amd64; fi && \ | ||
echo "Architecture: $ARCH" | ||
|
||
# Download and install Hugo | ||
RUN ARCH=$(uname -m) && \ | ||
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; else ARCH=amd64; fi && \ | ||
wget -O hugo_extended_${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${ARCH}.tar.gz && \ | ||
tar xf hugo_extended_${HUGO_VERSION}.tar.gz && \ | ||
mv hugo /usr/bin/hugo && \ | ||
rm hugo_extended_${HUGO_VERSION}.tar.gz && \ | ||
echo "Hugo installed" | ||
|
||
# Download and install Go | ||
RUN ARCH=$(uname -m) && \ | ||
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; else ARCH=amd64; fi && \ | ||
wget -O go${GO_VERSION}.linux-${ARCH}.tar.gz https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz && \ | ||
tar -C /usr/local -xzf go${GO_VERSION}.linux-${ARCH}.tar.gz && \ | ||
rm go${GO_VERSION}.linux-${ARCH}.tar.gz && \ | ||
echo "Go installed" | ||
|
||
# Export Go path | ||
ENV PATH=$PATH:/usr/local/go/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "Hugo", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"GO_VERSION": "1.22.3", | ||
"HUGO_VERSION": "0.126.1" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"bradlc.vscode-tailwindcss", | ||
"budparr.language-hugo-vscode", | ||
"tamasfe.even-better-toml" | ||
] | ||
} | ||
}, | ||
"remoteUser": "node", | ||
"postCreateCommand": "npm install && npm run dev:example", | ||
"forwardPorts": [1313] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; https://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source_url "https://raw.githubusercontent.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc" "sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0=" | ||
|
||
use devenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: 🐛 Bug Report | ||
description: Report any issues you encounter to make hugoplate even more efficient. | ||
|
||
body: | ||
- type: input | ||
id: hugo-version | ||
attributes: | ||
label: What is your Hugo Extended Version | ||
description: Check the [README](https://github.com/zeon-studio/hugoplate?tab=readme-ov-file#user-content-️-prerequisites) for the required version. Use "hugo version" in your terminal to see your Hugo version. | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: go-version | ||
attributes: | ||
label: What is your Go Version | ||
description: Check the [README](https://github.com/zeon-studio/hugoplate?tab=readme-ov-file#user-content-️-prerequisites) for the required version. Use "go version" in your terminal to see your Go version. | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: node-version | ||
attributes: | ||
label: What is your Node.js Version | ||
description: Check the [README](https://github.com/zeon-studio/hugoplate?tab=readme-ov-file#user-content-️-prerequisites) for the required version. Use "node -v" in your terminal to see your Node.js version. | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: make-sure | ||
attributes: | ||
label: Check for Existing Issues | ||
description: | | ||
Before reporting a problem, please confirm that you've searched thoroughly for any existing reports on the same issue. If no relevant issues are found, proceed with the report. | ||
options: | ||
- label: I have searched and found no relevant issues. | ||
required: true | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear description of what you expected to happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: steps-to-reproduce | ||
attributes: | ||
label: Steps to Reproduce | ||
description: | | ||
Please explain the steps required to duplicate this issue. Include detailed commands and expected outcomes. | ||
placeholder: | | ||
1. | ||
2. | ||
3. | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: reproduction-url | ||
attributes: | ||
label: Code Reproduction URL | ||
description: Please reproduce this issue and provide a link to the repository. | ||
placeholder: github.com/yourusername/repo | ||
|
||
- type: textarea | ||
id: additional-information | ||
attributes: | ||
label: Additional Information | ||
description: | | ||
List any other information that is relevant to your issue. You can use Markdown for formatting, including code blocks, links, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Environment variables available to all jobs and steps in this workflow | ||
env: | ||
HUGO_ENV: production | ||
HUGO_VERSION: "0.124.1" | ||
GO_VERSION: "1.22.2" | ||
NODE_VERSION: "20.0.0" | ||
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }} | ||
TINA_TOKEN: ${{ vars.TINA_TOKEN }} | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install Hugo | ||
run: | | ||
curl -LO "https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz" | ||
tar -xvf hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz | ||
sudo mv hugo /usr/local/bin/ | ||
rm hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz | ||
hugo version | ||
- name: Install Go | ||
run: | | ||
curl -LO "https://dl.google.com/go/go${{ env.GO_VERSION }}.linux-amd64.tar.gz" | ||
sudo tar -C /usr/local -xzf go${{ env.GO_VERSION }}.linux-amd64.tar.gz | ||
echo "export PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV | ||
rm go${{ env.GO_VERSION }}.linux-amd64.tar.gz | ||
go version | ||
- name: Setup Project | ||
run: npm run project-setup | ||
|
||
- name: Install npm dependencies | ||
run: npm install | ||
|
||
- name: Publish to GitHub Pages | ||
run: npm run build | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Thumbs.db | ||
.DS_Store | ||
.dist | ||
.tmp | ||
.lock | ||
.sass-cache | ||
npm-debug.log | ||
node_modules | ||
builds | ||
package-lock.json | ||
public | ||
resources | ||
.hugo_build.lock | ||
jsconfig.json | ||
hugo_stats.json | ||
go.sum | ||
yarn.lock# Devenv | ||
.devenv* | ||
devenv.local.nix | ||
|
||
# direnv | ||
.direnv | ||
|
||
# pre-commit | ||
.pre-commit-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
stages: | ||
- build | ||
|
||
variables: | ||
HUGO_ENV: production | ||
HUGO_VERSION: "0.124.1" | ||
GO_VERSION: "1.22.2" | ||
NODE_VERSION: "18.16.1" | ||
|
||
cache: | ||
paths: | ||
- node_modules/ | ||
|
||
default: | ||
image: node:${NODE_VERSION} | ||
before_script: | ||
- echo "USING NODE ${NODE_VERSION}" | ||
- apt-get update && apt-get install -y curl | ||
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" | ||
- tar -xvf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | ||
- mv hugo /usr/local/bin/ | ||
- rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | ||
- echo "HUGO ${HUGO_VERSION} INSTALLED" | ||
- curl -LO "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" | ||
- tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz | ||
- export PATH=$PATH:/usr/local/go/bin | ||
- rm go${GO_VERSION}.linux-amd64.tar.gz | ||
- echo "GO ${GO_VERSION} INSTALLED" | ||
- npm install | ||
|
||
pages: | ||
stage: build | ||
script: | ||
- npm run project-setup | ||
- npm run build | ||
artifacts: | ||
paths: | ||
- public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"maxerr": 50, | ||
"bitwise": true, | ||
"camelcase": false, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"forin": true, | ||
"freeze": true, | ||
"immed": true, | ||
"indent": 2, | ||
"latedef": true, | ||
"newcap": false, | ||
"noarg": true, | ||
"noempty": true, | ||
"nonbsp": true, | ||
"nonew": true, | ||
"plusplus": false, | ||
"undef": true, | ||
"unused": false, | ||
"strict": true, | ||
"maxparams": false, | ||
"maxdepth": 4, | ||
"maxstatements": false, | ||
"maxcomplexity": false, | ||
"maxlen": 400, | ||
"browser": true, | ||
"devel": true, | ||
"asi": false, | ||
"boss": false, | ||
"debug": false, | ||
"eqnull": false, | ||
"es3": false, | ||
"es5": false, | ||
"esversion": 12, | ||
"moz": false, | ||
"evil": true, | ||
"expr": true, | ||
"funcscope": false, | ||
"globalstrict": false, | ||
"iterator": false, | ||
"lastsemic": false, | ||
"laxbreak": false, | ||
"laxcomma": false, | ||
"loopfunc": true, | ||
"multistr": true, | ||
"noyield": false, | ||
"notypeof": false, | ||
"proto": false, | ||
"scripturl": false, | ||
"shadow": false, | ||
"sub": false, | ||
"supernew": false, | ||
"validthis": false, | ||
"globals": { | ||
"jQuery": false, | ||
"google": false, | ||
"$": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"MD033": false, | ||
"MD034": false, | ||
"MD013": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"plugins": ["prettier-plugin-go-template"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.html"], | ||
"options": { | ||
"parser": "go-template", | ||
"goTemplateBracketSpacing": true, | ||
"bracketSameLine": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"bradlc.vscode-tailwindcss", | ||
"budparr.language-hugo-vscode", | ||
"tamasfe.even-better-toml" | ||
] | ||
} |
Oops, something went wrong.