generated from zeon-studio/hugoplate
-
Notifications
You must be signed in to change notification settings - Fork 3
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 0d00912
Showing
110 changed files
with
16,690 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,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,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.118.2" | ||
GO_VERSION: "1.20.5" | ||
NODE_VERSION: "18.15.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@v3 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
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@v1 | ||
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@v2 |
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,17 @@ | ||
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 |
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.118.2" | ||
GO_VERSION: "1.20.5" | ||
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" | ||
] | ||
} |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2023 - Present, Zeon Studio | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,29 @@ | ||
version: 1 | ||
frontend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- yum install -y curl | ||
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v0.118.2/hugo_extended_0.118.2_Linux-64bit.tar.gz" | ||
- tar -xvf hugo_extended_0.118.2_Linux-64bit.tar.gz | ||
- mv hugo /usr/local/bin/ | ||
- rm hugo_extended_0.118.2_Linux-64bit.tar.gz | ||
- echo "HUGO 0.118.2 INSTALLED" | ||
- curl -LO "https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz" | ||
- tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz | ||
- export PATH=$PATH:/usr/local/go/bin | ||
- rm go1.20.5.linux-amd64.tar.gz | ||
- echo "GO 1.20.5 INSTALLED" | ||
- npm install | ||
build: | ||
commands: | ||
- npm run project-setup | ||
- npm run build | ||
artifacts: | ||
# IMPORTANT - Please verify your build output directory | ||
baseDirectory: /public | ||
files: | ||
- "**/*" | ||
cache: | ||
paths: | ||
- node_modules/**/* |
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 @@ | ||
// main script | ||
(function () { | ||
"use strict"; | ||
|
||
// Dropdown Menu Toggler For Mobile | ||
// ---------------------------------------- | ||
const dropdownMenuToggler = document.querySelectorAll( | ||
".nav-dropdown > .nav-link", | ||
); | ||
|
||
dropdownMenuToggler.forEach((toggler) => { | ||
toggler?.addEventListener("click", (e) => { | ||
e.target.parentElement.classList.toggle("active"); | ||
}); | ||
}); | ||
|
||
// Testimonial Slider | ||
// ---------------------------------------- | ||
new Swiper(".testimonial-slider", { | ||
spaceBetween: 24, | ||
loop: true, | ||
pagination: { | ||
el: ".testimonial-slider-pagination", | ||
type: "bullets", | ||
clickable: true, | ||
}, | ||
breakpoints: { | ||
768: { | ||
slidesPerView: 2, | ||
}, | ||
992: { | ||
slidesPerView: 3, | ||
}, | ||
}, | ||
}); | ||
})(); |
Oops, something went wrong.