From ec37876f4dba771139daf15038e035b001427f46 Mon Sep 17 00:00:00 2001
From: Xin
Date: Sun, 3 Nov 2024 15:35:32 +0000
Subject: [PATCH 1/3] docs(showcase): add Sidekick
---
exampleSite/content/showcase/index.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/exampleSite/content/showcase/index.md b/exampleSite/content/showcase/index.md
index ead0242..3b6025e 100644
--- a/exampleSite/content/showcase/index.md
+++ b/exampleSite/content/showcase/index.md
@@ -12,6 +12,12 @@ Open source projects powered by Hextra
{{< cards >}}
+ {{< card
+ link="https://github.com/mightymoud/sidekick"
+ title="Sidekick"
+ image="https://github.com/user-attachments/assets/4ae2a9d7-77b6-42eb-a9d7-5c4599f0f812"
+ imageStyle="object-fit:cover; aspect-ratio:16/9;"
+ >}}
{{< card
link="https://github.com/welding-torch/installc"
From ff85e6951dda618a90cced77a820ea499da4139b Mon Sep 17 00:00:00 2001
From: Xin
Date: Sun, 3 Nov 2024 16:08:29 +0000
Subject: [PATCH 2/3] chore: update bug report template
---
.github/ISSUE_TEMPLATE/bug_report.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 48cf2aa..41be0cf 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -17,6 +17,8 @@ assignees: ''
2.
3.
+
+
**Expected Behavior**
From 4c4f43779c6de5adf1c61edd4e79aae233965393 Mon Sep 17 00:00:00 2001
From: Xin
Date: Sun, 3 Nov 2024 16:53:18 +0000
Subject: [PATCH 3/3] build(ci): build doc site from latest release instead of
main
- bump hugo version in workflow
- bump github actions deps versions
- minor update to head.html to remove empty spaces
---
.github/workflows/pages.yml | 15 ++++++++-------
layouts/partials/head.html | 16 ++++++++--------
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 12d5bdd..4fcf007 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -31,7 +31,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
- HUGO_VERSION: 0.131.0
+ HUGO_VERSION: 0.136.5
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -41,10 +41,10 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- go-version: '1.22'
+ go-version: '1.23'
- name: Setup Pages
id: pages
- uses: actions/configure-pages@v4
+ uses: actions/configure-pages@v5
- name: Setup Hugo
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
@@ -54,11 +54,12 @@ jobs:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
+ # Use the latest release of the theme to build exampleSite
run: |
- hugo \
- --minify \
- --themesDir=../.. --source=exampleSite \
- --baseURL "${{ steps.pages.outputs.base_url }}/"
+ cd exampleSite && rm go.mod
+ hugo mod init github.com/imfing/hextra/exampleSite
+ hugo mod get -u github.com/imfing/hextra
+ hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5c27e86..6fced1b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -6,7 +6,7 @@
{{ else -}}
{{ end -}}
- {{ partialCached "favicons.html" . }}
+ {{ partialCached "favicons.html" . -}}
{{- if .IsHome -}}
{{ .Site.Title -}}
@@ -17,17 +17,17 @@
- {{ with .Params.canonical }}
+ {{- with .Params.canonical -}}
- {{ else }}
+ {{- else -}}
- {{ end }}
+ {{- end -}}
- {{ partial "opengraph.html" . }}
- {{ template "_internal/schema.html" . -}}
- {{ template "_internal/twitter_cards.html" . -}}
+ {{- partial "opengraph.html" . -}}
+ {{- template "_internal/schema.html" . -}}
+ {{- template "_internal/twitter_cards.html" . -}}
- {{ partialCached "head-css.html" . }}
+ {{- partialCached "head-css.html" . -}}