Commit 18ef0168 authored by Phu Nguyen's avatar Phu Nguyen

Fix issues and cleanup after starting using the shared theme

- Use i18n files again
- Move some shortcodes and partials to the theme
parent 0c79073e
......@@ -8,7 +8,7 @@ img {
border: 0px;
}
ul {
.text-center ul {
list-style-type: none;
max-width: 800px;
margin-left: auto;
......
......@@ -3,9 +3,6 @@ canonifyURLs: true
defaultContentLanguage: en
enableGitInfo: true
enableRobotsTXT: true
module:
imports:
- path: invent.kde.org/websites/aether-sass
languages:
ast:
contentDir: content-trans/ast
......@@ -299,26 +296,27 @@ markup:
goldmark:
renderer:
unsafe: true
module:
imports:
- path: invent.kde.org/websites/aether-sass
outputs:
home:
- HTML
- RSS
section:
- HTML
title: "KDE"
params:
comments: false
commit: true
images:
- /thumbnail.png
matomo: 1
readingTime: true
rss: true
repoName: kde-org
selfHosted: true
showRelatedPosts: true
socialShare: false
useHLJS: true
wordCount: false
matomo: 1
pygmentsCodeFences: true
pygmentsCodefencesGuessSyntax: true
pygmentsStyle: trac
......
module:
imports:
- path: invent.kde.org/websites/aether-sass
- path: github.com/thednp/bootstrap.native
replacements: invent.kde.org/websites/aether-sass -> ../../aether-sass
---
title: KDE Home
plasma: Plasma
plasma_desc: The next generation desktop for Linux
images:
- /thumbnail.png
---
......@@ -58,6 +58,7 @@ kfocus:
Kubuntu-branded computer. It is designed for work that requires
intense GPU computing, fast NVMe storage and optimal cooling to unleash
the CPU's maximum potential.
alt: Picture of Kubuntu Focus
specification: Specifications
operating: "Operating system pre-installed:"
cpu: "CPU:"
......@@ -133,4 +134,4 @@ All TUXEDO devices are delivered in such a way that you only have to unpack, con
They provide you with self-programmed driver packages, support, installation scripts and everything around our hardware, so that every hardware component really works.
{{< /diagonal-box >}}
\ No newline at end of file
{{< /diagonal-box >}}
......@@ -2,4 +2,4 @@ module kde-org
go 1.14
require invent.kde.org/websites/aether-sass v0.0.0-20210216120128-06b16c0a5253 // indirect
require invent.kde.org/websites/aether-sass v0.0.0-20210219192128-b8d13f71d14c // indirect
......@@ -7,3 +7,5 @@ invent.kde.org/websites/aether-sass v0.0.0-20210213220243-4ef0974ca9a4 h1:VP8OlO
invent.kde.org/websites/aether-sass v0.0.0-20210213220243-4ef0974ca9a4/go.mod h1:4DvMg7qs7DpW4EguZ6NquxA/sADT6M7LlAYZ1PjB9hw=
invent.kde.org/websites/aether-sass v0.0.0-20210216120128-06b16c0a5253 h1:FgpambsA7D/Vrl/NvRY0u7NPRIiZ0AUWylYE6uV11Yg=
invent.kde.org/websites/aether-sass v0.0.0-20210216120128-06b16c0a5253/go.mod h1:4DvMg7qs7DpW4EguZ6NquxA/sADT6M7LlAYZ1PjB9hw=
invent.kde.org/websites/aether-sass v0.0.0-20210219192128-b8d13f71d14c h1:MKWh2Dyq2qpgDkyFfnnYTZjtCo1aC+W3wlKQeZVJCSE=
invent.kde.org/websites/aether-sass v0.0.0-20210219192128-b8d13f71d14c/go.mod h1:4DvMg7qs7DpW4EguZ6NquxA/sADT6M7LlAYZ1PjB9hw=
products:
other: Products
develop:
other: Develop
get-involved:
other: 'Get Involved'
Donate:
other: Donate
{{ define "main"}}
<main id="main" class="container">
<div>
<h1 id="title" class="text-center"><a href="{{ "/" | relURL }}">404: Page not found error</a></h1>
</div>
</main>
{{ end }}
<!DOCTYPE html>
<html lang="{{ .Lang }}" itemscope itemtype="http://schema.org/WebPage">
<head>
{{- partial "head.html" . -}}
{{- block "head-css" . }}{{- end }}
</head>
<body>
{{- partial "header.html" . -}}
<div id="main">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>
......@@ -16,7 +16,7 @@
{{ .description | markdownify }}
</p>
</div>
<img src="/content/hardware/pinephone.png" class="mx-auto img-fluid" style="width: 600px"/>
<img src="/content/hardware/pinephone.png" class="mx-auto img-fluid" style="width: 600px" alt="{{ .alt }}"/>
</div>
<div class="container text-center">
<div style="max-width: 700px" class="mx-auto mt-4">{{ .specification | markdownify }}</p>
......@@ -66,7 +66,7 @@
<div><a href="https://slimbook.es/en/store/slimbook-kde/kde-slimbook-15-comprar">{{ .configure }}</a></div>
</div>
</div>
<div class="text-center"><a href="https://kde.slimbook.es/specs/" class="learn-more h4 mt-5">See the full comparison</a></div>
<div class="text-center"><a href="https://kde.slimbook.es/specs/" class="learn-more h4 mt-5">{{ .full }}</a></div>
</section>
</div>
{{ end }}
......@@ -83,7 +83,7 @@
</p>
</div>
<div class="col-12 mt-4">
<img src="https://kfocus.org/img/m2/front-screen_50-kbd_high_green-color-DSC00710-SMALL.jpg?1601256043" alt="Kubuntu Focus Picture" class="img-fluid">
<img src="https://kfocus.org/img/m2/front-screen_50-kbd_high_green-color-DSC00710-SMALL.jpg?1601256043" alt="{{ .alt }}" class="img-fluid">
</div>
</div>
<div>
......
{{ define "main" }}
<main class="container" role="main">
<h1>{{ .Title }}</h1>
{{ with .Content }}
{{.}}
{{ end }}
{{ if not .Params.nosubpage }}
<div class="posts-list">
{{ range where .Paginator.Pages "Params.hidden" "ne" "true" }}
<article class="mb-3">
<a href="{{ .Permalink }}">
<h2 class="post-title">{{ .Title }}</h2>
{{ if .Params.subtitle }}
<h3 class="post-subtitle">{{ .Params.subtitle }}</h3>
{{ end }}
</a>
<div class="post-entry">
{{ .Summary }}
<br />
<a href="{{ .Permalink }}" class="button learn-more">Learn more</a>
</div>
</article>
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
{{ end }}
</main>
{{ end }}
{{ define "main" }}
<main class="container" role="main">
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ with .Params.include_html }}
<div id="wrapper"></div>
<script>
window.addEventListener("load", function() {
$.ajax({
url: "/{{ . }}",
type:'GET',
success: function(data){
$('#wrapper').html($(data).html());
}
});
});
</script>
{{ end }}
</main>
{{ end }}
......@@ -15,7 +15,7 @@
<p>{{ i18n "spread-social" }}</p>
<h2>{{ i18n "install-applications" }}</h2>
<h3>{{ i18n "packaes" }}</h3>
<h3>{{ i18n "packages" }}</h3>
<p>{{ i18n "packages-desc" }}</p>
<h3>{{ i18n "package-location" }}</h3>
<p>{{ i18n "package-location-desc" | markdownify }}</p>
......
......@@ -11,8 +11,8 @@
{{ define "main" }}
<main id="home">
<section class="text-center py-4 mt-0 header-plasma20" style="background-image: url(/announcements/plasma/5/5.21.0/mk.webp);background-size:cover; color: white">
<h1>{{ .Params.plasma }}</h1>
<h2>{{ .Params.plasma_desc }}</h2>
<h1>{{ i18n "plasma" }}</h1>
<h2>{{ i18n "plasma-desc" }}</h2>
<div class="laptop-with-overlay d-block my-3 mx-auto w-100" style="max-width: 1000px">
<img class="laptop img-fluid mt-3" src="/content/plasma-desktop/laptop.png" alt="">
<div class="laptop-overlay">
......
<section class="container">
<div class="row" id="download">
<article class="col-md">
<h2>{{ i18n "live-images" }}</h2>
<p>{{ i18n "live-images-text" }}</p>
<a href="https://community.kde.org/Plasma/Live_Images" class="learn-more">{{ i18n "download-plasma" }}</a>
<a href="https://community.kde.org/Plasma/Docker_Images" class="learn-more">{{ i18n "docker-plasma" }}</a>
</article>
<article class="col-md">
<h2>{{ i18n "package-downloads" }}</h2>
<p>{{ i18n "package-downloads-text" }}</p>
<a href="https://community.kde.org/Plasma/Packages" class="learn-more">{{ i18n "package-wiki" }}</a>
</article>
<article class="col-md">
<h2>{{ i18n "source-download" }}</h2>
<p>{{ i18n "source-download-text" }}</p>
<a href="http://community.kde.org/Frameworks/Building">{{ i18n "community-instructions" }}</a>
{{ if not .Params.noinfo }}
<a href="/info/plasma-{{ .File.TranslationBaseName }}" class="learn-more">{{ i18n "source-info-page" }}</a>
{{ end }}
</article>
</div>
</section>
<section class="give-feedback">
<h2>{{ i18n "feedback" }}</h2>
<p class="kSocialLinks">
{{ i18n "give-feedback" }}
<a class="shareMatrix" href="https://webchat.kde.org/#/rooms/#kde:kde.org" rel="nofollow">{{ i18n "shareMatrix" }}</a>
<a class="shareFacebook" href="https://www.facebook.com/kde/" rel="nofollow">{{ i18n "post-facebook" }}</a>
<a class="shareTwitter" href="https://twitter.com/kdecommunity" rel="nofollow">{{ i18n "share-twitter" }}</a>
<a class="shareDiaspora" href="https://joindiaspora.com/people/9c3d1a454919ef06" rel="nofollow">{{ i18n "share-diaspora" }}</a>
<a class="shareMastodon" href="https://mastodon.technology/@kde" rel="me nofollow">{{ i18n "share-mastodon" }}</a>
<a class="shareLinkedIn" href="https://www.linkedin.com/company/29561/" rel="nofollow">{{ i18n "share-linkedin" }}</a>
<a class="shareReddit" href="https://www.reddit.com/r/kde/" rel="nofollow">{{ i18n "share-reddit" }}</a>
<a class="shareYouTube" href="https://www.youtube.com/channel/UCF3I1gf7GcbmAb0mR6vxkZQ" rel="nofollow">{{ i18n "share-youtube" }}</a>
<a class="sharePeerTube" href="https://peertube.mastodon.host/accounts/kde/videos" rel="nofollow">{{ i18n "share-peertube" }}</a>
<a class="shareVK" href="https://vk.com/kde_ru" rel="nofollow">{{ i18n "share-vk" }}</a>
<a class="shareInstagram" href="https://www.instagram.com/kdecommunity/" rel="nofollow">{{ i18n "share-instagram" }}</a>
</p>
<p align="justify">{{ i18n "discuss-forum" | markdownify }}</p>
<p align="justify">{{ i18n "report-bug-plasma" | markdownify }}</p>
<p align="justify">{{ i18n "feedback-appreciated" }}</p>
</section>
<h2>{{ i18n "supporting-kde" }}</h2>
<p align="justify">{{ i18n "whatiskde" | markdownify }}</p>
<h2>{{ i18n "about-kde" }}</h2>
<p align="justify">{{ i18n "about-kde-text" }}</p>
<hr />
<p align="justify">
<font size="2">
<em>{{ i18n "trademark-notices" }}</em><br/> <br/>
{{ i18n "kde-trademark" | safeHTML }} <br/>
{{ i18n "linux-trademark" | html }} {{ i18n "unix-trademark" }}<br/>
{{ i18n "other-trademarks" }}
</font>
</p>
<hr />
<h4>{{ i18n "press-contacts" }}</h4>
<p>
{{ i18n "info-email" }} <a href="mailto:press@kde.org">press@kde.org</a>
</p>
<nav aria-label="breadcrumb" class="d-none d-md-block d-print-none mt-3">
<ol class="breadcrumb spb-1">
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ol>
</nav >
{{ define "breadcrumbnav" }}
{{ if .p1.Parent }}
{{ if not .p1.Parent.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
{{ end }}
{{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }}
{{ if eq .p1 .p2 }}
<li class="breadcrumb-item active" aria-current="page">{{ partial "i18n_title.html" .p1 }}</li>
{{ else }}
<li class="breadcrumb-item">
<a href="{{ .p1.Permalink }}">{{ partial "i18n_title.html" .p1 }}</a>
</li>
{{ end }}
{{ end }}
{{- with .Params.description }}
{{- . }}
{{- else }}
{{- if .IsHome }}
{{- i18n "site-description" }}
{{- else if eq .Params.layout "plasma" }}
{{- $version := .File.TranslationBaseName }}
{{- $major := index (split $version ".") 0 | int }}
{{- $minor := index (split $version ".") 1 | int }}
{{- $patch := index (split $version ".") 2 | int }}
{{- $msgName := "" }}
{{- $versionStr := "" }}
{{- $varStr := "" }}
{{- if and (or (and (eq $major 5) (gt $minor 19)) (gt $major 5)) (gt $patch 0) (lt $patch 50) }}
{{- $msgName = "annc-plasma-bugfix-description-post-5-19" }}
{{- $varStr = "%maj_ver" }}
{{- $versionStr = $major }}
{{- else }}
{{- $varStr = "%ver" }}
{{- if and (gt $patch 0) (lt $patch 50) }}
{{- $msgName = "annc-plasma-description-pre-5-20" }}
{{- $versionStr = $version }}
{{- else if eq $patch 0 }}
{{- $msgName = "annc-plasma-description-pre-5-20" }}
{{- $versionStr = print $major "." $minor }}
{{- else }}
{{- $msgName = "annc-plasma-beta-description-pre-5-20" }}
{{- $versionStr = print $major "." (add $minor 1) }}
{{- end }}
{{- end }}
{{- replace (i18n $msgName) $varStr $versionStr }}
{{- else }}
{{- "" }}
{{- end }}
{{- end -}}
{{- with .Params.title }}
{{- . }}
{{- else }}
{{- if .IsHome }}
{{- i18n "home" }}
{{- else if eq .Params.layout "plasma" }}
{{- $version := .File.TranslationBaseName }}
{{- $major := index (split $version ".") 0 | int }}
{{- $minor := index (split $version ".") 1 | int }}
{{- $patch := index (split $version ".") 2 | int }}
{{- $msgName := "" }}
{{- $versionStr := "" }}
{{- if and (gt $patch 0) (lt $patch 50) }}
{{- $msgName = printf "annc-plasma-bugfix-title-%d" .Params.date.Month }}
{{- $versionStr = $version }}
{{- else if eq $patch 0 }}
{{- $msgName = "annc-plasma-release-title" }}
{{- $versionStr = print $major "." $minor }}
{{- else }}
{{- $msgName = "annc-plasma-beta-title" }}
{{- $versionStr = print $major "." (add (int $minor) 1) }}
{{- end }}
{{- replace (i18n $msgName) "%ver" $versionStr }}
{{- else }}
{{- "" }}
{{- end }}
{{- end -}}
<meta property="og:title" content="{{ partial "i18n_title.html" . }}" />
<meta property="og:description" content="{{ $description := partial "i18n_description.html" . }}{{ with $description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ i18n "site-description" }}{{ end }}{{ end }}" />
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:site_name" content="{{ i18n "site-title" }}" />
{{- with .Params.images }}{{ range first 6 . -}}
<meta property="og:image" content="{{ . | absURL }}" />
{{ end }}{{ else -}}
{{- with .Site.Params.images -}}
<meta property="og:image" content="{{ index . 0 | absURL }}"/>
{{ end }}{{ end }}
{{- with .Params.videos }}
{{- range . }}
<meta property="og:video" content="{{ . | absURL }}" />
{{ end }}{{ end }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
{{- if .IsPage }}
{{- if not .PublishDate.IsZero }}<meta property="article:published_time" {{ .PublishDate.Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />
{{ else if not .Date.IsZero }}<meta property="article:published_time" {{ .Date.Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />
{{ end }}
{{- if not .Lastmod.IsZero }}<meta property="article:modified_time" {{ .Lastmod.Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end }}
{{- else }}
{{- if not .Date.IsZero }}<meta property="og:updated_time" {{ .Lastmod.Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />
{{- end }}
{{- end }}
<meta name="description" content="{{ $description := partial "i18n_description.html" . }}{{ with $description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ i18n "site-description" }}{{ end }}{{ end }}">
{{ $title := partial "i18n_title.html" . }}
<title>{{ $title }} : {{ i18n "site-title" }}</title>
{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $title }}" />{{ end }}
{{ partial "opengraph.html" . }}
{{ partial "twitter_cards.html" . }}
<meta name="twitter:title" content="{{ partial "i18n_title.html" . }}"/>
<meta name="twitter:description" content="{{ $description := partial "i18n_description.html" . }}{{ with $description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ i18n "site-description" }}{{ end }}{{ end }}"/>
{{- with .Params.images }}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
{{ else -}}
{{- with .Site.Params.images }}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
{{ else -}}
<meta name="twitter:card" content="summary"/>
{{- end -}}
{{- end }}
\ No newline at end of file
<div class="box">
<picture class="img-fluid"> {{ $darkname := print (substr (.Get "src") 0 -4) "-dark.png" }} {{ if or (fileExists (print "static/" .Page.File.Dir .Page.File.BaseFileName "/" $darkname)) (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>
<div class="boxes mx-auto mt-0" style="max-width: 1500px">
{{ .Inner | $.Page.RenderString }}
</div>
<div class="container py-5 {{ with .Get "class" }}{{ . }}{{ end }}">
{{ .Inner | $.Page.RenderString }}
</div>
<details id="{{ if .Get "id" }}{{ .Get "id" }}{{ else }}{{ .Get "title" }}{{ end }}">
<summary class="h4">{{ with .Get "href" }}<a href="{{ . }}">{{ end }}{{ .Get "title" }}{{ with .Get "href" }}</a>{{ end }}</summary>
{{- .Inner | markdownify -}}
</details>
<section class="diagonal-box {{ with .Get "color" }}bg-{{ . }}{{ end }} pt-4 pb-5 {{ with .Get "class" }}{{ . }}{{ end }}">
<div class="container content">
{{ $alt := .Get "alt" }}
{{ if .Get "logo" }}
<div class="text-center"><img src="{{ .Get "logo" }}" alt="{{ $alt }}" class="img-fluid logo"></div>
<div>
{{ .Inner | $.Page.RenderString }}
</div>
{{ else }}
<div class="row">
<div class="col-12 col-md-5 col-lg-6 text-center mx-auto">
{{ with .Get "title" }}
<h2>{{ . }}</h2>
{{ end }}
{{ .Inner | $.Page.RenderString }}
</div>
{{ $title := .Get "title" }}
{{ with .Get "src" }}
<div class="col-12 col-md-7 col-lg-6 align-self-center mt-4">
<img src="{{ . }}" alt="{{ $title }}" class="laptop-picture">
</div>
{{ end }}
</div>
<div>
{{ with .Get "href" }}
<a href="{{ . }}" class="learn-more button mt-3 mb-3 d-inline-block">Learn more </a><br />
{{ end }}
</div>
{{ end }}
</div>
</section>
<nav>
<div class="nav nav-pills" id="nav-tab" role="tablist">
<a class="nav-item nav-link" id="nav-recurring-time-tab" data-toggle="tab" href="#nav-recurring-time" role="tab" aria-controls="nav-recurring-time" aria-selected="false">Recurring Donation</a>
<a class="nav-item nav-link active" id="nav-one-time-tab" data-toggle="tab" href="#nav-one-time" role="tab" aria-controls="nav-one-time" aria-selected="true">One Time Donation</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane show active" id="nav-one-time" role="tabpanel" aria-labelledby="nav-one-time-tab">
<p style="margin-left: 1em; padding-top: 1em;">
<a href="https://relate.kde.org/civicrm/contribute/transact?reset=1&amp;id=9"><img src="images/Jtg.png" class="noborder" style="float: right; margin: 0px; background-image: none; border: 0; padding-top: 0" alt="Join the Game and support KDE" /></a>
We have two different ways to do recurring donations:
</p>
<ul>
<li>For <em>individuals</em>, the <a href="https://relate.kde.org/civicrm/contribute/transact?reset=1&amp;id=9">Join the Game</a> initiative.</li>
<li>For <em>corporations</em>, the <a href="http://ev.kde.org/getinvolved/supporting-members.php">Supporting Membership Program</a>.</li>
</ul>
</div>
<div class="tab-pane" id="nav-recurring-time" role="tabpanel" aria-labelledby="nav-recurring-time-tab">
<p class="ml-2 mb-0">
<form style="border: none; box-shadow: none; margin-top: 0; padding-top: 1em;" action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="return amount.value >= 2 || window.confirm('Your donation is smaller than 2€. This means that most of your donation will end up in processing fees. Do you want to continue?');">
<input type="hidden" name="business" value="kde-ev-paypal@kde.org" />
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="item_name" value="KDE e.V." />
<input type="hidden" name="item_number" value="Donation to KDE e.V." />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="custom" value="" />
<input type="hidden" name="cn" value="Enter your name or other publically listed donation message" />
<input type="hidden" name="cbt" value="Return to www.kde.org" />
<input type="hidden" name="return" value="https://kde.org/community/donations/thanks_paypal" />
<input type="hidden" name="notify_url" value="https://webapi.kde.org/donation/notify" />
<input type='text' name="amount" value='30' style="vertical-align:middle;text-align:right;" size="4" />
<input type="image" name="submit" src="paypal_donate.gif" alt="PayPal" style="vertical-align:middle;" />
</form>
</p>
<p class="ml-2 mb-2">
<a href="/community/donations/previousdonations">Previous donations page</a>
</p>
</div>
</div>
<section>
<h2 class="h4">{{ .Get "title" }}</h2>
<h3 class="h1">{{ .Get "subtitle" }}</h3>
</section>
<div class="py-5 container-fluid">
<div class="container text-center">
<h2>{{ .Get "title" }}</h2>
</div>
<div class="row">
{{ range $.Page.Params.features }}
<div class="d-flex flex-column col-6 col-sm-3 text-center mb-5 mt-5">
<img src="{{ .logo }}" alt="" class="logo mx-auto" />
<h3 class="mt-1">{{ .title }}</h3>
{{ .content }}
</div>
{{ end }}
</div>
</div>
<div class="feature {{ with .Get "direction" }}direction-{{ . }}{{ end }}">
<div>
<picture class="img-fluid {{ with .Get "class" }}{{ . }}{{ end }}"> {{ $darkname := print (substr (.Get "src") 0 -4) "-dark.png" }} {{ if or (fileExists (print "static/" .Page.File.Dir .Page.File.BaseFileName "/" $darkname)) (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 {{ with .Get "class" }}{{ . }}{{ end }}" alt="{{ .Get "alt" }}" />
</picture>
</div>
<div>
{{ .Inner | $.Page.RenderString }}
</div>
</div>
{{ $dateFormat := i18n "date-format" }}
{{ if .Page.Params.date }}
{{ $withY := replace $dateFormat "%Y" .Page.Params.date.Year }}
{{ $withYB := replace $withY "%B" (i18n (.Page.Params.date.Format "January")) }}
{{ $withYBd := replace $withYB "%d" (.Page.Params.date.Format "02") }}
{{ $withYBdA := replace $withYBd "%A" (i18n (.Page.Params.date.Format "Monday")) }}
{{ $withYBdA }}
{{ end }}
{{- if (.Get 11) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) (.Get 5) (.Get 6) (.Get 7) (.Get 8) (.Get 9) (.Get 10) (.Get 11) | safeHTML -}}
{{- else if (.Get 10) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) (.Get 5) (.Get 6) (.Get 7) (.Get 8) (.Get 9) (.Get 10) | safeHTML -}}
{{- else if(.Get 9) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) (.Get 5) (.Get 6) (.Get 7) (.Get 8) (.Get 9) | safeHTML -}}
{{- else if (.Get 8) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) (.Get 5) (.Get 6) (.Get 7) (.Get 8) | safeHTML -}}
{{- else if (.Get 7) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) (.Get 5) (.Get 6) (.Get 7) | safeHTML -}}
{{- else if (.Get 6) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) (.Get 5) (.Get 6) | safeHTML -}}
{{- else if (.Get 5) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) (.Get 5) | markdownify |safeHTML -}}
{{- else if (.Get 4) -}}
{{- printf (.Get 0) (.Get 1) (.Get 2) (.Get 3) (.Get 4) | markdownify | safeHTML -}}
{{- else if (.Get 3) -}}