Commit 1d27fa4c authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Improve Plasma announcement template

parent dff6cbb0
......@@ -4,6 +4,8 @@ aliases:
date: '2014-07-15'
description: KDE Ships Plasma 5.0.
title: New Plasma brings a cleaner interface on top of a new graphics stack
layout: plasma
customOutro: true
---
{{<figure src="/announcements/plasma/5/5.0/plasma-5-banner.png" class="text-center" >}}
......@@ -77,11 +79,3 @@ Some distributions have created, or are in the process of creating, packages; fo
<a href='/info/plasma-5.0.0'>Source download</a>. You can install Plasma 5.0 directly from source. KDE's community wiki has <a href='http://community.kde.org/Frameworks/Building'>instructions for compiling it</a>. Note that Plasma 5 does not co-install with Plasma 4.x, you will need to uninstall older versions or install into a separate prefix.
You can provide feedback either via the <a href='irc://#plasma@freenode.net'>#Plasma IRC channel</a>, <a href='https://mail.kde.org/mailman/listinfo/plasma-devel'>Plasma-devel mailing list</a> or report issues via <a href='https://bugs.kde.org/enter_bug.cgi?product=plasmashell&format=guided'>bugzilla</a>. Plasma 5 is also <a href='http://forum.kde.org/viewforum.php?f=289'>discussed on the KDE Forums</a>. Your feedback is greatly appreciated. If you like what the team is doing, please let them know!
## Supporting KDE
KDE is a <a href='http://www.gnu.org/philosophy/free-sw.html'>Free Software</a> community that exists and grows only because of the help of many volunteers that donate their time and effort. KDE is always looking for new volunteers and contributions, whether it is help with coding, bug fixing or reporting, writing documentation, translations, promotion, money, etc. All contributions are gratefully appreciated and eagerly accepted. Please read through the <a href='/community/donations/'>Supporting KDE page</a> for further information or become a KDE e.V. supporting member through our <a href='https://relate.kde.org/civicrm/contribute/transact?id=5'>Join the Game</a> initiative.
{{% include "/includes/about_kde.html" %}}
{{% include "content/includes/press_contacts.html" %}}
......@@ -4,20 +4,13 @@ aliases:
changelog: 5.12.8-5.12.9
date: 2019-09-10
layout: plasma
youtube: xha6DJ_v1E4
figure:
src: /announcements/plasma/5/5.12.0/plasma-5.12.png
class: text-center mt-4
asBugfix: true
---
{{%youtube id="xha6DJ_v1E4"%}}
{{<figure src="/announcements/plasma/5/5.12.0/plasma-5.12.png" alt="KDE Plasma 5.12" class="text-center" width="600px" caption="KDE Plasma 5.12">}}
{{% i18n_date %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.12.9" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in February 2018 with many feature refinements and new modules to complete the desktop experience." "5.12" >}}
This release adds six months' worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
- Make the Trashcan applet use the same shadow settings as desktop icons. <a href="https://commits.kde.org/plasma-desktop/83ef545a35abcaab51e1fd02accf89d26a3ba95c">Commit.</a> Phabricator Code review <a href="https://phabricator.kde.org/D21545">D21545</a>
- [Folder View] Improve label crispness. <a href="https://commits.kde.org/plasma-desktop/05e59e1c77c4a83590b0cd906ecfb698ae5ca3b4">Commit.</a> Phabricator Code review <a href="https://phabricator.kde.org/D20407">D20407</a>
- Media controls on the lock screen are now properly translated. <a href="https://commits.kde.org/plasma-workspace/588aa6be2984038f91167db9ab5bd1f62b9f47e5">Commit.</a> Phabricator Code review <a href="https://phabricator.kde.org/D21947">D21947</a>
\ No newline at end of file
- Media controls on the lock screen are now properly translated. <a href="https://commits.kde.org/plasma-workspace/588aa6be2984038f91167db9ab5bd1f62b9f47e5">Commit.</a> Phabricator Code review <a href="https://phabricator.kde.org/D21947">D21947</a>
......@@ -5,10 +5,10 @@ changelog: 5.16.5-5.16.90
date: 2019-09-19
layout: plasma
title: 'KDE Plasma 5.17 Beta: Thunderbolt, X11 Night Color and Redesigned Settings'
figure:
src: /announcements/plasma/5/5.17.0/plasma-5.17.png
---
{{<figure src="/announcements/plasma/5/5.17.0/plasma-5.17.png" alt="Plasma 5.17 Beta" class="text-center" width="600px" caption="KDE Plasma 5.17 Beta">}}
{{% i18n_date %}}
Today KDE launches the beta release of Plasma 5.17.
......@@ -102,4 +102,4 @@ The Plasma 5.17 series is dedicated to our friend Guillermo Amaral. Guillermo wa
- Many multi-screen and HiDPI improvements
- On Wayland, it is now possible to resize GTK headerbar windows from window edges
- Scrolling with a wheel mouse on Wayland now always scrolls the correct number of lines
- On X11, it is now possible to use the Meta key as a modifier for the window switcher that's bound to Alt+Tab by default
\ No newline at end of file
- On X11, it is now possible to use the Meta key as a modifier for the window switcher that's bound to Alt+Tab by default
......@@ -5,12 +5,11 @@ changelog: 5.16.5-5.17.0
date: 2019-10-15
layout: plasma
title: 'KDE Plasma 5.17: Thunderbolt, X11 Night Color and Redesigned Settings'
peertube: 5a315252-2790-42b4-8177-94680a1c78fc
figure:
src: /announcements/plasma/5/5.17.0/plasma-5.17.png
---
{{< peertube "https://peertube.mastodon.host/videos/embed/5a315252-2790-42b4-8177-94680a1c78fc" >}}
{{<figure src="/announcements/plasma/5/5.17.0/plasma-5.17.png" alt="Plasma 5.17" class="text-center" width="600px" caption="KDE Plasma 5.17">}}
{{% i18n_date %}}
Plasma 5.17 is out! Plasma 5.17 is the version where the desktop anticipates your needs. Night Color, the color-grading system that relaxes your eyes when the sun sets, has landed for X11. Your Plasma desktop also recognizes when you are giving a presentation, and stops messages popping up in the middle of your slideshow. If you are using Wayland, Plasma now comes with fractional scaling, which means that you can adjust the size of all your desktop elements, windows, fonts and panels perfectly to your HiDPI monitor.
......@@ -83,4 +82,4 @@ If you are using the X11 window system, you can now map the Meta (“Super” or
The Plasma 5.17 series is dedicated to our friend Guillermo Amaral. Guillermo was an enthusiastic KDE developer who rightly self described as 'an incredibly handsome multidisciplinary self-taught engineer'. He brought cheer to anyone he met. He lost his battle with cancer last summer but will be remembered as a friend to all he met.
{{<figure src="/announcements/plasma/5/5.17.0/guillermo.png" alt="Guillermo Amaral" caption="Guillermo Amaral" width="600px" >}}
\ No newline at end of file
{{<figure src="/announcements/plasma/5/5.17.0/guillermo.png" alt="Guillermo Amaral" caption="Guillermo Amaral" width="600px" >}}
......@@ -4,18 +4,17 @@ aliases:
changelog: 5.18.5-5.18.6
date: 2020-09-29
layout: plasma
peertube: cda402b5-2bcb-4c0c-b232-0fa5a4dacaf5
figure:
src: /announcements/plasma/5/5.18.0/plasma-5.18.png
---
{{< peertube "cda402b5-2bcb-4c0c-b232-0fa5a4dacaf5" >}}
{{< i18n_date >}}. {{< i18n msgname="annc-plasma-bugfix-intro" maj="5" version="5.18.6" >}}
{{% i18n_date %}}
{{% i18n msgname="annc-plasma-bugfix-minor-release-2" maj="5" maj_min="5.18" year="" %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.18.6" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in February with many feature refinements and new modules to complete the desktop experience." "5.18" >}}
This release adds six months' worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
{{< i18n "annc-plasma-bugfix-worth-8" >}} {{< i18n "annc-plasma-bugfix-last" >}}
+ Kcm_fonts: Make the font selection dialog select the correct Regular-like style. <a href="https://commits.kde.org/plasma-desktop/e5e5f5ed51aadfac99bfbdf3d2db5be16a12443b">Commit.</a> See bug <a href="https://bugs.kde.org/420287">#420287</a>
+ Fix calendar events not being shown at first. <a href="https://commits.kde.org/plasma-workspace/97648f015cff39e46e39ee7b150515d1d3bce5f7">Commit.</a>
+ Discover: Confirm reboot action with the user. <a href="https://commits.kde.org/discover/f2dce150e6d32810d1deae08378a136fc13e9988">Commit.</a>
\ No newline at end of file
+ Discover: Confirm reboot action with the user. <a href="https://commits.kde.org/discover/f2dce150e6d32810d1deae08378a136fc13e9988">Commit.</a>
......@@ -5,10 +5,9 @@ changelog: 5.18.5-5.19.0
date: 2020-06-09
layout: plasma
title: 'Plasma 5.19: A more Polished Plasma'
video: true
---
{{% plasma-5-19-video %}}
{{% i18n_date %}}
Plasma 5.19 is out! If we gave alliterative names to Plasma releases, this one could be "Polished Plasma". The effort developers have put into squashing bugs and removing annoying papercuts has been immense.
......
......@@ -4,18 +4,10 @@ aliases:
changelog: 5.20.0-5.20.1
date: 2020-10-20
layout: plasma
video: true
asBugfix: true
---
{{% plasma-5-20-video %}}
{{% i18n_date %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.20.1" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in October with many feature refinements and new modules to complete the desktop experience." "5.20" >}}
This release adds a week's worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
+ KSysGuard: Divide network speeds by 2 to match reality. <a href='https://commits.kde.org/ksysguard/33694eafa0178ecb1e33d7d26bb15dc97defbf3c'>Commit.</a>
+ Powerdevil: Ignore players from KDE Connect when suspending. <a href='https://commits.kde.org/powerdevil/4ac78e7118238414d3f2d603c21975413eea8bb0'>Commit.</a> Fixes bug <a href='https://bugs.kde.org/427209'>#427209</a>
+ Bluedevil kcm: Set sane default size. <a href='https://commits.kde.org/bluedevil/fdc622af5f49b6ccfc83641c9ce8e8d77a99e82a'>Commit.</a>
\ No newline at end of file
+ Bluedevil kcm: Set sane default size. <a href='https://commits.kde.org/bluedevil/fdc622af5f49b6ccfc83641c9ce8e8d77a99e82a'>Commit.</a>
......@@ -4,17 +4,9 @@ aliases:
changelog: 5.20.1-5.20.2
date: 2020-10-27
layout: plasma
video: true
asBugfix: true
---
{{< plasma-5-20-video >}}
{{% i18n_date %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.20.2" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in October with many feature refinements and new modules to complete the desktop experience." "5.20" >}}
This release adds a week's worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
+ Daemon: improve consistency of the lid behaviour. [Commit.](http://commits.kde.org/kscreen/420c60adfcb95b09ab352b614fdd2dc2a66dcfa8)
+ Fix bug: Some user profile fields won't apply unless they all have unique new values. [Commit.](http://commits.kde.org/plasma-desktop/3308dee942d1982a0aba68fc41368a284afc8e21) Fixes bug [#427348](https://bugs.kde.org/427348)
\ No newline at end of file
+ Fix bug: Some user profile fields won't apply unless they all have unique new values. [Commit.](http://commits.kde.org/plasma-desktop/3308dee942d1982a0aba68fc41368a284afc8e21) Fixes bug [#427348](https://bugs.kde.org/427348)
......@@ -4,18 +4,10 @@ aliases:
changelog: 5.20.2-5.20.3
date: 2020-11-10
layout: plasma
video: true
asBugfix: true
---
{{< plasma-5-20-video >}}
{{% i18n_date %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.20.3" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in October with many feature refinements and new modules to complete the desktop experience." "5.20" >}}
This release adds two weeks' worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
+ Plasma Disks: Actually erase devices. [Commit.](http://commits.kde.org/plasma-disks/916f0081b2334759b3d92ba2ca5c042d2df85535) Fixes bug [#428746](https://bugs.kde.org/428746)
+ Plasma Network Management: Do not show absurdedly high speeds on first update. [Commit.](http://commits.kde.org/plasma-nm/08efc47603e59ae702e4cf181eb26374d0af97af)
+ Fix missing "Switch User" button on lockscreen with systemd 246. [Commit.](http://commits.kde.org/plasma-workspace/aaa7a59a6710a89f21ebd441616df13be5ba8fef) Fixes bug [#427777](https://bugs.kde.org/427777)
\ No newline at end of file
+ Fix missing "Switch User" button on lockscreen with systemd 246. [Commit.](http://commits.kde.org/plasma-workspace/aaa7a59a6710a89f21ebd441616df13be5ba8fef) Fixes bug [#427777](https://bugs.kde.org/427777)
......@@ -4,18 +4,10 @@ aliases:
changelog: 5.20.3-5.20.4
date: 2020-12-01
layout: plasma
video: true
asBugfix: true
---
{{< plasma-5-20-video >}}
{{% i18n_date %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.20.4" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in October with many feature refinements and new modules to complete the desktop experience." "5.20" >}}
This release adds three weeks worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
+ Use plasma theme icons in kickoff leave view. [Commit.](http://commits.kde.org/plasma-desktop/2da94367a93d53dd9ede58cc2e38a1b376c963a5) See bug [#429280](https://bugs.kde.org/429280)
+ Weight main categories properly. [Commit.](http://commits.kde.org/kinfocenter/1b666ba9f39d0a1c99820e4350fd90b9bab04f21) Fixes bug [#429153](https://bugs.kde.org/429153)
+ Discover: Display title in application page. [Commit.](http://commits.kde.org/discover/d32292b9808baf57d04f37feb8c90cf5f11bafdd)
\ No newline at end of file
+ Discover: Display title in application page. [Commit.](http://commits.kde.org/discover/d32292b9808baf57d04f37feb8c90cf5f11bafdd)
......@@ -4,18 +4,10 @@ aliases:
changelog: 5.20.4-5.20.5
date: 2021-01-05
layout: plasma
video: true
asBugfix: true
---
{{< plasma-5-20-video >}}
{{% i18n_date %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.20.5" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in October with many feature refinements and new modules to complete the desktop experience." "5.20" >}}
This release adds a month's worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
+ Plasma NM: Fix password entry jumping to different networks with wifi scanning, by pausing the scan when appropriate. [Commit.](http://commits.kde.org/plasma-nm/21a410ff77049e996df5fdc35215c4b30d893ccc)
+ Plasma PA: Read text color from proper theme. [Commit.](http://commits.kde.org/plasma-pa/099e925c879ece8f90734ea66c0878bc174c9608)
+ Plasma Workspace: Move keyboard positioning in the keyboard itself. [Commit.](http://commits.kde.org/plasma-workspace/8c267852a56c74c14a471d266f87ac867b8276d9) Fixes bug [#427934](https://bugs.kde.org/427934)
......@@ -2,19 +2,10 @@
date: 2021-02-23
changelog: 5.21.0-5.21.1
layout: plasma
draft: false
youtube: ahEWG4JCA1w
asBugfix: true
---
{{< youtube "ahEWG4JCA1w" >}}
{{% i18n_date %}}
{{< i18n_var "Today KDE releases a bugfix update to KDE Plasma 5, versioned %[1]s." "5.21.1" >}}
{{< i18n_var "[Plasma %[1]s](/announcements/plasma-%[1]s.0) was released in February with many feature refinements and new modules to complete the desktop experience." "5.21" >}}
This release adds a week's worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:
+ KRunner: Launch runners KCM in systemsettings. [Commit.](http://commits.kde.org/plasma-desktop/fbce7c7fe105f342d205a025ad1f27a4514eaa87) Fixes bug [#433101](https://bugs.kde.org/433101)
+ Powerdevil: when we get request to wakeup turn dpms on. [Commit.](http://commits.kde.org/powerdevil/d1bf7bfca40dc619255f0c89b980b7e5107938dd)
+ SDDM KCM: Allow for easier syncing of Plasma font. [Commit.](http://commits.kde.org/sddm-kcm/56449c24560e87a9a61c242b59483b057d22917f) Phabricator Code review [D23257](https://phabricator.kde.org/D23257). Fixes bug [#432930](https://bugs.kde.org/432930)
......@@ -23,3 +23,56 @@ annc-frameworks-intro-2:
other: 'This release is part of a series of planned monthly releases making improvements available to developers in a quick and predictable manner.'
annc-frameworks-new:
other: 'New in this version'
annc-plasma-alt:
other: 'Image of Plasma {{ .Get "maj_min" }}'
annc-plasma-caption:
other: 'KDE Plasma {{ .Get "maj_min" }}'
annc-plasma-beta-alt:
other: 'Image of Plasma {{ .Get "maj_min" }} Beta'
annc-plasma-beta-caption:
other: 'KDE Plasma {{ .Get "maj_min" }} Beta'
annc-plasma-bugfix-intro:
other: 'Today KDE releases a bugfix update to KDE Plasma {{ .Get "maj" }}, versioned {{ .Get "version" }}.'
annc-plasma-bugfix-minor-release-1:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in January {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-2:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in February {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-3:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in March {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-4:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in April {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-6:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in June {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-7:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in July {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-8:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in August {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-9:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in September {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-10:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in October {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-11:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in November {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-minor-release-12:
other: '[Plasma {{ .Get "maj_min" }}](/announcements/plasma/{{ .Get "maj" }}/{{ .Get "maj_min" }}.0) was released in December {{ .Get "year"}}with many feature refinements and new modules to complete the desktop experience.'
annc-plasma-bugfix-worth-1:
other: 'This release adds a week''s worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-2:
other: 'This release adds a week''s worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-3:
other: 'This release adds two weeks'' worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-4:
other: 'This release adds three weeks'' worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-5:
other: 'This release adds a month''s worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-6:
other: 'This release adds two months'' worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-7:
other: 'This release adds three months'' worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-8:
other: 'This release adds five months'' worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-worth-9:
other: 'This release adds six months'' worth of new translations and fixes from KDE''s contributors.'
annc-plasma-bugfix-last:
other: 'The bugfixes are typically small but important and include:'
......@@ -3,6 +3,7 @@
{{ partial "breadcrumb.html" . }}
<h1>{{ partial "i18n_title.html" . }}</h1>
{{ partial "announcements/plasma-intro.html" . }}
{{ .Content }}
......
{{- if not .Params.customOutro }}
<section class="container">
<div class="row" id="download">
<article class="col-md">
......@@ -42,6 +43,7 @@
<p align="justify">{{ i18n "report-bug-plasma" | markdownify }}</p>
<p align="justify">{{ i18n "feedback-appreciated" }}</p>
</section>
{{- end }}
<h2>{{ i18n "supporting-kde" }}</h2>
<p align="justify">{{ i18n "whatiskde" | markdownify }}</p>
......
{{/*
SPDX-FileCopyrightText: 2021 Nguyen Hung Phu <phuhnguyen@disroot.org>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
{{- $version := .File.TranslationBaseName }}
{{- if eq (strings.Count "." $version) 2 }}
{{- $major := index (split $version ".") 0 | int }}
{{- $minor := index (split $version ".") 1 | int }}
{{- $patch := index (split $version ".") 2 | int }}
{{- $majMin := "" }}
{{- if lt $patch 50 }}
{{- $majMin = print $major "." $minor }}
{{- else }}
{{- $majMin = print $major "." (add $minor 1) }}
{{- end }}
{{- $scratch := newScratch }}
{{- $scratch.Set "maj_min" $majMin }}
{{- with .Params.youtube }}
<div class="embed-responsive embed-responsive-16by9">
<iframe src="https://www.youtube.com/embed/{{ . }}" class="embed-responsive-item" allowfullscreen title="YouTube Video"></iframe>
</div>
{{- end }}
{{- with .Params.video }}
<div class="laptop-with-overlay d-block my-3 mx-auto" style="max-width: 800px">
<img class="laptop img-fluid mt-3" src="/reusable-assets/laptop.svg" alt="empty laptop with an overlay">
<div class="laptop-overlay">
<video controls class="w-100 h-100 mt-3" poster="https://cdn.kde.org/promo/Announcements/Plasma/{{ $majMin }}/Thumbnail.png">
<source src="https://cdn.kde.org/promo/Announcements/Plasma/{{ $majMin }}/Video.webm" type="video/webm">
<source src="https://cdn.kde.org/promo/Announcements/Plasma/{{ $majMin }}/Video.mp4" type="video/mp4">
</video>
</div>
</div>
{{- end }}
{{- with .Params.peertube }}
<figure class="videoBlock">
<iframe src="https://peertube.mastodon.host/videos/embed/{{ . }}?rel=0" width="560" height="315" allowfullscreen='true'></iframe>
</figure>
{{- end }}
{{- with .Params.figure }}
{{- $altMsgName := "" }}
{{- $capMsgName := "" }}
{{- if lt $patch 50 }}
{{- $altMsgName = "annc-plasma-alt" }}
{{- $capMsgName = "annc-plasma-caption" }}
{{- else }}
{{- $altMsgName = "annc-plasma-beta-alt" }}
{{- $capMsgName = "annc-plasma-beta-caption" }}
{{- end }}
<figure class="{{ .class | default "text-center" }}">
<img src="{{ .src }}" alt="{{ .alt | default (i18n $altMsgName $scratch) }}" width="600px" />
<figcaption>
<p>{{- .caption | default (i18n $capMsgName $scratch) | markdownify }}</p>
</figcaption>
</figure>
{{- end }}
{{- if .Params.asBugfix }}
{{- $firstMinor := .GetPage (printf "%d.%d.0.md" $major $minor) }}
{{- $minorY := $firstMinor.Params.date.Year }}
{{- $minorM := $firstMinor.Params.date.Month }}
{{- $year := "" }}
{{- if not (or (eq .Params.date.Year $minorY) (and (eq .Params.date.Year (add $minorY 1)) (lt .Params.date.Month $minorM))) }}
{{- $year = print $minorY " " }}
{{- end }}
{{- $scratch.Set "maj" $major }}
{{- $scratch.Set "version" $version }}
{{- $scratch.Set "year" $year }}
{{- $minorReleaseMsgName := printf "annc-plasma-bugfix-minor-release-%d" $minorM }}
{{- $worthMsgName := printf "annc-plasma-bugfix-worth-%d" $patch }}
<p>{{ partial "i18n_date.html" . }}. {{ i18n "annc-plasma-bugfix-intro" $scratch }}</p>
<p>{{ i18n $minorReleaseMsgName $scratch | markdownify }}</p>
<p>{{ i18n $worthMsgName }} {{ i18n "annc-plasma-bugfix-last" }}</p>
{{- end }}
{{- end }}
<div class="laptop-with-overlay d-block my-3 mx-auto" style="max-width: 800px"><img class="laptop img-fluid mt-3" src="/reusable-assets/laptop.svg" alt="empty laptop with an overlay"><div class="laptop-overlay"><video controls class="w-100 h-100 mt-3" poster="https://cdn.kde.org/promo/Announcements/Plasma/5.19/Thumbnail.png"><source src="https://cdn.kde.org/promo/Announcements/Plasma/5.19/Video.webm" type="video/webm"><source src="https://cdn.kde.org/promo/Announcements/Plasma/5.19/Video.mp4"
type="video/mp4"></video></div></div>
<div class="laptop-with-overlay d-block my-3 mx-auto" style="max-width: 800px"><img class="laptop img-fluid mt-3" src="/reusable-assets/laptop.svg" alt="empty laptop with an overlay"><div class="laptop-overlay"><video controls class="w-100 h-100 mt-3" poster="https://cdn.kde.org/promo/Announcements/Plasma/5.20/Thumbnail.png"><source src="https://cdn.kde.org/promo/Announcements/Plasma/5.20/Video.webm" type="video/webm"><source src="https://cdn.kde.org/promo/Announcements/Plasma/5.20/Video.mp4"></video></div></div>
......@@ -50,7 +50,7 @@ def webpage_list() -> tp.Dict[str, tp.List[str]]:
}
excluded_keys = ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'aliases', 'laptop', 'images', 'class', 'logo', 'src', 'libCount', 'customIntro']
excluded_keys = ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'aliases', 'laptop', 'images', 'class', 'logo', 'src', 'libCount', 'customIntro', 'youtube', 'peertube', 'video', 'asBugfix', 'customOutro']
def import_frontmatter(data, _):
......
Markdown is supported
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