What is the most popular Hugo search tool?

What is the most popular Hugo search tool?

I asked ChatGPT “What is the most popular Hugo search tool?” and the answer given was Lunr.js

Here’s the full response:

The most popular search tool for Hugo websites is Lunr.js. It’s a powerful, client-side search engine that is often used with Hugo because of its flexibility, ease of integration, and performance. Lunr.js is a JavaScript-based search library that allows you to implement fast, full-text search capabilities directly in the browser without needing a backend server.

[Read More]

2024 08 20

Can I get some feedback?

I asked ChatGPT for suggestions on how to implement comments on a Hugo static website hosted on GitHub Pages. This led me to implementing Utterances. Can I get some feedback? Let’s hope so!

      <div id="comments">
        <h2>Comments</h2>
        <script src="https://utteranc.es/client.js"
                repo="spr12ian/spr12ian.github.io"
                issue-term="pathname"
                theme="preferred-color-scheme"
                crossorigin="anonymous"
                async>
        </script>
      </div>

Further Reading

ChatGPT Github Pages Hugo Utterances

2024 08 19

I upgraded my Github Actions workflow to use the latest version of Hugo

.github/workflows/hugo.yaml

# Workflow for building and deploying my Hugo blog to GitHub Pages
name: Deploy Hugo site to Pages

on:
  # Runs on pushes targeting the default branch
  push:
    branches:
      - main

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
  group: "pages"
  cancel-in-progress: false

# Default to bash
defaults:
  run:
    shell: bash

jobs:
  # Build job
  build:
    runs-on: ubuntu-latest
    steps:     
      - name: Install Dart Sass
        run: sudo snap install dart-sass
      - name: Checkout
        uses: actions/checkout@v3
        with:
          submodules: recursive
          fetch-depth: 0
      - name: Setup Pages
        id: pages
        uses: actions/configure-pages@v3
      - name: Install Node.js dependencies
        run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: 'latest'  # Automatically uses the latest Hugo version
      - name: Build with Hugo
        run: |
          hugo \
            --gc \
            --minify \
            --baseURL "${{ steps.pages.outputs.base_url }}/"          
      - 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

Why haven't I posted for a while?

Why haven’t I posted for a while?

I was working on a GAS project that went very adrift, which then resulted in me getting a bit down. I went into zombie mode wasting a lot of time on pointless computer games.

On the plus side, I think I have an idea for a project that may work.

2023 08 16

I lost a crown today.

2023 08 09

I modified my update-linux script to try to not override the snap version of VS Code on chromeOS