diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 44a4a6a..0528a51 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ on: # Trigger the workflow every time you push to the `main` branch push: 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: # Provide permission to clone the repo and deploy it to GitHub Pages @@ -56,15 +56,24 @@ jobs: hugo-version: ${{ env.WC_HUGO_VERSION }} extended: true + # Cache dependencies (Go modules, node_modules) - stable, rarely changes - uses: actions/cache@v4 with: path: | /tmp/hugo_cache_runner/ 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: | - ${{ 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 id: pages @@ -79,7 +88,7 @@ jobs: - name: Generate Pagefind search index (if applicable) run: | - # Check if site uses Pagefind + # Check if site uses Pagefind search if [ -f "package.json" ] && grep -q "pagefind" package.json; then pnpm dlx pagefind --source "public" || npx pagefind --source "public" elif [ -f "netlify.toml" ] && grep -q "pagefind" netlify.toml; then @@ -94,11 +103,16 @@ jobs: # Deploy website to GitHub Pages hosting deploy: 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: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - needs: build steps: - name: Deploy to GitHub Pages id: deployment diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..132544c --- /dev/null +++ b/.gitignore @@ -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* diff --git a/README.md b/README.md index 6865f10..9f25f0f 100644 --- a/README.md +++ b/README.md @@ -43,5 +43,10 @@ We're an open source movement that depends on your support to stay online and th ## Latest news - + +- [Easily make an academic CV website to get more cites and grow your audience 🚀](https://hugoblox.com/blog/easily-make-academic-website/) +- [What's new in v5.2?](https://hugoblox.com/blog/whats-new-in-v5.2/) +- [What'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/) diff --git a/content/post/get-started/index.md b/content/post/get-started/index.md index afe5db9..36a12dc 100644 --- a/content/post/get-started/index.md +++ b/content/post/get-started/index.md @@ -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** 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.](https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/starters/academic/preview.png)](https://hugoblox.com)) +[//]: # '[![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 diff --git a/content/project/pandas/index.md b/content/project/pandas/index.md index a7b1cb3..7ee92e5 100644 --- a/content/project/pandas/index.md +++ b/content/project/pandas/index.md @@ -6,7 +6,7 @@ links: url: https://github.com/pandas-dev/pandas tags: - Hugo - - Wowchemy + - HugoBlox - Markdown --- diff --git a/content/project/pytorch/index.md b/content/project/pytorch/index.md index c6b9800..3a906c6 100644 --- a/content/project/pytorch/index.md +++ b/content/project/pytorch/index.md @@ -6,7 +6,7 @@ links: url: https://github.com/pytorch/pytorch tags: - Hugo - - Wowchemy + - HugoBlox - Markdown --- diff --git a/content/project/scikit/index.md b/content/project/scikit/index.md index f63d1b4..0de72b0 100644 --- a/content/project/scikit/index.md +++ b/content/project/scikit/index.md @@ -6,7 +6,7 @@ links: url: https://github.com/scikit-learn/scikit-learn tags: - Hugo - - Wowchemy + - HugoBlox - Markdown ---