Commit f9531a7c authored by Phu Nguyen's avatar Phu Nguyen
Browse files

Cleanup

- Create favicons
- Remove unnecessary layouts
- Use site title and description more properly
- Use configs for site logo and RSS
parent e9c1debf
......@@ -2,8 +2,6 @@ baseURL: https://okular.kde.org/
defaultcontentlanguage: en
enableGitInfo: true
enableRobotsTXT: true
heightAuthor:
name: The Okular developers
i18n:
content:
default:
......@@ -20,6 +18,7 @@ i18n:
genToOtherDir: true
others:
- title
- description
- menu
- strings
languages:
......@@ -133,6 +132,8 @@ languages:
- name: Donate
url: https://kde.org/donations
weight: 4
params:
description: Multi-platform, fast and packed with features, Okular allows you to read PDF documents, comics and EPub books, browse images, visualize Markdown documents, and much more.
title: Okular
weight: 1
en-gb:
......@@ -586,8 +587,13 @@ outputs:
params:
commit: true
donationBox: //okular.kde.org//donation_box
images:
- /images/screenies/okular-main.png
logo: /images/okular.png
madeByKde: true
matomo: 2
repoName: okular-kde-org
rssSection: news
showLinkFooter: false
showPatrons: false
rssLimit: 4
---
title: Okular - The Universal PDF Reader
title: Okular - The Universal Document Viewer
layout: home
menu:
main:
......
#HomePage
Home.motto:
other: "The Universal Document Viewer"
Home.description:
other: "Multi-platform, fast and packed with features, Okular allows you to read PDF documents, comics and EPub books, browse images, visualize Markdown documents, and much more."
Home.alt_img:
other: "Screenshot of Okular"
Home.figcaption:
......@@ -58,8 +56,6 @@ Home.try_it:
Home.download_it:
other: "Visit the download page."
Home.made-by-kde:
other: "Made by KDE"
Home.recentnews:
other: "Latest News"
Home.recentnews.view-all:
......
......@@ -10,9 +10,9 @@ SPDX-License-Identifier: LGPL-3.0-or-later
<main id="home">
<section class="section-blue mt-0 pt-1 pb-4" id="okular">
<div class="container text-center">
<h1 id="okular-title">Okular</h1>
<h1 id="okular-title">{{ .Site.Title }}</h1>
<h2>{{ i18n "Home.motto"}}</h2>
<p style="max-width: 600px" class="ml-auto mr-auto">{{ i18n "Home.description"}}</p>
<p style="max-width: 600px" class="ml-auto mr-auto">{{ .Site.Params.description }}</p>
<figure class="mx-auto" style="max-width: 600px">
<img class="img-fluid" alt={{ i18n "Home.alt_img"}} src="/images/screenies/okular-main.png" width=1069 height=851 />
<figcaption>{{ i18n "Home.figcaption" | markdownify}}</figcaption>
......
{{/*
SPDX-FileCopyrightText: Pablo Marcos <kde@pablomarcos.me>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ i18n "site-title" }}</title>
<link>{{ .Permalink }}</link>
<description>{{ i18n "rss-description" }}</description>
<generator>Hugo -- gohugo.io</generator>
<language>{{ .Site.LanguageCode | default "en" }}</language>
{{ with .OutputFormats.Get "RSS" }}{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}{{ end }}
{{ $pages := (.Site.GetPage "/news").RegularPagesRecursive }}
{{ range first 4 (where $pages "Params.hidden" "ne" "true") }}
<item>
<title>{{ partial "i18n_title.html" . }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<guid>{{ .Permalink }}</guid>
<description>{{ partial "rss_content.html" . | html }}</description>
</item>
{{ end }}
</channel>
</rss>
<header id="KGlobalHeader" class="header clearfix">
<link rel="icon" href="/images/okular.png">
<nav class="navbar navbar-expand-lg">
<a class="app-logo navbar-brand active" href="/">
<img src="/images/okular.png" alt="Logo" />
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
{{- partial "navbar_nav.html" . -}}
</div>
{{if $.Site.Params.madeByKde}}
<a class="made-by-kde" style="padding-left: 42px;" target="_blank" href="https://kde.org">{{ i18n "Home.made-by-kde" }}</a>
{{end}}
</nav>
</header>
{{/*
SPDX-FileCopyrightText: 2021 Nguyen Hung Phu <phuhnguyen@disroot.org>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
{{- 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 if eq .Params.layout "framework" }}
{{- $version := .File.TranslationBaseName }}
{{- $major := index (split $version ".") 0 | int }}
{{- $minor := index (split $version ".") 1 | int }}
{{- $msgName := "" }}
{{- if and (eq $major 5) (lt $minor 76) }}
{{- $msgName = "annc-frameworks-title-pre-5-76" }}
{{- else }}
{{- $msgName = "annc-frameworks-title" }}
{{- end }}
{{- replace (i18n $msgName) "%ver" $version }}
{{- else }}
{{- "" }}
{{- end }}
{{- end -}}
{{/*
SPDX-FileCopyrightText: 2021 Nguyen Hung Phu <phuhnguyen@disroot.org>
SPDX-License-Identifier: LGPL-3.0-or-later
*/}}
{{- if eq .Params.layout "plasma" }}
{{ partial "announcements/plasma_intro.html" . }}
{{ .Content }}
{{ $major := path.Base .File.Dir }}
{{ with .Params.changelog }}
<a href="/announcements/changelogs/plasma/{{$major}}/{{ . }}">{{ i18n "view-changelog" }}</a>
{{ end }}
{{- else if eq .Params.layout "framework" }}
{{ partial "announcements/frameworks_intro.html" . }}
{{ .Content }}
{{- else }}
{{ .Content }}
{{- end -}}
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#54a3d8</TileColor>
</tile>
</msapplication>
</browserconfig>
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="150.000000pt" height="150.000000pt" viewBox="0 0 150.000000 150.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,150.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M707 1371 c-77 -16 -78 -16 -109 -66 -112 -179 -152 -452 -85 -581
49 -97 118 -145 236 -169 36 -7 57 -14 46 -15 -11 0 -33 -7 -50 -14 l-30 -14
44 2 c96 3 30 -42 -88 -60 -51 -8 -50 4 3 38 l31 20 -30 -8 c-16 -4 -42 -8
-57 -8 -32 -1 -35 -8 -13 -26 8 -7 15 -16 15 -20 0 -4 -62 -19 -137 -35 -163
-33 -177 -38 -163 -64 8 -16 15 -18 47 -10 60 14 60 11 -3 -32 -32 -23 -81
-60 -107 -82 -43 -36 -51 -39 -73 -28 -14 6 -33 24 -42 41 -15 27 -32 39 -32
24 0 -17 43 -74 60 -79 28 -9 26 -15 -25 -65 -50 -49 -53 -59 -27 -83 17 -15
22 -12 91 54 70 69 74 71 117 67 24 -2 45 -1 46 2 2 3 30 14 63 24 33 10 78
28 101 41 55 32 114 99 114 130 0 28 15 36 114 62 l58 15 32 -30 c70 -67 214
-68 364 -1 48 20 106 18 115 -5 3 -7 8 -42 12 -78 l7 -65 -91 -28 c-50 -16
-90 -30 -88 -32 7 -6 180 36 190 46 7 7 7 29 -1 71 -15 82 -11 90 38 78 49
-13 70 -5 70 25 0 20 -9 26 -62 44 -44 14 -62 24 -59 34 3 8 7 38 9 67 3 46 7
55 29 63 29 11 28 42 -2 46 -17 2 -17 2 -3 -5 11 -4 14 -12 9 -20 -10 -17 -44
-4 -37 14 3 8 -1 14 -8 14 -7 0 -19 7 -26 15 -7 8 -25 15 -40 15 -35 0 -43 9
-27 29 11 13 11 29 -3 96 l-16 80 -24 -45 c-12 -25 -42 -70 -66 -101 -39 -51
-48 -57 -108 -73 -36 -10 -89 -33 -118 -52 -62 -39 -111 -44 -173 -15 -50 23
-68 43 -96 106 -55 123 3 437 111 609 17 27 30 49 28 50 -2 2 -38 -5 -81 -13z
m593 -694 c14 -7 25 -19 25 -27 0 -8 -11 -17 -25 -21 -20 -6 -21 -7 -5 -8 17
-1 18 -3 5 -12 -12 -8 -9 -9 12 -5 33 8 39 0 28 -44 -4 -19 -9 -28 -10 -20 -2
8 -6 -1 -9 -20 -4 -20 -12 -34 -19 -32 -50 10 -157 22 -207 22 l-60 1 40 16
c43 17 95 51 63 40 -12 -4 -18 -1 -18 8 0 8 -4 15 -8 15 -4 0 -68 -20 -142
-45 -74 -25 -135 -45 -137 -45 -2 0 -3 11 -3 24 0 21 5 24 58 30 110 13 234
60 302 115 29 23 73 27 110 8z m-255 -13 c-44 -34 -155 -76 -155 -59 0 11 139
73 165 74 6 0 1 -7 -10 -15z m160 -232 c29 -8 28 -9 -40 -32 -49 -17 -92 -24
-145 -24 -76 0 -141 6 -135 13 2 2 -3 10 -11 18 -18 19 -15 23 28 34 40 10
261 4 303 -9z m-572 -82 c3 -13 1 -18 -6 -13 -7 4 -8 0 -3 -13 4 -10 4 -16 1
-13 -3 3 -22 -10 -43 -29 -64 -61 -194 -110 -213 -81 -5 8 -9 17 -9 22 0 17
222 142 261 146 4 1 9 -8 12 -19z m-279 -155 c4 -11 -2 -15 -22 -15 -26 1 -26
1 -8 15 24 18 23 18 30 0z"/>
<path d="M1198 603 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z"/>
<path d="M1146 591 c-4 -5 3 -7 14 -4 23 6 26 13 6 13 -8 0 -17 -4 -20 -9z"/>
<path d="M400 513 c-42 -7 -132 -34 -128 -38 2 -2 26 2 53 10 26 8 62 15 79
15 17 0 38 5 46 10 12 8 11 9 -5 8 -11 0 -31 -3 -45 -5z"/>
<path d="M224 454 c-18 -14 -18 -14 6 -3 31 14 36 19 24 19 -6 0 -19 -7 -30
-16z"/>
<path d="M152 409 c-42 -31 -77 -81 -65 -92 10 -10 23 3 23 23 0 10 21 37 47
59 57 49 54 53 -5 10z"/>
<path d="M50 310 c-9 -6 -10 -10 -3 -10 6 0 15 5 18 10 8 12 4 12 -15 0z"/>
<path d="M92 303 c-6 -2 -9 -9 -6 -15 4 -6 -1 -8 -14 -4 -22 7 -40 -9 -19 -17
17 -7 82 16 80 28 -2 12 -23 16 -41 8z"/>
</g>
</svg>
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-144x144.png",
"sizes": "144x144",
"type": "image/png"
}
],
"theme_color": "#54a3d8",
"background_color": "#54a3d8",
"display": "standalone"
}
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