This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-site.git
The following commit(s) were added to refs/heads/main by this push:
new b4fdbdab NIFI-15423 Refactored templates for Hugo 0.152.4
b4fdbdab is described below
commit b4fdbdab7d130a6119c1555449023db1520b7891
Author: exceptionfactory <[email protected]>
AuthorDate: Fri Jan 2 23:16:40 2026 -0600
NIFI-15423 Refactored templates for Hugo 0.152.4
- Added cascade layout configuration for components directory
- Replaced apt-get install hugo with actions-hugo
---
.github/workflows/build.yml | 6 ++---
config.toml | 1 -
content/components/_index.md | 5 ++++
.../cpp-download-links.html | 0
.../download-links.html | 0
.../{shortcodes => _shortcodes}/external-icon.html | 0
.../fds-download-links.html | 0
.../{shortcodes => _shortcodes}/project-label.html | 0
.../{shortcodes => _shortcodes}/vulnerability.html | 0
.../{shortcodes => _shortcodes}/youtube-embed.html | 0
layouts/{index.html => home.html} | 0
layouts/shortcodes/maven-download-links.html | 29 ----------------------
prebuild/layouts/{index.html => home.html} | 0
.../layouts/{partials => _partials}/component.html | 0
.../layouts/{partials => _partials}/footer.html | 0
.../nifi/layouts/{partials => _partials}/head.html | 0
.../layouts/{partials => _partials}/header.html | 0
.../layouts/{partials => _partials}/matomo.html | 0
.../{shortcodes => _shortcodes}/hero-section.html | 0
.../project-members.html | 0
themes/nifi/layouts/{_default => }/baseof.html | 0
...omponents.html => component-documentation.html} | 0
.../documentation.html => documentation/list.html} | 0
.../documentation/{single.html => page.html} | 0
.../{section/download.html => download/list.html} | 0
themes/nifi/layouts/{_default => }/list.html | 0
.../layouts/{_default/single.html => page.html} | 0
27 files changed, 8 insertions(+), 33 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7560a172..a149b133 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -31,9 +31,9 @@ jobs:
ref: asf-site
path: ${{ env.PUBLISH_DIRECTORY }}
- name: Install Hugo
- run: |
- sudo apt-get update
- sudo apt-get install hugo
+ uses: peaceiris/actions-hugo@v3
+ with:
+ hugo-version: '0.154.2'
- name: Prepare
working-directory: ${{ env.PUBLISH_DIRECTORY }}
run: |
diff --git a/config.toml b/config.toml
index 98341d58..5fc23eca 100644
--- a/config.toml
+++ b/config.toml
@@ -37,7 +37,6 @@ apacheFoundationPeopleNameUrl =
"https://projects.apache.org/json/foundation/peo
dynamicDownloadPathUrl = "https://www.apache.org/dyn/closer.lua?path=/nifi"
downloadPathUrl = "https://downloads.apache.org/nifi"
archiveDownloadPathUrl = "https://archive.apache.org/dist/nifi"
-mavenCentralDownloadPathUrl = "https://repo1.maven.org/maven2/org/apache/nifi"
currentProjectVersion = "2.7.2"
currentProjectVersionReleased = "2025-12-17"
diff --git a/content/components/_index.md b/content/components/_index.md
new file mode 100644
index 00000000..8ada7aff
--- /dev/null
+++ b/content/components/_index.md
@@ -0,0 +1,5 @@
+---
+title: "Component Documentation"
+cascade:
+ layout: "component-documentation"
+---
diff --git a/layouts/shortcodes/cpp-download-links.html
b/layouts/_shortcodes/cpp-download-links.html
similarity index 100%
rename from layouts/shortcodes/cpp-download-links.html
rename to layouts/_shortcodes/cpp-download-links.html
diff --git a/layouts/shortcodes/download-links.html
b/layouts/_shortcodes/download-links.html
similarity index 100%
rename from layouts/shortcodes/download-links.html
rename to layouts/_shortcodes/download-links.html
diff --git a/layouts/shortcodes/external-icon.html
b/layouts/_shortcodes/external-icon.html
similarity index 100%
rename from layouts/shortcodes/external-icon.html
rename to layouts/_shortcodes/external-icon.html
diff --git a/layouts/shortcodes/fds-download-links.html
b/layouts/_shortcodes/fds-download-links.html
similarity index 100%
rename from layouts/shortcodes/fds-download-links.html
rename to layouts/_shortcodes/fds-download-links.html
diff --git a/layouts/shortcodes/project-label.html
b/layouts/_shortcodes/project-label.html
similarity index 100%
rename from layouts/shortcodes/project-label.html
rename to layouts/_shortcodes/project-label.html
diff --git a/layouts/shortcodes/vulnerability.html
b/layouts/_shortcodes/vulnerability.html
similarity index 100%
rename from layouts/shortcodes/vulnerability.html
rename to layouts/_shortcodes/vulnerability.html
diff --git a/layouts/shortcodes/youtube-embed.html
b/layouts/_shortcodes/youtube-embed.html
similarity index 100%
rename from layouts/shortcodes/youtube-embed.html
rename to layouts/_shortcodes/youtube-embed.html
diff --git a/layouts/index.html b/layouts/home.html
similarity index 100%
rename from layouts/index.html
rename to layouts/home.html
diff --git a/layouts/shortcodes/maven-download-links.html
b/layouts/shortcodes/maven-download-links.html
deleted file mode 100644
index 99dd920d..00000000
--- a/layouts/shortcodes/maven-download-links.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{- $downloadVersion := (.Site.Params.currentProjectVersion) -}}
-{{- $primaryDownloadUrl := (.Site.Params.mavenCentralDownloadPathUrl) -}}
-
-{{- if eq (.Get "version") "previous" -}}
- {{- $downloadVersion = (.Site.Params.previousProjectVersion) -}}
-{{- end -}}
-
-{{- $project := "nifi" -}}
-{{- with .Get "project" -}}
- {{- $project = . -}}
-{{- end -}}
-
-{{- $qualifier := "" -}}
-{{- with .Get "qualifier" -}}
- {{- $qualifier = . -}}
-{{- end -}}
-
-{{- $extension := "" -}}
-{{- with .Get "extension" -}}
- {{- $extension = . -}}
-{{- end -}}
-
-{{- $module := (print $project "-" $qualifier) -}}
-
-{{- $downloadFilePath := (print $module "/" $downloadVersion "/" $module "-"
$downloadVersion "." $extension) -}}
-
-<a href="{{ $primaryDownloadUrl }}/{{ $downloadFilePath }}">{{ .Get "label" }}
{{ $downloadVersion }}</a>
-[<a href="{{ $primaryDownloadUrl }}/{{ $downloadFilePath }}.asc">OpenPGP</a>]
-[<a href="{{ $primaryDownloadUrl }}/{{ $downloadFilePath }}.sha1">SHA-1</a>]
diff --git a/prebuild/layouts/index.html b/prebuild/layouts/home.html
similarity index 100%
rename from prebuild/layouts/index.html
rename to prebuild/layouts/home.html
diff --git a/themes/nifi/layouts/partials/component.html
b/themes/nifi/layouts/_partials/component.html
similarity index 100%
rename from themes/nifi/layouts/partials/component.html
rename to themes/nifi/layouts/_partials/component.html
diff --git a/themes/nifi/layouts/partials/footer.html
b/themes/nifi/layouts/_partials/footer.html
similarity index 100%
rename from themes/nifi/layouts/partials/footer.html
rename to themes/nifi/layouts/_partials/footer.html
diff --git a/themes/nifi/layouts/partials/head.html
b/themes/nifi/layouts/_partials/head.html
similarity index 100%
rename from themes/nifi/layouts/partials/head.html
rename to themes/nifi/layouts/_partials/head.html
diff --git a/themes/nifi/layouts/partials/header.html
b/themes/nifi/layouts/_partials/header.html
similarity index 100%
rename from themes/nifi/layouts/partials/header.html
rename to themes/nifi/layouts/_partials/header.html
diff --git a/themes/nifi/layouts/partials/matomo.html
b/themes/nifi/layouts/_partials/matomo.html
similarity index 100%
rename from themes/nifi/layouts/partials/matomo.html
rename to themes/nifi/layouts/_partials/matomo.html
diff --git a/themes/nifi/layouts/shortcodes/hero-section.html
b/themes/nifi/layouts/_shortcodes/hero-section.html
similarity index 100%
rename from themes/nifi/layouts/shortcodes/hero-section.html
rename to themes/nifi/layouts/_shortcodes/hero-section.html
diff --git a/themes/nifi/layouts/shortcodes/project-members.html
b/themes/nifi/layouts/_shortcodes/project-members.html
similarity index 100%
rename from themes/nifi/layouts/shortcodes/project-members.html
rename to themes/nifi/layouts/_shortcodes/project-members.html
diff --git a/themes/nifi/layouts/_default/baseof.html
b/themes/nifi/layouts/baseof.html
similarity index 100%
rename from themes/nifi/layouts/_default/baseof.html
rename to themes/nifi/layouts/baseof.html
diff --git a/themes/nifi/layouts/section/components.html
b/themes/nifi/layouts/component-documentation.html
similarity index 100%
rename from themes/nifi/layouts/section/components.html
rename to themes/nifi/layouts/component-documentation.html
diff --git a/themes/nifi/layouts/section/documentation.html
b/themes/nifi/layouts/documentation/list.html
similarity index 100%
rename from themes/nifi/layouts/section/documentation.html
rename to themes/nifi/layouts/documentation/list.html
diff --git a/themes/nifi/layouts/documentation/single.html
b/themes/nifi/layouts/documentation/page.html
similarity index 100%
rename from themes/nifi/layouts/documentation/single.html
rename to themes/nifi/layouts/documentation/page.html
diff --git a/themes/nifi/layouts/section/download.html
b/themes/nifi/layouts/download/list.html
similarity index 100%
rename from themes/nifi/layouts/section/download.html
rename to themes/nifi/layouts/download/list.html
diff --git a/themes/nifi/layouts/_default/list.html
b/themes/nifi/layouts/list.html
similarity index 100%
rename from themes/nifi/layouts/_default/list.html
rename to themes/nifi/layouts/list.html
diff --git a/themes/nifi/layouts/_default/single.html
b/themes/nifi/layouts/page.html
similarity index 100%
rename from themes/nifi/layouts/_default/single.html
rename to themes/nifi/layouts/page.html