Commit 31d8682e authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Improve the gear layout to better support release managers and translators

- The first minor versions (.0 versions) are free to do as they want, as usual
- Bugfix versions (not .0 versions) are set to a template
  - Text are fixed, but a little flexible to support both cases of with and without important update details
  - By default an image is set at the top of the page, reusing the one used in the first minor version's announcement
  - If not found there, the "hero" image of 21.08.0 announcement will be used
- Title and description have default values which are used when not set manually
parent 19646c01
......@@ -2,16 +2,7 @@
aliases:
- ../releases/21.04.1
publishDate: 2021-05-13 14:00:00
title: KDE Gear 21.04.1
layout: gear
appCount: 120
image: true
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases.
Distro and app store packagers should update their application packages.
+ [21.04 release notes](https://community.kde.org/KDE_Gear/21.04_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.04.1 source info page](/info/releases-21.04.1/)
+ [21.04.1 full changelog](/announcements/changelogs/gear/21.04.1/)
......@@ -2,16 +2,7 @@
aliases:
- ../releases/21.04.2
publishDate: 2021-06-10 09:30:00
title: KDE Gear 21.04.2
appCount: 120
image: true
layout: gear
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases.
Distro and app store packagers should update their application packages.
+ [21.04 release notes](https://community.kde.org/KDE_Gear/21.04_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.04.2 source info page](/info/releases-21.04.2/)
+ [21.04.2 full changelog](/announcements/changelogs/gear/21.04.2/)
......@@ -2,16 +2,7 @@
aliases:
- ../releases/21.04.3
publishDate: 2021-07-08 09:30:00
title: KDE Gear 21.04.3
appCount: 120
image: true
layout: gear
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases.
Distro and app store packagers should update their application packages.
+ [21.04 release notes](https://community.kde.org/KDE_Gear/21.04_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.04.3 source info page](/info/releases-21.04.3/)
+ [21.04.3 full changelog](/announcements/changelogs/gear/21.04.3/)
---
aliases:
- ./21.04.0
title: KDE Gear 21.04
authors:
- SPDX-FileCopyrightText: 2021 Paul Brown <paul.brown@kde.org>
- SPDX-FileCopyrightText: 2021 Carl Schwan <carl@carlschwan.eu>
......@@ -31,7 +30,6 @@ cssFiles:
- css/swiper-bundle.min.css
scssFiles:
- scss/components/swiper.scss
- scss/gear.scss
jsFiles:
- js/swiper-bundle.min.js
- js/swiper-init.js
......
---
title: KDE Gear 21.08
authors:
- SPDX-FileCopyrightText: 2021 Paul Brown <paul.brown@kde.org>
- SPDX-FileCopyrightText: 2021 Aniqa Khokhar <aniqa.khokhar@kde.org>
......@@ -8,10 +7,7 @@ date: 2021-08-12
hero_image: hero.png
images:
- /announcements/gear/21.08.0/hero.png
sassFiles:
- scss/gear.scss
layout: gear
draft: false
---
**Welcome to KDE Gear ⚙️ 21.08!**
......
---
title: KDE Gear 21.08.1
date: 2021-09-02
hero_image: hero.png
images:
- /announcements/gear/21.08.0/hero.png
sassFiles:
- scss/gear.scss
appCount: 120
image: true
layout: gear
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases with updated translations, including:
+ konsole: Fix KXmlGUI toolbars and Konsole MainWindow size, [Commit,](http://commits.kde.org/konsole/fb7f838fd3138a39aea3bcb2e91f923741587137) [#430036](https://bugs.kde.org/430036), [#439339](https://bugs.kde.org/439339), [#436471](https://bugs.kde.org/436471)
+ elisa: Fix the "Files" view, [Commit](http://commits.kde.org/elisa/618cf9b589ef9dd58e3ec3dd7450a80f10e118f8)
+ skanlite: Fix image saving when preview is not shown, [Commit,](http://commits.kde.org/skanlite/a8034a8dc2de3a0987ebf7fa57c21704e30e42e9) fixes [#440970](https://bugs.kde.org/440970)
Distro and app store packagers should update their application packages.
+ [21.08 release notes](https://community.kde.org/KDE_Gear/21.08_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.08.1 full changelog](/announcements/changelogs/gear/21.08.1/)
---
title: KDE Gear 21.08.2
date: 2021-10-07
hero_image: hero.png
images:
- /announcements/gear/21.08.2/hero.png
sassFiles:
- scss/gear.scss
appCount: 120
image: true
layout: gear
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases with updated translations, including:
+ kmail: Fix an infinite SSL error dialog loop [Commit,](http://commits.kde.org/kdepim-runtime/edb7f6fdea2c9f44085a042531f56223f3fd8a2f) [Commit,](http://commits.kde.org/kimap/7ee241898bc225237b3475f6c109ffc55a4a74c0) [Commit,](http://commits.kde.org/ksmtp/fca378d55e223944ce512c9a8f8b789d1d3abcde) fixes [#423424](https://bugs.kde.org/423424)
+ konqueror: Make it compatible with KIO 5.86.0 and don't open every URL in a new window [Commit,](http://commits.kde.org/konqueror/8506c585594d9d0cfc0ebe8b869ca05ff7610fa7) fixes [#442636](https://bugs.kde.org/442636)
+ libksane: Fix multi page detection with certain scanners [Commit](http://commits.kde.org/libksane/a90b83faea5beaaab346ee6eff2f151581783beb)
Distro and app store packagers should update their application packages.
+ [21.08 release notes](https://community.kde.org/KDE_Gear/21.08_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.08.2 full changelog](/announcements/changelogs/gear/21.08.2/)
---
title: KDE Gear 21.08.3
date: 2021-11-04
hero_image: hero.png
images:
- /announcements/gear/21.08.3/hero.png
sassFiles:
- scss/gear.scss
appCount: 120
image: true
layout: gear
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases with updated translations. Distro and app store packagers should update their application packages.
+ [21.08 release notes](https://community.kde.org/KDE_Gear/21.08_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.08.3 full changelog](/announcements/changelogs/gear/21.08.3/)
---
title: KDE Gear 21.12
description: KDE brings you the gift of Free Software with Gear ⚙️ 21.12
authors:
- SPDX-FileCopyrightText: 2021 Paul Brown <paul.brown@kde.org>
......@@ -9,10 +8,7 @@ date: 2021-12-09
hero_image: hero.png
images:
- /announcements/gear/21.12.0/hero.png
sassFiles:
- scss/gear.scss
layout: gear
draft: false
---
# Welcome to KDE Gear ⚙️ 21.12!
......
---
title: KDE Gear 21.12.1
date: 2022-01-06
hero_image: hero.png
images:
- /announcements/gear/21.12.1/hero.png
sassFiles:
- scss/gear.scss
appCount: 120
image: true
layout: gear
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases with updated translations. Distro and app store packagers should update their application packages.
+ [21.12 release notes](https://community.kde.org/KDE_Gear/21.12_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.12.1 full changelog](/announcements/changelogs/gear/21.12.1/)
---
title: KDE Gear 21.12.2
date: 2022-02-03
hero_image: hero.png
images:
- /announcements/gear/21.12.2/hero.png
sassFiles:
- scss/gear.scss
appCount: 120
image: true
layout: gear
---
Over 120 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
Today they all get new bugfix source releases with updated translations. Distro and app store packagers should update their application packages.
+ [21.12 release notes](https://community.kde.org/KDE_Gear/21.12_Release_notes) for information on tarballs and known issues.
+ [Package download wiki page](https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro)
+ [21.12.2 full changelog](/announcements/changelogs/gear/21.12.2/)
......@@ -15,6 +15,33 @@ annc-frameworks-intro-2:
annc-frameworks-new:
other: 'New in this version'
annc-gear-title:
other: KDE Gear %1
comment: '%1 version number'
annc-gear-desc:
other: 'KDE announces the release of KDE Gear %1.'
comment: '%1 version number'
annc-gear-intro:
other: Over %1 individual programs plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.
comment: '%1 a number larger than 100'
annc-gear-updates:
other: Today they all get new bugfix source releases with updated translations.
annc-gear-updates-including:
other: 'Today they all get new bugfix source releases with updated translations, including:'
annc-gear-packagers:
other: Distro and app store packagers should update their application packages.
annc-gear-release-notes:
other: '[%1 release notes](%2) for information on tarballs and known issues.'
comment: '%1 version number, %2 link'
annc-gear-download-wiki:
other: Package download wiki page
annc-gear-source-info:
other: '%1 source info page'
comment: '%1 version number'
annc-gear-changelog:
other: '%1 full changelog'
comment: '%1 version number'
annc-plasma-alt:
other: 'Image of Plasma {{ .Get "maj_min" }}'
annc-plasma-caption:
......
{{/*
SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
SPDX-FileCopyrightText: 2022 Nguyen Hung Phu <phu.nguyen@kdemail.net>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
{{ define "head-import" }}
{{ $style := resources.Get "scss/gear.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ end }}
{{ define "main" }}
{{ if .Params.hero_image }}
<figure style="background-image: url({{ .Params.hero_image }});" class="hero-image w-100" alt="{{ partial "fn/i18n_title" . }}" ></figure>
{{ end }}
<main class="container">
{{ if not .Params.hide_title }}
<h1>{{ partial "fn/i18n_title" . }}</h1>
{{ if .Date }}
<p>{{ partial "i18n_date.html" . }}</p>
{{ end }}
<br>
{{ end }}
{{- $version := .File.TranslationBaseName }}
{{- $patch := index (split $version ".") 2 | int }}
{{- $isBugfix := ne $patch 0 }}
{{- $image := "" }}
{{- if not $isBugfix }}
{{- with .Params.hero_image }}
{{- $image = printf "/announcements/gear/%s/%s" $version . }}
{{- end }}
{{- else }}
{{- if .Params.image }}
{{- $major := index (split $version ".") 0 }}
{{- $minor := index (split $version ".") 1 }}
{{- $firstMinorPath := printf "/announcements/gear/%s.%s.0" $major $minor }}
{{- if not (os.FileExists (printf "%s.md" $firstMinorPath)) }}
{{- $firstMinorPath = printf "/announcements/gear/%s.%s" $major $minor }}
{{- end }}
{{- $firstMinor := .Sites.First.GetPage (printf "%s.md" $firstMinorPath) }}
{{- if not $firstMinor.Params.hero_image }}
{{- $firstMinorPath := "/announcements/gear/21.08.0" }}
{{- $firstMinor = .Sites.First.GetPage (printf "%s.md" $firstMinorPath) }}
{{- end }}
{{- with $firstMinor.Params.hero_image }}
{{- $image = printf "%s/%s" $firstMinorPath . }}
{{- end }}
{{- end }}
{{- end }}
{{- if $image }}
<figure style="background-image: url({{ $image }});" class="hero-image w-100" alt="{{ partial "fn/i18n_title" . }}" ></figure>
{{- end }}
<main class="container">
<h1>{{ partial "fn/i18n_title" . }}</h1>
<p>{{ partial "i18n_date.html" . }}</p>
<br>
{{ .Content }}
{{ partial "rss_content.html" . }}
{{ $scratch := newScratch }}
{{ $scratch.Set "version" .File.TranslationBaseName }}
<h2>{{ i18n "compile-gear" }}</h2>
<p>{{ i18n "compile-gear-desc" $scratch | markdownify }}</h2>
{{- if not $isBugfix }}
{{ $scratch := newScratch }}
{{ $scratch.Set "version" .File.TranslationBaseName }}
<h2>{{ i18n "compile-gear" }}</h2>
<p>{{ i18n "compile-gear-desc" $scratch | markdownify }}</h2>
{{- end }}
{{ partialCached "announcements/about_kde.html" . }}
{{ partialCached "announcements/press_contacts.html" . }}
{{ partial "copyright.html" . }}
</main>
{{ partialCached "announcements/about_kde.html" . }}
{{ partialCached "announcements/press_contacts.html" . }}
{{ partial "copyright.html" . }}
</main>
{{ end }}
{{/*
SPDX-FileCopyrightText: 2022 Nguyen Hung Phu <phu.nguyen@kdemail.net>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
<p>{{ partial "fn/apply_args" (dict "msg" (i18n "annc-gear-intro") "args" (slice .Params.appCount)) }}</p>
{{- $msgName := "annc-gear-updates" }}
{{- if .Content }}{{ $msgName = "annc-gear-updates-including" }}{{ end }}
<p>{{ i18n $msgName }}</p>
{{/*
SPDX-FileCopyrightText: 2022 Nguyen Hung Phu <phu.nguyen@kdemail.net>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
{{- $version := .File.TranslationBaseName }}
{{- $major := index (split $version ".") 0 }}
{{- $minor := index (split $version ".") 1 }}
{{- $majMin := print $major "." $minor }}
{{- $releaseNotesLink := printf "https://community.kde.org/KDE_Gear/%s_Release_notes" $majMin }}
{{- $sourceInfoLink := printf "/info/releases-%s/" $version }}
{{- $changelogLink := printf "/announcements/changelogs/gear/%s/" $version }}
<p>{{ i18n "annc-gear-packagers" }}</p>
<ul>
<li>{{ partial "fn/apply_args" (dict "msg" (i18n "annc-gear-release-notes") "args" (slice $majMin $releaseNotesLink)) | markdownify }}</li>
<li><a href="https://community.kde.org/Get_KDE_Software_on_Your_Linux_Distro">{{ i18n "annc-gear-download-wiki" }}</a></li>
<li><a href="{{ $sourceInfoLink }}">{{ partial "fn/apply_args" (dict "msg" (i18n "annc-gear-source-info") "args" (slice $version))}}</a></li>
<li><a href="{{ $changelogLink }}">{{ partial "fn/apply_args" (dict "msg" (i18n "annc-gear-changelog") "args" (slice $version))}}</a></li>
</ul>
......@@ -46,6 +46,15 @@ SPDX-License-Identifier: LGPL-3.0-or-later
{{ $msgName = "annc-frameworks-desc" }}
{{ end }}
{{ $result = replace (i18n $msgName) "%ver" $version }}
{{ else if eq .Layout "gear" }}
{{ $version := .File.TranslationBaseName }}
{{ $major := index (split $version ".") 0 }}
{{ $minor := index (split $version ".") 1 }}
{{ $patch := index (split $version ".") 2 | int }}
{{ if eq $patch 0 }}
{{ $version = printf "%s.%s" $major $minor }}
{{ end }}
{{ $result = partial "fn/apply_args" (dict "msg" (i18n "annc-gear-desc") "args" (slice $version))}}
{{ else if .IsPage }}{{ $result = .Summary }}
{{ else }}{{ $result = i18n "site-description" }}
{{ end }}
......
......@@ -39,6 +39,15 @@ SPDX-License-Identifier: LGPL-3.0-or-later
{{ $msgName = "annc-frameworks-title" }}
{{ end }}
{{ $result = replace (i18n $msgName) "%ver" $version }}
{{ else if eq .Layout "gear" }}
{{ $version := .File.TranslationBaseName }}
{{ $major := index (split $version ".") 0 }}
{{ $minor := index (split $version ".") 1 }}
{{ $patch := index (split $version ".") 2 | int }}
{{ if eq $patch 0 }}
{{ $version = printf "%s.%s" $major $minor }}
{{ end }}
{{ $result = partial "fn/apply_args" (dict "msg" (i18n "annc-gear-title") "args" (slice $version))}}
{{ end }}
{{ end }}
{{ return $result }}
{{/*
SPDX-FileCopyrightText: 2021 Nguyen Hung Phu <phuhnguyen@disroot.org>
SPDX-FileCopyrightText: 2021-2022 Nguyen Hung Phu <phu.nguyen@kdemail.net>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
......@@ -13,6 +13,15 @@ SPDX-License-Identifier: LGPL-3.0-or-later
{{- else if eq .Params.layout "framework" }}
{{ partial "announcements/frameworks_intro.html" . }}
{{ .Content }}
{{- else if eq .Params.layout "gear" }}
{{- $patch := index (split .File.TranslationBaseName ".") 2 | int }}
{{- if eq $patch 0 }}
{{ .Content }}
{{- else }}
{{ partial "announcements/gear_intro.html" . }}
{{ .Content }}
{{ partial "announcements/gear_outro.html" . }}
{{- end }}
{{- else }}
{{ .Content }}
{{- end -}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment