Skip to content

Commit

Permalink
Fix newslink shortcode for recent Hugo, use in remaining news entries
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 27, 2024
1 parent d2d6bea commit fe49c61
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 57 deletions.
2 changes: 1 addition & 1 deletion content/en/news/news-05.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Including fixes for:

[View the full 3.4.1 changelog](https://github.com/Warzone2100/warzone2100/raw/3.4.1/ChangeLog)

**(For all the changes since 3.3.0, see the [Version 3.4.0 release announcement]({{< ref "news-04.md" >}}).)**
**(For all the changes since 3.3.0, see the [Version 3.4.0 release announcement]({{< newslink "news-04.md" >}}).)**

There have been **over 70 commits since 3.4.0**, from many contributors including: Colin MacDonald, Cyp, Ilari Tommiska, KJeff01, past-due, Prot, Vitya Andreev

Expand Down
2 changes: 1 addition & 1 deletion content/en/news/news-10.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Including fixes for:

[View the full 4.0.1 changelog](https://github.com/Warzone2100/warzone2100/raw/4.0.1/ChangeLog)

**(For all the changes in 4.0.0, see the [Version 4.0.0 release announcement]({{< ref "news-09.md" >}}).)**
**(For all the changes in 4.0.0, see the [Version 4.0.0 release announcement]({{< newslink "news-09.md" >}}).)**

There have been **40 commits since 4.0.0**, from many contributors including: Federico Dossena, KJeff01, Maxim Zhuchkov, past-due, Thiago Romão Barcala, Thomas Rupprecht

Expand Down
2 changes: 1 addition & 1 deletion content/en/news/news-13.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ And a number of balance tweaks:

[View the full 4.1.1 changelog](https://github.com/Warzone2100/warzone2100/raw/4.1.1/ChangeLog)

**(For all the changes in 4.1.0, see the [Version 4.1.0 release announcement]({{< ref "news-12.md" >}}).)**
**(For all the changes in 4.1.0, see the [Version 4.1.0 release announcement]({{< newslink "news-12.md" >}}).)**

**[Download Options]({{< ref "/" >}})**

Expand Down
2 changes: 1 addition & 1 deletion content/en/news/news-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Including:

[View the full 4.1.2 changelog](https://github.com/Warzone2100/warzone2100/raw/4.1.2/ChangeLog)

**(For all the changes in 4.1.0, see the [Version 4.1.0 release announcement]({{< ref "news-12.md" >}}).)**
**(For all the changes in 4.1.0, see the [Version 4.1.0 release announcement]({{< newslink "news-12.md" >}}).)**

**[Download Options]({{< ref "/" >}})**

Expand Down
2 changes: 1 addition & 1 deletion content/en/news/news-15.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ And the following multiplayer balance adjustments:

[View the full 4.1.3 changelog](https://github.com/Warzone2100/warzone2100/raw/4.1.3/ChangeLog)

**(For all the changes in 4.1.0, see the [Version 4.1.0 release announcement]({{< ref "news-12.md" >}}).)**
**(For all the changes in 4.1.0, see the [Version 4.1.0 release announcement]({{< newslink "news-12.md" >}}).)**

**[Download Options]({{< ref "/" >}})**

Expand Down
50 changes: 0 additions & 50 deletions content/pt-BR/news/news-09.md

This file was deleted.

2 changes: 1 addition & 1 deletion content/pt-BR/news/news-10.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Incluindo correções para:

[Veja o registro de alterações completo da versão 4.0.1](https://github.com/Warzone2100/warzone2100/raw/4.0.1/ChangeLog)

**(Para ver todas as alterações na versão 4.0.0, veja o [Anúncio de lançamento da versão 4.0.0]({{< ref "news-09.md" >}}).)**
**(Para ver todas as alterações na versão 4.0.0, veja o [Anúncio de lançamento da versão 4.0.0]({{< newslink "news-09.md" >}}).)**

Houve **40 commits desde 4.0.0**, com a contribuição de vários usuários, incluindo: Federico Dossena, KJeff01, Maxim Zhuchkov, past-due, Thiago Romão Barcala, Thomas Rupprecht

Expand Down
2 changes: 1 addition & 1 deletion themes/wz2100net/layouts/shortcodes/newslink.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- if not $page -}}
{{- with .Page -}}
{{- if ne .Page.Site.Language.Lang .Page.Sites.Default.Language.Lang -}}
{{- with .Sites.Default.GetPage .Page.Dir }}
{{- with .Sites.Default.GetPage .File.Dir }}
{{- $page = .GetPage $URL -}}
{{- end -}}
{{- else -}}
Expand Down

0 comments on commit fe49c61

Please sign in to comment.