Skip to content

Commit 19a36f4

Browse files
authored
Initial commit
0 parents  commit 19a36f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1496
-0
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: gcushen
2+
custom: https://hugoblox.com/sponsor/

.github/preview.webp

51.4 KB
Loading

.github/workflows/deploy.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
name: Deploy website to GitHub Pages
2+
3+
env:
4+
WC_HUGO_VERSION: '0.150.1'
5+
NODE_VERSION: '20'
6+
7+
on:
8+
# Trigger the workflow every time you push to the `main` branch
9+
push:
10+
branches: ['main']
11+
# Allows you to run this workflow manually from the Actions tab on GitHub
12+
workflow_dispatch:
13+
14+
# Provide permission to clone the repo and deploy it to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
concurrency:
21+
group: 'pages'
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Build website
26+
build:
27+
if: github.repository_owner != 'HugoBlox'
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
with:
33+
# Fetch history for Hugo's .GitInfo and .Lastmod
34+
fetch-depth: 0
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ env.NODE_VERSION }}
40+
41+
- name: Setup pnpm
42+
if: hashFiles('package.json') != ''
43+
uses: pnpm/action-setup@v4
44+
45+
- name: Install dependencies
46+
run: |
47+
# Install Tailwind CLI if package.json exists
48+
if [ -f "package.json" ]; then
49+
echo "Installing Tailwind dependencies..."
50+
pnpm install || npm install
51+
fi
52+
53+
- name: Setup Hugo
54+
uses: peaceiris/actions-hugo@v3
55+
with:
56+
hugo-version: ${{ env.WC_HUGO_VERSION }}
57+
extended: true
58+
59+
# Cache dependencies (Go modules, node_modules) - stable, rarely changes
60+
- uses: actions/cache@v4
61+
with:
62+
path: |
63+
/tmp/hugo_cache_runner/
64+
node_modules/
65+
modules/*/node_modules/
66+
key: ${{ runner.os }}-hugo-deps-${{ hashFiles('**/go.mod', '**/package-lock.json',
67+
'**/pnpm-lock.yaml') }}
68+
restore-keys: |
69+
${{ runner.os }}-hugo-deps-
70+
71+
# Cache Hugo resources (processed images, CSS) - invalidates only when assets/config change
72+
- uses: actions/cache@v4
73+
with:
74+
path: resources/
75+
key: ${{ runner.os }}-hugo-resources-${{ hashFiles('assets/**/*', 'config/**/*',
76+
'hugo.yaml', 'package.json') }}
77+
restore-keys: |
78+
${{ runner.os }}-hugo-resources-
79+
80+
- name: Setup Pages
81+
id: pages
82+
uses: actions/configure-pages@v5
83+
84+
- name: Build with Hugo
85+
env:
86+
HUGO_ENVIRONMENT: production
87+
run: |
88+
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
89+
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
90+
91+
- name: Generate Pagefind search index (if applicable)
92+
run: |
93+
# Check if site uses Pagefind search
94+
if [ -f "package.json" ] && grep -q "pagefind" package.json; then
95+
pnpm dlx pagefind --source "public" || npx pagefind --source "public"
96+
fi
97+
98+
- name: Upload artifact
99+
uses: actions/upload-pages-artifact@v4
100+
with:
101+
path: ./public
102+
103+
# Deploy website to GitHub Pages hosting
104+
deploy:
105+
if: github.repository_owner != 'HugoBlox'
106+
needs: build
107+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
108+
permissions:
109+
pages: write # to deploy to Pages
110+
id-token: write # to verify the deployment originates from an appropriate source
111+
# Deploy to the github-pages environment
112+
environment:
113+
name: github-pages
114+
url: ${{ steps.deployment.outputs.page_url }}
115+
runs-on: ubuntu-latest
116+
steps:
117+
- name: Deploy to GitHub Pages
118+
id: deployment
119+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# ============================================================================
2+
# Hugo Site .gitignore
3+
# ============================================================================
4+
5+
# ============================================================================
6+
# Hugo Build Artifacts
7+
# ============================================================================
8+
9+
# Generated site output
10+
public/
11+
12+
# Hugo resources (processed assets)
13+
resources/
14+
15+
# Hugo build lock
16+
.hugo_build.lock
17+
18+
# Hugo stats
19+
hugo_stats.json
20+
21+
# Auto-generated JS config
22+
**/assets/jsconfig.json
23+
24+
# ============================================================================
25+
# Node.js & Package Managers
26+
# ============================================================================
27+
28+
# Dependencies
29+
node_modules/
30+
31+
# ============================================================================
32+
# Environment & Configuration
33+
# ============================================================================
34+
35+
# Environment variables
36+
.env
37+
.env.local
38+
.env.*.local
39+
40+
# ============================================================================
41+
# Development Tools
42+
# ============================================================================
43+
44+
# IDE & Editors
45+
.vscode/
46+
.idea/
47+
48+
# ============================================================================
49+
# Generated Content
50+
# ============================================================================
51+
52+
# Pagefind search index
53+
pagefind/
54+
static/pagefind/
55+
56+
# ============================================================================
57+
# Operating System
58+
# ============================================================================
59+
60+
# macOS
61+
.DS_Store
62+
.DS_Store?
63+
._*
64+
65+
# Windows
66+
Thumbs.db
67+
Desktop.ini
68+
69+
# Linux
70+
*~
71+
72+
# ============================================================================
73+
# Logs & Temporary Files
74+
# ============================================================================
75+
76+
*.log
77+
npm-debug.log*

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020-present George Cushen (https://georgecushen.com)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# [Hugo Landing Page Theme](https://github.com/HugoBlox/theme-landing-page)
2+
3+
[![Screenshot](https://raw.githubusercontent.com/HugoBlox/theme-landing-page/main/.github/preview.webp)](https://hugoblox.com/templates/)
4+
5+
The Hugo **Landing Page Template** empowers you to easily create startup websites, marketing websites, and landing pages to accelerate your business growth.
6+
7+
**Trusted by 250,000+ creators, teams, and organizations.** Highly customizable via the integrated **no-code, block-based website builder**, making every site truly personalized ⭐⭐⭐⭐⭐
8+
9+
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/templates/)
10+
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
11+
[![Twitter Follow](https://img.shields.io/twitter/follow/GetResearchDev?label=Follow%20on%20Twitter)](https://x.com/BuildLore)
12+
13+
[Check out the latest demo](https://theme-landing-page.netlify.app) of what you'll get in less than 10 minutes, or [view the showcase](https://hugoblox.com/creators/).
14+
15+
The integrated [**Hugo Blox**](https://hugoblox.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.
16+
17+
- 👉 [**Get Started**](https://hugoblox.com/templates/)
18+
- 📚 [View the **documentation**](https://docs.hugoblox.com/)
19+
- 💬 [Chat with the **Hugo Blox Builder community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
20+
- ⬇️ **Automatically import citations from BibTeX** with the [Hugo Academic CLI](https://github.com/GetRD/academic-file-converter)
21+
- 🐦 Share your new site with the community: [@GetResearchDev](https://x.com/BuildLore) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithHugoBlox](https://twitter.com/search?q=%23MadeWithHugoBlox&src=typed_query)
22+
- 🗳 [Take the survey and help us improve #OpenSource](https://forms.gle/NioD9VhUg7PNmdCAA)
23+
- 🚀 [Contribute improvements](https://github.com/HugoBlox/hugo-blox-builder/blob/main/CONTRIBUTING.md) or [suggest improvements](https://github.com/HugoBlox/hugo-blox-builder/issues)
24+
- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
25+
26+
## We ask you, humbly, to support this open source movement
27+
28+
Today we ask you to defend the open source independence of the Hugo Blox Builder and themes 🐧
29+
30+
We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way.
31+
32+
### [❤️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen)

assets/media/bg-triangles.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/media/build-website.png

13.7 KB
Loading

assets/media/coffee.jpg

109 KB
Loading

assets/media/icons/custom/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)