refactor: move Bootstrap modules and templates to dedicated repo

This commit is contained in:
Splitter
2025-08-25 20:17:01 +00:00
parent 3ca90b4b6d
commit a2b9e11a23
7 changed files with 106 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ on:
# Trigger the workflow every time you push to the `main` branch # Trigger the workflow every time you push to the `main` branch
push: push:
branches: ['main'] branches: ['main']
# Allows you to run this workflow manually from the Actions tab on GitHub. # Allows you to run this workflow manually from the Actions tab on GitHub
workflow_dispatch: workflow_dispatch:
# Provide permission to clone the repo and deploy it to GitHub Pages # Provide permission to clone the repo and deploy it to GitHub Pages
@@ -56,15 +56,24 @@ jobs:
hugo-version: ${{ env.WC_HUGO_VERSION }} hugo-version: ${{ env.WC_HUGO_VERSION }}
extended: true extended: true
# Cache dependencies (Go modules, node_modules) - stable, rarely changes
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
path: | path: |
/tmp/hugo_cache_runner/ /tmp/hugo_cache_runner/
node_modules/ node_modules/
modules/*/node_modules/ modules/*/node_modules/
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod', '**/package-lock.json', '**/pnpm-lock.yaml') }} key: ${{ runner.os }}-hugo-deps-${{ hashFiles('**/go.mod', '**/package-lock.json', '**/pnpm-lock.yaml') }}
restore-keys: | restore-keys: |
${{ runner.os }}-hugomod- ${{ runner.os }}-hugo-deps-
# Cache Hugo resources (processed images, CSS) - invalidates only when assets/config change
- uses: actions/cache@v4
with:
path: resources/
key: ${{ runner.os }}-hugo-resources-${{ hashFiles('assets/**/*', 'config/**/*', 'hugo.yaml', 'package.json') }}
restore-keys: |
${{ runner.os }}-hugo-resources-
- name: Setup Pages - name: Setup Pages
id: pages id: pages
@@ -79,7 +88,7 @@ jobs:
- name: Generate Pagefind search index (if applicable) - name: Generate Pagefind search index (if applicable)
run: | run: |
# Check if site uses Pagefind # Check if site uses Pagefind search
if [ -f "package.json" ] && grep -q "pagefind" package.json; then if [ -f "package.json" ] && grep -q "pagefind" package.json; then
pnpm dlx pagefind --source "public" || npx pagefind --source "public" pnpm dlx pagefind --source "public" || npx pagefind --source "public"
elif [ -f "netlify.toml" ] && grep -q "pagefind" netlify.toml; then elif [ -f "netlify.toml" ] && grep -q "pagefind" netlify.toml; then
@@ -94,11 +103,16 @@ jobs:
# Deploy website to GitHub Pages hosting # Deploy website to GitHub Pages hosting
deploy: deploy:
if: github.repository_owner != 'HugoBlox' if: github.repository_owner != 'HugoBlox'
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build
steps: steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment

77
.gitignore vendored Normal file
View File

@@ -0,0 +1,77 @@
# ============================================================================
# Hugo Site .gitignore
# ============================================================================
# ============================================================================
# Hugo Build Artifacts
# ============================================================================
# Generated site output
public/
# Hugo resources (processed assets)
resources/
# Hugo build lock
.hugo_build.lock
# Hugo stats
hugo_stats.json
# Auto-generated JS config
**/assets/jsconfig.json
# ============================================================================
# Node.js & Package Managers
# ============================================================================
# Dependencies
node_modules/
# ============================================================================
# Environment & Configuration
# ============================================================================
# Environment variables
.env
.env.local
.env.*.local
# ============================================================================
# Development Tools
# ============================================================================
# IDE & Editors
.vscode/
.idea/
# ============================================================================
# Generated Content
# ============================================================================
# Pagefind search index
pagefind/
static/pagefind/
# ============================================================================
# Operating System
# ============================================================================
# macOS
.DS_Store
.DS_Store?
._*
# Windows
Thumbs.db
Desktop.ini
# Linux
*~
# ============================================================================
# Logs & Temporary Files
# ============================================================================
*.log
npm-debug.log*

View File

@@ -43,5 +43,10 @@ We're an open source movement that depends on your support to stay online and th
## Latest news ## Latest news
<!--START_SECTION:news--> <!--START_SECTION:news-->
<!--Updated at 2025-08-24T02:05:42.085Z-->
- [Easily make an academic CV website to get more cites and grow your audience 🚀](https://hugoblox.com/blog/easily-make-academic-website/)
- [What&#39;s new in v5.2?](https://hugoblox.com/blog/whats-new-in-v5.2/)
- [What&#39;s new in v5.1?](https://hugoblox.com/blog/whats-new-in-v5.1/)
- [Version 5.0 (February 2021)](https://hugoblox.com/blog/version-5.0-february-2021/)
- [Version 5.0 Beta 3 (February 2021)](https://hugoblox.com/blog/version-5.0-beta-3-february-2021/)
<!--END_SECTION:news--> <!--END_SECTION:news-->

View File

@@ -28,7 +28,7 @@ Welcome 👋
2. The template can be modified and customised to suit your needs. It's a good platform for anyone looking to take control of their data and online identity whilst having the convenience to start off with a **no-code solution (write in Markdown and customize with YAML parameters)** and having **flexibility to later add even deeper personalization with HTML and CSS** 2. The template can be modified and customised to suit your needs. It's a good platform for anyone looking to take control of their data and online identity whilst having the convenience to start off with a **no-code solution (write in Markdown and customize with YAML parameters)** and having **flexibility to later add even deeper personalization with HTML and CSS**
3. You can work with all your favourite tools and apps with hundreds of plugins and integrations to speed up your workflows, interact with your readers, and much more 3. You can work with all your favourite tools and apps with hundreds of plugins and integrations to speed up your workflows, interact with your readers, and much more
[//]: # ([![The template is mobile first with a responsive design to ensure that your site looks stunning on every device.]&#40;https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/starters/academic/preview.png&#41;]&#40;https://hugoblox.com&#41;) [//]: # '[![The template is mobile first with a responsive design to ensure that your site looks stunning on every device.](https://raw.githubusercontent.com/HugoBlox/hugo-blox-builder/main/starters/academic-cv/preview.png)](https://hugoblox.com)'
### Get Started ### Get Started

View File

@@ -6,7 +6,7 @@ links:
url: https://github.com/pandas-dev/pandas url: https://github.com/pandas-dev/pandas
tags: tags:
- Hugo - Hugo
- Wowchemy - HugoBlox
- Markdown - Markdown
--- ---

View File

@@ -6,7 +6,7 @@ links:
url: https://github.com/pytorch/pytorch url: https://github.com/pytorch/pytorch
tags: tags:
- Hugo - Hugo
- Wowchemy - HugoBlox
- Markdown - Markdown
--- ---

View File

@@ -6,7 +6,7 @@ links:
url: https://github.com/scikit-learn/scikit-learn url: https://github.com/scikit-learn/scikit-learn
tags: tags:
- Hugo - Hugo
- Wowchemy - HugoBlox
- Markdown - Markdown
--- ---