From ca9888609ee2811d7958b988989a6d3265ec0587 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 16 Apr 2026 02:16:23 +0100 Subject: [PATCH] fix(sections): update stale singular section path references to plural MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix build_links.html project/ → projects/ GetPage lookup (breaking bug) - Fix collection block.html event/publication → events/publications type checks - Update academic-cv publication archetypes, import workflow (publication/ → publications/) - Update data-science-blog import workflow, notebook, author RSS URL (post/ → blog/) - Update documentation and startup-landing-page author RSS URLs (post/ → blog/) --- .gitignore | 1 + modules/blox/blox/collection/block.html | 4 ++-- .../layouts/_partials/functions/build_links.html | 2 +- .../.github/workflows/import-publications.yml | 12 ++++++------ .../content/publications/conference-paper/index.md | 2 +- .../content/publications/journal-article/index.md | 2 +- .../content/publications/preprint/index.md | 2 +- .../.github/workflows/import-notebooks.yml | 6 +++--- templates/data-science-blog/data/authors/me.yaml | 2 +- .../notebooks/blog-with-jupyter.ipynb | 6 +++--- templates/documentation/data/authors/me.yaml | 2 +- templates/startup-landing-page/data/authors/me.yaml | 2 +- 12 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index ac276685..7fb16ba7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ AGENTS.local.md CLAUDE.local.md +.claude/settings.json # ============================================================================ # Build Artifacts & Generated Files diff --git a/modules/blox/blox/collection/block.html b/modules/blox/blox/collection/block.html index 97da9bb1..b1f625d4 100644 --- a/modules/blox/blox/collection/block.html +++ b/modules/blox/blox/collection/block.html @@ -318,9 +318,9 @@ {{ $i18n := "" }} {{ if eq $items_type "blog" }} {{ $i18n = "more_posts" }} - {{ else if eq $items_type "event" }} + {{ else if eq $items_type "events" }} {{ $i18n = "more_talks" }} - {{ else if eq $items_type "publication" }} + {{ else if eq $items_type "publications" }} {{ $i18n = "more_publications" }} {{ else }} {{ $i18n = "more_pages" }} diff --git a/modules/blox/layouts/_partials/functions/build_links.html b/modules/blox/layouts/_partials/functions/build_links.html index 29936d6e..11e257d9 100644 --- a/modules/blox/layouts/_partials/functions/build_links.html +++ b/modules/blox/layouts/_partials/functions/build_links.html @@ -69,7 +69,7 @@ {{/* 2) Associated projects (internal) */}} {{ with $page.Params.projects }} {{ range . }} - {{ with (site.GetPage (printf "project/%s" .)) }} + {{ with (site.GetPage (printf "projects/%s" .)) }} {{ $typeF := "project" }} {{ $urlF := .RelPermalink }} {{ $keyF := printf "%s::%s" $typeF $urlF }} diff --git a/templates/academic-cv/.github/workflows/import-publications.yml b/templates/academic-cv/.github/workflows/import-publications.yml index 5bde4c91..4aaeb11b 100644 --- a/templates/academic-cv/.github/workflows/import-publications.yml +++ b/templates/academic-cv/.github/workflows/import-publications.yml @@ -68,12 +68,12 @@ jobs: if: ${{ hashFiles('publications.bib') != '' }} run: | echo "🚀 Starting publication import..." - academic import publications.bib content/publication/ --compact --verbose + academic import publications.bib content/publications/ --compact --verbose echo "✅ Publication import completed successfully" - + # Verify that files were created - if [ -d "content/publication" ] && [ "$(ls -A content/publication/)" ]; then - echo "📚 Publications imported: $(ls content/publication/ | wc -l) items" + if [ -d "content/publications" ] && [ "$(ls -A content/publications/)" ]; then + echo "📚 Publications imported: $(ls content/publications/ | wc -l) items" else echo "⚠️ No publications were imported" fi @@ -88,14 +88,14 @@ jobs: body: | 🔄 **Automated Publication Import** - This PR automatically imports the latest publications from `publications.bib` to `content/publication/`. + This PR automatically imports the latest publications from `publications.bib` to `content/publications/`. **Changes:** - 📚 Updated publication entries - 🏷️ Processed bibliographic data --- - 将最新的出版物从`publications.bib`导入到`content/publication/`。 + 将最新的出版物从`publications.bib`导入到`content/publications/`。 📖 [View Documentation](https://github.com/GetRD/academic-file-converter) base: main diff --git a/templates/academic-cv/content/publications/conference-paper/index.md b/templates/academic-cv/content/publications/conference-paper/index.md index 717133b3..1f25941e 100644 --- a/templates/academic-cv/content/publications/conference-paper/index.md +++ b/templates/academic-cv/content/publications/conference-paper/index.md @@ -68,7 +68,7 @@ image: # Associated Projects (optional). # Associate this publication with one or more of your projects. # Simply enter your project's folder or file name without extension. -# E.g. `internal-project` references `content/project/internal-project/index.md`. +# E.g. `internal-project` references `content/projects/internal-project/index.md`. # Otherwise, set `projects: []`. projects: - example diff --git a/templates/academic-cv/content/publications/journal-article/index.md b/templates/academic-cv/content/publications/journal-article/index.md index 57f20f69..ffdcb7ce 100644 --- a/templates/academic-cv/content/publications/journal-article/index.md +++ b/templates/academic-cv/content/publications/journal-article/index.md @@ -61,7 +61,7 @@ image: # Associated Projects (optional). # Associate this publication with one or more of your projects. # Simply enter your project's folder or file name without extension. -# E.g. `internal-project` references `content/project/internal-project/index.md`. +# E.g. `internal-project` references `content/projects/internal-project/index.md`. # Otherwise, set `projects: []`. projects: [] diff --git a/templates/academic-cv/content/publications/preprint/index.md b/templates/academic-cv/content/publications/preprint/index.md index 1fb03cfb..d0770bd9 100644 --- a/templates/academic-cv/content/publications/preprint/index.md +++ b/templates/academic-cv/content/publications/preprint/index.md @@ -60,7 +60,7 @@ image: # Associated Projects (optional). # Associate this publication with one or more of your projects. # Simply enter your project's folder or file name without extension. -# E.g. `internal-project` references `content/project/internal-project/index.md`. +# E.g. `internal-project` references `content/projects/internal-project/index.md`. # Otherwise, set `projects: []`. projects: - internal-project diff --git a/templates/data-science-blog/.github/workflows/import-notebooks.yml b/templates/data-science-blog/.github/workflows/import-notebooks.yml index 4c3412aa..ac2d340a 100644 --- a/templates/data-science-blog/.github/workflows/import-notebooks.yml +++ b/templates/data-science-blog/.github/workflows/import-notebooks.yml @@ -31,7 +31,7 @@ jobs: python -m pip install --upgrade pip pip install academic==0.11.2 - name: Run Academic Converter Tool - run: academic import 'notebooks/*.ipynb' content/post/ --verbose + run: academic import 'notebooks/*.ipynb' content/blog/ --verbose - name: Create Pull Request # Set ID for `Check outputs` stage id: cpr @@ -40,8 +40,8 @@ jobs: commit-message: 'content: import blog posts from `notebooks/` folder' title: HugoBlox Kit - Import latest blog posts body: | - Convert Jupyter Notebooks in the `notebooks/` folder into blog posts in the `content/post/` folder. - 将`notebooks/`文件夹中的Jupyter笔记本转换为`content/post/`文件夹中的博客帖子。 + Convert Jupyter Notebooks in the `notebooks/` folder into blog posts in the `content/blog/` folder. + 将`notebooks/`文件夹中的Jupyter笔记本转换为`content/blog/`文件夹中的博客帖子。 [View Documentation](https://github.com/GetRD/academic-file-converter) base: main labels: automated-pr, content diff --git a/templates/data-science-blog/data/authors/me.yaml b/templates/data-science-blog/data/authors/me.yaml index 1535f6c8..f3327ab0 100644 --- a/templates/data-science-blog/data/authors/me.yaml +++ b/templates/data-science-blog/data/authors/me.yaml @@ -28,5 +28,5 @@ links: url: uploads/resume.pdf label: Download my resume - icon: rss - url: ./post/index.xml + url: ./blog/index.xml label: Subscribe to my blog via RSS feed diff --git a/templates/data-science-blog/notebooks/blog-with-jupyter.ipynb b/templates/data-science-blog/notebooks/blog-with-jupyter.ipynb index 12b8442c..6190a4f4 100644 --- a/templates/data-science-blog/notebooks/blog-with-jupyter.ipynb +++ b/templates/data-science-blog/notebooks/blog-with-jupyter.ipynb @@ -86,7 +86,7 @@ "\n", "```bash\n", "pipx install academic\n", - "academic import 'notebooks/**.ipynb' content/post/ --verbose\n", + "academic import 'notebooks/**.ipynb' content/blog/ --verbose\n", "```" ] }, @@ -100,7 +100,7 @@ "tags": [] }, "source": [ - "The notebooks will be published to the folder you specify above. In this case, they will be published to your `content/post/` folder." + "The notebooks will be published to the folder you specify above. In this case, they will be published to your `content/blog/` folder." ] }, { @@ -141,4 +141,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file diff --git a/templates/documentation/data/authors/me.yaml b/templates/documentation/data/authors/me.yaml index 1535f6c8..f3327ab0 100644 --- a/templates/documentation/data/authors/me.yaml +++ b/templates/documentation/data/authors/me.yaml @@ -28,5 +28,5 @@ links: url: uploads/resume.pdf label: Download my resume - icon: rss - url: ./post/index.xml + url: ./blog/index.xml label: Subscribe to my blog via RSS feed diff --git a/templates/startup-landing-page/data/authors/me.yaml b/templates/startup-landing-page/data/authors/me.yaml index 1535f6c8..f3327ab0 100644 --- a/templates/startup-landing-page/data/authors/me.yaml +++ b/templates/startup-landing-page/data/authors/me.yaml @@ -28,5 +28,5 @@ links: url: uploads/resume.pdf label: Download my resume - icon: rss - url: ./post/index.xml + url: ./blog/index.xml label: Subscribe to my blog via RSS feed