diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..ea6f3e2 --- /dev/null +++ b/.envrc @@ -0,0 +1,24 @@ +source_up_if_exists + +PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]') + +test -d .bin || mkdir .bin + +HUGO_VERSION=0.120.3 +case "$(uname -m)" in + x86_64 | amd64) + GOARCH="amd64" + ;; + arm64 | aarch64) + GOARCH="arm64" + ;; + *) + GOARCH="amd64" + ;; +esac + +URL=https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_${PLATFORM}-${GOARCH}.tar.gz + +test -f .bin/hugo || curl -Lso - $URL | gzip -dc | tar -C .bin -x hugo + +PATH_add .bin diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d264e05 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +--- +name: Deploy PR previews + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +concurrency: preview-${{ github.ref }} + +jobs: + deploy-preview: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.115.4 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: hugo + uses: floryn90/actions-hugo@1.0.1 + if: github.event.action != 'closed' + with: + version: 0.115.4 + image: ext-alpine + command: --minify --baseURL https://openela.github.io/openela.org/pr-preview/pr-${{ github.event.number }} + + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./public/ diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index ee760fb..bf5c1c6 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -36,7 +36,7 @@ jobs: - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ - && sudo dpkg -i ${{ runner.temp }}/hugo.deb + && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Install Dart Sass run: sudo snap install dart-sass - name: Checkout diff --git a/.gitignore b/.gitignore index 58423e2..c2dfe4a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ hugo.exe hugo.linux hugo.darwin +.bin/* diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..fb0bf7c 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,8 @@ --- title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} +slug: "{{ .Name }}" +date: {{ .Date.Format "2024-03-04" }} +author: YOUR NAME HERE draft: true --- diff --git a/content/announcements.md b/content/announcements.md deleted file mode 100644 index 4771438..0000000 --- a/content/announcements.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: OpenELA Announcements -include_footer: true -sidebar: false ---- - -* [OpenELA Announces kernel-lts Project in Support of Linux Kernel 4.14](/news/2024.03.12-support-linux-kernel-4.14) _(March 12th, 2024)_ -* [OpenELA Initiates a Documentation Repository for the Community](/news/2023.12.13-initiate-documentation-repository/) _(December 13th, 2023)_ -* [OpenELA Marks Major Milestones in Governance and Code Availability](/news/2023.11.02-governance_and_code_availability/) _(November 2nd, 2023)_ -* [OpenELA Current Status and What's Coming Next](/news/2023.09.07-current_status) _(September 6th, 2023)_ -* [CIQ, Oracle and SUSE Create Open Enterprise Linux Association for a Collaborative and Open Future](/news/hello_world) _(August 10th, 2023)_ \ No newline at end of file diff --git a/content/blog/.gitkeep b/content/blog/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/content/blog/first.md b/content/blog/first.md new file mode 100644 index 0000000..8ea1e85 --- /dev/null +++ b/content/blog/first.md @@ -0,0 +1,12 @@ +--- +title: My First Blog +slug: my-first-blog +date: 2024-04-05 +type: blog +tags: + - engineering + - software + - upstream +--- + +stuff and things diff --git a/content/news/2023.09.07-current_status.md b/content/news/2023.09.07-current_status.md index 3b0580c..8eb89e8 100644 --- a/content/news/2023.09.07-current_status.md +++ b/content/news/2023.09.07-current_status.md @@ -1,7 +1,9 @@ --- title: OpenELA Current Status and What's Coming Next Author: Alan Clark -Date: September 7th, 2023 +Date: 2023-09-07 +aliases: + - /announcements/openela-current-status-and-whats-coming-next --- __Author:__ Alan Clark (CTO Office, SUSE) \ __Date:__ September 7th, 2023 diff --git a/content/news/2023.11.02-governance_and_code_availability.md b/content/news/2023.11.02-governance_and_code_availability.md index aee3ec0..2f2aa11 100644 --- a/content/news/2023.11.02-governance_and_code_availability.md +++ b/content/news/2023.11.02-governance_and_code_availability.md @@ -1,10 +1,10 @@ --- title: OpenELA Marks Major Milestones in Governance and Code Availability Author: OpenELA Community -Date: November 2nd, 2023 +Date: 2023-11-02 +aliases: + - /announcements/openela-marks-major-milestones-in-governance-and-code-availability --- -__Author:__ OpenELA Community \ -__Date:__ November 2nd, 2023 ---- * Source code for packages is now available (and more is on the way) diff --git a/content/news/2023.12.13-initiate-documentation-repository.md b/content/news/2023.12.13-initiate-documentation-repository.md index 165c486..114b1cd 100644 --- a/content/news/2023.12.13-initiate-documentation-repository.md +++ b/content/news/2023.12.13-initiate-documentation-repository.md @@ -1,10 +1,10 @@ --- title: OpenELA Initiates a Documentation Repository for the Community Author: Antoinette O’Sullivan, senior director of documentation for Linux, virtualization, and systems, Oracle -Date: December 13, 2023 +Date: 2023-12-13 +aliases: + - /announcements/openela-initiates-a-documentation-repository-for-the-community --- -__Author:__ Antoinette O’Sullivan (senior director of documentation for Linux, virtualization, and systems, Oracle) \ -__Date:__ December 13, 2023 ---- * OpenELA is pleased to announce the creation of a user documentation repository diff --git a/content/news/2024.03.12-support-linux-kernel-4.14.md b/content/news/2024.03.12-support-linux-kernel-4.14.md index 3c11d1c..34ce237 100644 --- a/content/news/2024.03.12-support-linux-kernel-4.14.md +++ b/content/news/2024.03.12-support-linux-kernel-4.14.md @@ -1,10 +1,10 @@ --- title: OpenELA Announces kernel-lts Project in Support of Linux Kernel 4.14 Author: OpenELA Community -Date: March 12th, 2024 +Date: 2024-03-12 +aliases: + - /announcements/openela-announces-kernel-lts-project-in-support-of-linux-kernel-4.14 --- -__Author:__ OpenELA Community \ -__Date:__ March 12th, 2024 ***As support from the larger open source community concludes, enterprise vendors team up to collaborate on long-term kernel maintenance*** diff --git a/content/news/_index.md b/content/news/_index.md new file mode 100644 index 0000000..008baa3 --- /dev/null +++ b/content/news/_index.md @@ -0,0 +1,9 @@ +--- +title: OpenELA News and Announcements +include_footer: true +sidebar: false +aliases: + - announcements/ +--- + +Check out the latest announcements from OpenELA! diff --git a/content/news/first.md b/content/news/first.md new file mode 100644 index 0000000..555ef01 --- /dev/null +++ b/content/news/first.md @@ -0,0 +1,11 @@ +--- +title: My First Blog +slug: my-first-blog +date: 2024-04-05 +tags: + - engineering + - software + - upstream +--- + +stuff and things diff --git a/content/news/hello_world.md b/content/news/hello_world.md index 5b8839a..7cbf0e4 100644 --- a/content/news/hello_world.md +++ b/content/news/hello_world.md @@ -1,6 +1,9 @@ --- title: CIQ, Oracle and SUSE Create Open Enterprise Linux Association for a Collaborative and Open Future - +slug: hello_world +date: 2023-08-10 +aliases: + - /announcements/hello_world --- * New trade association brings together open source Enterprise Linux community diff --git a/hugo.yaml b/hugo.yaml index 81a487f..f1f027b 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,14 +1,26 @@ -baseURL: http://OpenELA.org/ +--- +baseURL: https://openela.org/ languageCode: en-us -title: OpenELA +title: Open Enterprise Linux Association module: imports: path: github.com/StefMa/hugo-fresh -disableKinds: -- taxonomy -- taxonomyTerm +outputs: + home: + - html + section: + - html + - rss + term: + - html + +permalinks: + page: + news: /news/:year/:month/:slug/ + section: + news: /news/ markup: goldmark: @@ -26,34 +38,36 @@ params: # height: 28 font: name: "Open Sans" - sizes: [400,600] + sizes: [400, 600] hero: title: Open Enterprise Linux Association - subtitle: OpenELA is a trade association of open source Enterprise Linux distribution developers + subtitle: | + OpenELA is a trade association of open source Enterprise Linux + distribution developers buttontext: Read The Announcement buttonlink: /news/hello_world # Hero image (from static/images/___) image: illustrations/hydrangea-hero.svg clientlogos: - - logo: ciq - url: https://ciq.com - - logo: oracle - url: https://www.oracle.com - - logo: suse - url: https://www.suse.com + - logo: ciq + url: https://ciq.com + - logo: oracle + url: https://www.oracle.com + - logo: suse + url: https://www.suse.com navbar: - - title: About - url: /about - - title: Join - url: /join - - title: Git/Main - url: https://github.com/orgs/openela-main/repositories - - title: FAQ - url: /faq - - title: Governance - url: https://github.com/openela/governance - - title: Announcements - url: /announcements + - title: About + url: /about + - title: Join + url: /join + - title: Git/Main + url: https://github.com/orgs/openela-main/repositories + - title: FAQ + url: /faq + - title: Governance + url: https://github.com/openela/governance + - title: News + url: /news section3: title: The Community Repository for Enterprise Linux Sources subtitle: No subscriptions. No passwords. No barriers. Freeloaders welcome. @@ -83,4 +97,3 @@ params: title: "" column3: title: "" - diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..cc783cb --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,40 @@ +{{ define "main" }} + +{{ partial "navbar.html" . }} +{{ partial "navbar-clone.html" . }} + + +
+
+
+
+

{{ .Title }}

+
{{ .Params.Subtitle }}
+
+
+
+ +
+ {{ .Content }} +
    + + {{ $pages := where .Site.RegularPages "Type" "in" (slice "blog" "news" "announcement") }} + {{ range $pages.ByDate.Reverse }} +
  • + {{if .Type }}{{.Type}}{{ end }}{{ .Title }} ({{ .Date.Format "January" }} {{ .Date.Format "2" }}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }}, {{ .Date.Format "2006" }}) +
  • + {{ end }} +
+
+
+
+ +{{ if .Params.include_footer }} +{{ partial "footer.html" . }} +{{ end }} + +{{ if .Params.sidebar }} +{{ partial "single/sidebar.html" . }} +{{ end }} + +{{ end }} diff --git a/layouts/blog b/layouts/blog new file mode 120000 index 0000000..7ee44d9 --- /dev/null +++ b/layouts/blog @@ -0,0 +1 @@ +news \ No newline at end of file diff --git a/layouts/news/single.html b/layouts/news/single.html new file mode 100644 index 0000000..7909d22 --- /dev/null +++ b/layouts/news/single.html @@ -0,0 +1,45 @@ +{{ define "main" }} + +{{ partial "navbar.html" . }} +{{ partial "navbar-clone.html" . }} + + +
+
+
+
+
+
+

{{ .Title }}

+
{{ .Params.Subtitle }}
+
Published on: {{ .Date.Format "January 2, 2006" }}
+
Author: {{ default "The OpenELA Team" .Params.author }}
+
+
+
+
+ +
+
+ {{ .Content }} +
+
+ + +
+
+
+ +{{ partial "footer.html" . }} + +{{ partial "single/sidebar.html" . }} + +{{ end }} diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..860a335 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,11 @@ +{{ template "_internal/google_analytics.html" . }} +{{ if eq .Site.Params.openGraph true }} +{{ template "_internal/opengraph.html" . }} +{{ end }} + + + + +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }} diff --git a/static/css/custom.css b/static/css/custom.css index 74f3a49..fcdbeda 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -33,3 +33,31 @@ width: 48px; height: 48px; } + +.postType { + border-radius: 5px; /* Rounded corners */ + border: 2px solid #007bff; + color: #0056b3; + font-size: 14px; + font-weight: bold; + max-width: 250px; + padding: 3px; + margin: 2px; + display: inline-block; +} + +section .container article header { + padding: 1em 0; +} + +section .container article header h6 { + padding: 0.25em 0; +} + +section.section .container article section { + padding: 1em 0; +} +.content article footer { + padding: 1em 0; +} +