Commit c9eaeda5 authored by Phu Nguyen's avatar Phu Nguyen

For a Hugo warning and a mistake in content

parent 9039842b
---
title: KDE Ships Release Candidate of KDE Applications 14.12
title: KDE Ships KDE Applications 14.12
date: "2014-12-17"
description: KDE Ships Applications 14.12.
layout: application
......
......@@ -19,7 +19,7 @@
{{ end }}
<h1>{{ .Title | safeHTML }} </h1>
{{ .Content }}
{{ $major := path.Base .Dir }}
{{ $major := path.Base .File.Dir }}
{{ with .Params.changelog }}
<a href="/announcements/changelogs/plasma/{{$major}}/{{ . }}">{{ i18n "view-changelog" }}</a>
{{ end }}
......
<div class="box">
<picture class="img-fluid"> {{ $darkname := print (substr (.Get "src") 0 -4) "-dark.png" }} {{ if (fileExists (print .Page.Dir $darkname)) }} <source srcset="{{ .Page.Permalink }}{{ $darkname }}" media="(prefers-color-scheme: dark)"> {{ end }}
<picture class="img-fluid"> {{ $darkname := print (substr (.Get "src") 0 -4) "-dark.png" }} {{ if (fileExists (print .Page.File.Dir $darkname)) }} <source srcset="{{ .Page.Permalink }}{{ $darkname }}" media="(prefers-color-scheme: dark)"> {{ end }}
<img src="{{ .Page.Permalink }}{{ .Get "src" }}" class="img-fluid" alt="{{ .Get "alt" }}" loading="lazy" />
</picture>
</div>
......@@ -3,7 +3,7 @@
{{ .Inner | $.Page.RenderString }}
</div>
<div>
<picture class="img-fluid"> {{ $darkname := print (substr (.Get "src") 0 -4) "-dark.png" }} {{ if (fileExists (print .Page.Dir $darkname)) }} <source srcset="{{ .Page.Permalink }}{{ $darkname }}" media="(prefers-color-scheme: dark)"> {{ end }}
<picture class="img-fluid"> {{ $darkname := print (substr (.Get "src") 0 -4) "-dark.png" }} {{ if (fileExists (print .Page.File.Dir $darkname)) }} <source srcset="{{ .Page.Permalink }}{{ $darkname }}" media="(prefers-color-scheme: dark)"> {{ end }}
<img src="{{ .Page.Permalink }}{{ .Get "src" }}" class="img-fluid" alt="{{ .Get "alt" }}" loading="lazy" />
</picture>
</div>
......
......@@ -9,7 +9,7 @@
{{ end }}
<img src="{{ .Get "src" }}" class="img-fluid" alt="{{ .Get "alt" }}" loading="lazy" />
{{ else }}
{{ if (fileExists (print .Page.Dir $darkname)) }}
{{ if (fileExists (print .Page.File.Dir $darkname)) }}
<source srcset="{{ .Page.Permalink }}{{ $darkname }}" media="(prefers-color-scheme: dark)">
{{ end }}
<img src="{{ .Page.Permalink }}{{ .Get "src" }}" class="img-fluid" alt="{{ .Get "alt" }}" loading="lazy" />
......
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