Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpavel <pavel.post@deutschebahn.com>2020-04-08 23:48:38 +0300
committerpavel <pavel.post@deutschebahn.com>2020-04-08 23:48:38 +0300
commitff10f02d955de4beac261347b021ceb542593d09 (patch)
tree9a95cb16e0c1d535df6bd31844234b948b6a6cbe
parent328762da566636d17d49c80f745440321c3e2271 (diff)
initial commit
-rw-r--r--LICENSE.md4
-rw-r--r--README.md174
-rw-r--r--archetypes/default.md3
-rw-r--r--archetypes/micro.md8
-rw-r--r--archetypes/page.md6
-rw-r--r--data/monate.yaml12
-rw-r--r--data/theme.toml2
-rw-r--r--exampleSite/config.toml76
-rw-r--r--exampleSite/content/about.md1
-rw-r--r--exampleSite/content/creating-a-new-theme.md (renamed from exampleSite/content/post/creating-a-new-theme.md)3
-rw-r--r--exampleSite/content/goisforlovers.md (renamed from exampleSite/content/post/goisforlovers.md)3
-rw-r--r--exampleSite/content/hugoisforlovers.md (renamed from exampleSite/content/post/hugoisforlovers.md)3
-rw-r--r--exampleSite/content/markdown-syntax.md148
-rw-r--r--exampleSite/content/migrate-from-jekyll.md (renamed from exampleSite/content/post/migrate-from-jekyll.md)3
-rw-r--r--exampleSite/content/placeholder-text.md59
-rw-r--r--i18n/de.toml20
-rw-r--r--i18n/en.toml20
-rw-r--r--images/screenshot.pngbin137299 -> 0 bytes
-rw-r--r--images/tn.pngbin69111 -> 0 bytes
-rw-r--r--layouts/404.html13
-rw-r--r--layouts/_default/index.rss.xml2
-rw-r--r--layouts/_default/list.html113
-rw-r--r--layouts/_default/single.html40
-rw-r--r--layouts/index.html31
-rw-r--r--layouts/partials/adsense.html18
-rw-r--r--layouts/partials/analytics/fathom.html12
-rw-r--r--layouts/partials/analytics/matomo.html15
-rw-r--r--layouts/partials/article.html29
-rw-r--r--layouts/partials/data/description11
-rw-r--r--layouts/partials/data/title19
-rw-r--r--layouts/partials/disqus.html35
-rw-r--r--layouts/partials/footer.html15
-rw-r--r--layouts/partials/header.html60
-rw-r--r--layouts/partials/nav.html9
-rw-r--r--layouts/partials/page-navigation.html (renamed from layouts/partials/pager.html)4
-rw-r--r--layouts/partials/page.html7
-rw-r--r--layouts/partials/related.html7
-rw-r--r--layouts/partials/social/opengraph.html80
-rw-r--r--layouts/partials/social/twitter.html7
-rw-r--r--layouts/partials/svg/icons.html6
-rw-r--r--layouts/partials/taxonomies_count.html13
-rw-r--r--layouts/taxonomy/tag.html2
-rw-r--r--static/css/custom.css11
-rw-r--r--static/css/style.css34
-rw-r--r--static/js/copycode.js43
-rw-r--r--static/js/navicon-shift.js24
-rw-r--r--theme.toml24
47 files changed, 611 insertions, 618 deletions
diff --git a/LICENSE.md b/LICENSE.md
index 9754fd3..c210472 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -1,8 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2017 Emir Ribic
-
-Copyright (c) 2016 Asuka Suzuki
+Copyright (c) 2020 Pavel Pi
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
diff --git a/README.md b/README.md
index 6e26e05..0d94413 100644
--- a/README.md
+++ b/README.md
@@ -1,111 +1,15 @@
-# Kiss
+# Kiss'Em
-![](https://www.ribice.ba/img/2/hugo-kiss.png)
+Kiss'Em is a fork of the [Kiss](https://github.com/ribice/kiss) Hugo theme. It is **E**ven **M**ore simple (hence the name Kiss'**Em**), because I stripped all JavaScript and removed any analytics/social integration. At least, I hope I did...
-Kiss is a stupidly simple blog theme for Hugo. It's a fork of [Hemingway theme](https://github.com/tanksuzuki/hemingway) - [read why](https://www.ribice.ba/hugo-kiss/).
+I use it for my own blog, which can be found [here](https://blog.pavel-pi.de "Pi's Blog").
-![](https://github.com/ribice/kiss/blob/master/images/screenshot.png)
+## Translation
-## Getting Started
-
-Clone this repository to your hugo theme directory.
-
-```bash
-mkdir themes
-cd themes
-git clone https://github.com/ribice/kiss.git
-```
+Right now, the theme supports the two languages English and German, which can be set with the `defaultContentLanguage` parameter within the `config.toml` file.
## Site Configuration
-Take a look in the [exampleSite](https://github.com/ribice/kiss/tree/master/exampleSite) folder.
-
-This directory contains an example config file and the content for the demo.
-It serves as an example setup for your documentation.
-
-Copy the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
-
-__[config.toml](https://github.com/ribice/kiss/blob/master/exampleSite/config.toml)__:
-
-```toml
-baseurl = "https://example.com"
-languageCode = "en"
-title = "Hugo Kiss theme"
-theme = "kiss"
-copyright = "&copy; <a href=\"https://github.com/ribice\">Emir Ribic</a> 2017"
-disqusShortname = "shortname"
-googleAnalytics = ""
-Paginate = 5 # Number of posts per page
-enableRobotsTXT = true
-
-[params.rss] # Adding this tag enables RSS feed
-includeContent = true # Includes whole content in rss
-authorName = "Emir Ribic" # Author full name
-authorEmail = "ribice@gmail.com" # Author email
-
-[params.assets]
-customCSS = ["css/custom.css"]
-
-[params.info]
-adsense = "" # Adsense ID (ID only, without ca-pub-)
-enableSocial = true # Adds OpenGraph and Twitter cards
-homeTitle = "" # Title for home page
-poweredby = true # Adds powered by hugo and kiss below Copyright
-related = true # Includes related articles at the bottom of the article
-codeCopy = true # Add copy button above code blocks
-taxonomiesCount = true # Add taxonomies count
-
-[params.features]
-disqusOnDemand = true # Load Disqus comments on click
-
-
-[params.opengraph.facebook]
-admins = [] # array of Facebook IDs
-appID = ""
-pageID = ""
-
-[params.opengraph.twitter]
-page = "" # Twitter Page username. If not set, params.social.twitter will be used.
-
-[params.social]
-twitter = "ribicemir"
-github = "ribice"
-email = "ribice@gmail.com"
-linkedin = "ribice"
-facebook = "ribice"
-instagram = ""
-codepen = ""
-rss = "index.xml" # Add this to show RSS button in social.
-
-[params.social.config]
-platforms = ["github","facebook","twitter","instagram","email","codepen","linkedin"]
-
-[params.matomoAnalytics]
-siteID = 1
-rootURL = "//matomo.example.com/"
-
-[params.fathomAnalytics]
-rootURL = "//fathom.example.com/"
-
-[taxonomies]
-tag ="tags"
-
-[blackfriday]
-hrefTargetBlank = true
-```
-
-To change color of titles, add in static/css/custom.css
-
-```css
-.content h1,
-.content h2,
-.content h3,
-.content h4,
-.content h5,
-.content h6 {
- color: #F52AA3; // Custom Color
-}
-```
To align images, add #c for center, #r/l for right/left.
@@ -124,36 +28,6 @@ platforms = ["github","facebook","twitter","instagram","email","codepen","linked
The social menu icons will appear in the order you specify in the `platforms` array.
-## Add sections
-Links can be added to the navbar (below the blog name and social links).
-There are two positions:
-
-- `[params.sections_left]` that will add links in the left side (under the blog title)
-- `[params.sections_right]` that will add links in the right side (under the social links)
-
-```toml
-[params.sections_left]
-"/special-page" = "Special page"
-"https://example.com" = "Example"
-
-[params.sections_right]
-"http://example.com/special-page" = "Example"
-```
-
-## Favicons, Browserconfig, Manifest
-
-It is recommended to put your own favicons
-
-- `apple-touch-icon.png` (180x180)
-- `favicon-32x32.png` (32x32)
-- `favicon-16x16.png` (16x16)
-- `mstile-150x150.png` (150x150)
-- `android-chrome-192x192.png` (192x192)
-- `android-chrome-512x512.png` (512x512)
-
-in `/static` directory. They're easily created via [Favicon Generator](https://realfavicongenerator.net/).
-
-Customize `browserconfig.xml` and `site.webmanifest` to set `theme-color` and `background-color` for example.
## Related Articles
@@ -162,44 +36,36 @@ By default up to 5 articles will be shown (can be changed by cloning related.htm
To change the behaviour of how related articles are generated, check [official docs on Related Content](https://gohugo.io/content-management/related/).
-## Disqus Comments
+## Creating Articles
-Hugo has a built-in support for [Disqus comments](https://gohugo.io/content-management/comments/#configure-disqus).
-In order to speed up your site full loading time you could load comments only after visitor
-requests them via clicking on the "Show comments" button. Use the following in the configuration to enable
-on demand loading:
+There are three types of posts:
+* blog posts (type: `article`)
+* microblog posts (type: `micro`)
+* info pages such as *about* (type: `page`)
-```toml
-[params.features]
-disqusOnDemand = true
+Per default, new posts will be of type `article`:
+
+```
+$ hugo new my-first-post.md
```
-## Single Page Configuration
+In order to create a new post for the microblog you will need to specify the `micro` type:
```
-tags: ["Android", "Apple", "iPhone"] # Adds tags to the post
-image: https://example.com/img/1/image.jpg # Cover used for OpenGraph and Twitter Cards
-adsenseTop: true # If adsense property is set (params.info.adsense) include an ad above content
-adsenseBottom: true # If adsense property is set (params.info.adsense) include an ad below content
-hidden: true # If true, page will not be shown in the list view
+$ hugo new -k micro my-first-microblog-post.md
```
-## Build
+In order to create a new info page:
```
-hugo server
+$ hugo new -k page about.md
```
-You can go to localhost:1313 and this theme should be visible.
-
## License
-Kiss is licensed under the MIT license. Check the [LICENSE](LICENSE.md) file for details.
-
-The following resources are included in the theme:
+Kiss'Em is licensed under the MIT license. Check the [LICENSE](LICENSE.md) file for details.
-- [Feather](https://feather.netlify.com/) by Cole Bemis - Licensed under the [MIT License](https://github.com/colebemis/feather/blob/master/LICENSE).
## Author
-[Emir Ribic](https://github.com/ribice)
+[Pavel Pi](https://blog.pavel-pi.de) \ No newline at end of file
diff --git a/archetypes/default.md b/archetypes/default.md
index 17a3207..1305ef1 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -2,4 +2,7 @@
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
+type: article
---
+
+Default \ No newline at end of file
diff --git a/archetypes/micro.md b/archetypes/micro.md
new file mode 100644
index 0000000..b48618f
--- /dev/null
+++ b/archetypes/micro.md
@@ -0,0 +1,8 @@
+---
+title: "{{ replace .TranslationBaseName "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+type: micro
+---
+
+Micro \ No newline at end of file
diff --git a/archetypes/page.md b/archetypes/page.md
new file mode 100644
index 0000000..c728497
--- /dev/null
+++ b/archetypes/page.md
@@ -0,0 +1,6 @@
+---
+title: "{{ replace .TranslationBaseName "-" " " | title }}"
+type: page
+---
+
+Page \ No newline at end of file
diff --git a/data/monate.yaml b/data/monate.yaml
new file mode 100644
index 0000000..b8254a2
--- /dev/null
+++ b/data/monate.yaml
@@ -0,0 +1,12 @@
+1: "Januar"
+2: "Februar"
+3: "März"
+4: "April"
+5: "Mai"
+6: "Juni"
+7: "Juli"
+8: "August"
+9: "September"
+10: "Oktober"
+11: "November"
+12: "Dezember" \ No newline at end of file
diff --git a/data/theme.toml b/data/theme.toml
index 5dfa14d..5b616c1 100644
--- a/data/theme.toml
+++ b/data/theme.toml
@@ -1,3 +1,4 @@
+# Put the URLs for the Icons here
[social.base]
codepen = 'https://codepen.io/'
email = 'mailto:'
@@ -8,5 +9,6 @@ linkedin = 'https://linkedin.com/in/'
twitter = 'https://twitter.com/'
youtube = 'https://youtube.com/user/'
gitlab = 'https://gitlab.com/'
+xing = 'https://www.xing.com/profile/'
rss = '/'
about = '/' \ No newline at end of file
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 178b63e..a8331c3 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,64 +1,48 @@
baseurl = "https://example.com"
languageCode = "en"
-title = "Hugo Kiss theme"
-theme = "kiss"
-copyright = "&copy; <a href=\"https://github.com/ribice\">Emir Ribic</a> 2017"
-disqusShortname = "shortname"
-googleAnalytics = ""
+theme = "kiss-em"
Paginate = 5 # Number of posts per page
enableRobotsTXT = true
+defaultContentLanguage = "en"
-[params.rss] # Adding this tag enables RSS feed
-includeContent = true # Includes whole content in rss
-authorName = "Emir Ribic" # Author full name
-authorEmail = "ribice@gmail.com" # Author email
+[languages]
+ [languages.de]
+ title = "Das ist Kiss'Em!"
+ weight = 2
+ [languages.en]
+ title = "Kiss'Em!"
+ weight = 1
+
+[params.microblog]
+enable = true
+number = 2
[params.assets]
customCSS = ["css/custom.css"]
-[params.info]
-adsense = "" # Adsense ID (ID only, without ca-pub-)
-enableSocial = true # Adds OpenGraph and Twitter cards
-homeTitle = "" # Title for home page
-poweredby = true # Adds powered by hugo and kiss below Copyright
-related = true # Includes related articles at the bottom of the article
-codeCopy = true # Add copy button above code blocks
-taxonomiesCount = true # Add taxonomies count
-
-[params.features]
-disqusOnDemand = true # Load Disqus comments on click
-
-
-[params.opengraph.facebook]
-admins = [] # array of Facebook IDs
-appID = ""
-pageID = ""
+[params.rss]
+enable = true
+includeContent = true
+authorName = "Pavel Pi"
+authorEmail = "info@pavel-pi.de"
-[params.opengraph.twitter]
-page = "" # Twitter Page username. If not set, params.social.twitter will be used.
+[params.info]
+poweredby = true
+related = true
+copyright = "© <a href=\"https://github.com/pavel-pi\">Pavel Pi</a> 2020"
[params.social]
-twitter = "ribicemir"
-github = "ribice"
-email = "ribice@gmail.com"
-linkedin = "ribice"
-facebook = "ribice"
-instagram = ""
-codepen = ""
-rss = "index.xml" # Add this to show RSS button in social.
+about = "about"
+twitter = "@_pavel_pi_"
+github = "pavel-pi"
+email = "info@pavel-pi.de"
+rss = "index.xml"
+# Define the order of the icons:
[params.social.config]
-platforms = ["github","facebook","twitter","instagram","email","codepen","linkedin"]
-
-[params.matomoAnalytics]
-siteID = 1
-rootURL = "//matomo.example.com/"
-
-[params.fathomAnalytics]
-rootURL = "//fathom.example.com/"
+platforms = ["about", "email", "github", "twitter", "xing", "rss"]
[taxonomies]
tag ="tags"
-[blackfriday]
-hrefTargetBlank = true \ No newline at end of file
+
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index 47f9698..a048a9a 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -2,6 +2,7 @@
title = "About Hugo"
date = "2014-04-09"
menu = "main"
+type = "page"
+++
Hugo is a static site engine written in Go.
diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/creating-a-new-theme.md
index b18f812..896aabf 100644
--- a/exampleSite/content/post/creating-a-new-theme.md
+++ b/exampleSite/content/creating-a-new-theme.md
@@ -1,6 +1,6 @@
---
author: "Michael Henderson"
-date: 2014-09-28
+date: 2014-09-28T13:22:19+02:00
linktitle: Creating a New Theme
menu:
main:
@@ -9,6 +9,7 @@ next: /tutorials/github-pages-blog
prev: /tutorials/automated-deployments
title: Creating a New Theme
weight: 10
+type: article
---
diff --git a/exampleSite/content/post/goisforlovers.md b/exampleSite/content/goisforlovers.md
index 103d282..9bf74cf 100644
--- a/exampleSite/content/post/goisforlovers.md
+++ b/exampleSite/content/goisforlovers.md
@@ -8,12 +8,13 @@ tags = [
"themes",
"development",
]
-date = "2014-04-02"
+date = "2014-04-02T15:12:02+02:00"
categories = [
"Development",
"golang",
]
menu = "main"
+type = "article"
+++
Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for
diff --git a/exampleSite/content/post/hugoisforlovers.md b/exampleSite/content/hugoisforlovers.md
index f84224a..f426cb5 100644
--- a/exampleSite/content/post/hugoisforlovers.md
+++ b/exampleSite/content/hugoisforlovers.md
@@ -7,12 +7,13 @@ tags = [
"hugo",
"development",
]
-date = "2014-04-02"
+date = "2014-04-02T22:06:23+02:00"
categories = [
"Development",
"golang",
]
menu = "main"
+type = "article"
+++
## Step 1. Install Hugo
diff --git a/exampleSite/content/markdown-syntax.md b/exampleSite/content/markdown-syntax.md
new file mode 100644
index 0000000..9db19e0
--- /dev/null
+++ b/exampleSite/content/markdown-syntax.md
@@ -0,0 +1,148 @@
++++
+author = "Hugo Authors"
+title = "Markdown Syntax Guide"
+date = "2019-03-11T10:48:01"
+description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
+tags = [
+ "markdown",
+ "css",
+ "html",
+ "themes",
+]
+categories = [
+ "themes",
+ "syntax",
+]
+series = ["Themes Guide"]
+aliases = ["migrate-from-jekyl"]
+type = "micro"
++++
+
+This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
+<!--more-->
+
+## Headings
+
+The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
+
+# H1
+## H2
+### H3
+#### H4
+##### H5
+###### H6
+
+## Paragraph
+
+Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
+
+Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
+
+## Blockquotes
+
+The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
+
+#### Blockquote without attribution
+
+> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
+> **Note** that you can use *Markdown syntax* within a blockquote.
+
+#### Blockquote with attribution
+
+> Don't communicate by sharing memory, share memory by communicating.</p>
+> — <cite>Rob Pike[^1]</cite>
+
+
+[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
+
+## Tables
+
+Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
+
+ Name | Age
+--------|------
+ Bob | 27
+ Alice | 23
+
+#### Inline Markdown within tables
+
+| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
+| ---------- | --------- | ----------------- | ---------- |
+| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | `code` |
+
+## Code Blocks
+
+#### Code block with backticks
+
+```
+html
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+```
+#### Code block indented with four spaces
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+ </head>
+ <body>
+ <p>Test</p>
+ </body>
+ </html>
+
+#### Code block with Hugo's internal highlight shortcode
+{{< highlight html >}}
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+{{< /highlight >}}
+
+## List Types
+
+#### Ordered List
+
+1. First item
+2. Second item
+3. Third item
+
+#### Unordered List
+
+* List item
+* Another item
+* And another item
+
+#### Nested list
+
+* Item
+1. First Sub-item
+2. Second Sub-item
+
+## Other Elements — abbr, sub, sup, kbd, mark
+
+<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
+
+H<sub>2</sub>O
+
+X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
+
+Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
+
+Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
+
diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/migrate-from-jekyll.md
index 75f9558..fc1fed5 100644
--- a/exampleSite/content/post/migrate-from-jekyll.md
+++ b/exampleSite/content/migrate-from-jekyll.md
@@ -1,5 +1,5 @@
---
-date: 2014-03-10
+date: 2019-03-10T19:56:53+02:00
linktitle: Migrating from Jekyll
menu:
main:
@@ -7,6 +7,7 @@ menu:
prev: /tutorials/mathjax
title: Migrate to Hugo from Jekyll
weight: 10
+type: article
---
## Move static content to `static`
diff --git a/exampleSite/content/placeholder-text.md b/exampleSite/content/placeholder-text.md
new file mode 100644
index 0000000..65b9b3f
--- /dev/null
+++ b/exampleSite/content/placeholder-text.md
@@ -0,0 +1,59 @@
++++
+author = "Hugo Authors"
+title = "Placeholder Text"
+date = "2019-01-09T20:24:11"
+description = "Lorem Ipsum Dolor Si Amet"
+tags = [
+ "markdown",
+ "text",
+]
+type = "micro"
++++
+
+Lorem est tota propiore conpellat pectoribus de
+pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice
+subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc
+caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis
+lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
+
+1. Exierant elisi ambit vivere dedere
+2. Duce pollice
+3. Eris modo
+4. Spargitque ferrea quos palude
+
+Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus
+silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria
+tractus malis.
+
+1. Comas hunc haec pietate fetum procerum dixit
+2. Post torum vates letum Tiresia
+3. Flumen querellas
+4. Arcanaque montibus omnes
+5. Quidem et
+
+# Vagus elidunt
+
+<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
+
+[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
+
+## Mane refeci capiebant unda mulcebat
+
+Victa caducifer, malo vulnere contra
+dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere
+furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
+
+Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli
+Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare
+Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert
+ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae
+vulnus haerentia iuste et exercebat, sui et.
+
+Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem
+Propoetides **parte**.
+
+{{< css.inline >}}
+<style>
+.canon { background: white; width: 100%; height: auto;}
+</style>
+{{< /css.inline >}}
diff --git a/i18n/de.toml b/i18n/de.toml
new file mode 100644
index 0000000..df27bac
--- /dev/null
+++ b/i18n/de.toml
@@ -0,0 +1,20 @@
+[home]
+other = "Home"
+
+[blog_title]
+other = "Aktuelle Beiträge"
+
+[microblog_title]
+other = "Microblog"
+
+[read_more]
+other = "Weiterlesen"
+
+[similar_articles]
+other = "Ähnliche Beiträge"
+
+[prev_page]
+other = "Ältere Beiträge"
+
+[next_page]
+other = "Neuere Beiträge" \ No newline at end of file
diff --git a/i18n/en.toml b/i18n/en.toml
new file mode 100644
index 0000000..addd9d4
--- /dev/null
+++ b/i18n/en.toml
@@ -0,0 +1,20 @@
+[home]
+other = "Home"
+
+[blog_title]
+other = "Blog"
+
+[microblog_title]
+other = "Microblog"
+
+[read_more]
+other = "Read more"
+
+[similar_articles]
+other = "Similar articles"
+
+[prev_page]
+other = "Older"
+
+[next_page]
+other = "Newer" \ No newline at end of file
diff --git a/images/screenshot.png b/images/screenshot.png
deleted file mode 100644
index b9d73e1..0000000
--- a/images/screenshot.png
+++ /dev/null
Binary files differ
diff --git a/images/tn.png b/images/tn.png
deleted file mode 100644
index 6e39efd..0000000
--- a/images/tn.png
+++ /dev/null
Binary files differ
diff --git a/layouts/404.html b/layouts/404.html
deleted file mode 100644
index 8c8881d..0000000
--- a/layouts/404.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{ partial "header" . }}
-<section class="hero is-fullheight">
- <div class="hero-body">
- <div class="container has-text-centered">
- <h1 class="title notfound">404</h1>
- <h2 class="subtitle is-4">
- Page not found
- </h2>
- <a class="button" href="{{ .Site.BaseURL }}">Home Page</a>
- </div>
- </div>
-</section>
-{{ partial "footer" . }} \ No newline at end of file
diff --git a/layouts/_default/index.rss.xml b/layouts/_default/index.rss.xml
index 3911b68..a4d5de4 100644
--- a/layouts/_default/index.rss.xml
+++ b/layouts/_default/index.rss.xml
@@ -6,7 +6,7 @@
<generator>Hugo - gohugo.io</generator>
<language>{{ .Site.Language }}</language>
<contact>{{ $.Site.Params.rss.authorEmail }}</contact>
- <copyright>{{ .Site.Copyright | safeHTML}}</copyright>
+ <copyright>{{ .Site.Params.Info.Copyright | safeHTML}}</copyright>
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 6c2402f..8755d08 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1 +1,112 @@
-{{ template "index.html" . }}
+<!-- Header -->
+{{ partial "header" . }}
+
+<!-- Navigation -->
+{{ partial "nav" . }}
+
+
+<!-- Microblog Area -->
+{{ if .Site.Params.microblog.enable }}
+<section class="section-highlight">
+
+ <div class ="container">
+
+ <h2 class="areatitle">{{ i18n "microblog_title" }}</h2>
+
+ <!-- show "number" of latest "micro" type articles -->
+ {{ range first .Site.Params.microblog.number (where .Data.Pages.ByDate.Reverse "Type" "micro") }}
+
+ <!-- Article Tags -->
+ <div class="subtitle tags is-6 is-pulled-right">
+ {{ if .Params.tags }}
+ {{ partial "tags" .Params.tags }}
+ {{ end }}
+ </div>
+
+ <!-- Date above Article Title-->
+ {{if not .Date.IsZero }}
+ <h2 class="subtitle is-6">
+ <!-- Consider german month names -->
+ {{if eq .Site.Language.Lang "de" }}
+ {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }}
+ {{ else }}
+ {{ .Date.Format "January 2, 2006 | 15:04" }}
+ {{ end }}
+ </h2>
+ {{ end }}
+
+ <!-- Article Title -->
+ <h1 class="title">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </h1>
+
+ <!-- End loop -->
+ {{ end }}
+
+ </div>
+</section>
+{{ end }}
+
+<!-- Blog Area -->
+<section class="section">
+
+ <div class="container">
+
+ <h2 class="areatitle">{{ i18n "blog_title" }}</h2>
+ <!--<h2 class="areatitle">AKTUELLE BEITRÄGE</h2>-->
+
+ <!-- Loop through all posts filtered by type "article" -->
+ {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "article") }}
+ {{ range .Paginator.Pages }}
+
+ <article>
+
+ <!-- Article Tags -->
+ <div class="subtitle tags is-6 is-pulled-right">
+ {{ if .Params.tags }}
+ {{ partial "tags" .Params.tags }}
+ {{ end }}
+ </div>
+
+ <!-- Date above Article Title-->
+ {{if not .Date.IsZero }}
+ <h2 class="subtitle is-6">
+ <!-- Consider german month names -->
+ {{if eq .Site.Params.defaultContentLanguage "de" }}
+ {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }}
+ {{ else }}
+ {{ .Date.Format "January 2, 2006 | 15:04" }}
+ {{ end }}
+ </h2>
+ {{ end }}
+
+
+ <!-- Article Title -->
+ <h1 class="title">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </h1>
+
+ <div class="content">
+
+ <!-- Article Summary -->
+ {{ .Summary | plainify | safeHTML }}
+
+ <!-- "Read More" Button-->
+ <a class="button is-link" href="{{ .Permalink }}" style="height:28px">{{ i18n "read_more" }}</a>
+
+ </div>
+
+ </article>
+
+ <!-- End loop -->
+ {{ end }}
+
+ </div>
+</section>
+
+
+<!-- "Older Posts" / "Newer Posts" Buttons -->
+{{ partial "page-navigation" . }}
+
+<!-- Footer -->
+{{ partial "footer" . }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index d6fb577..e469b5b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,30 +1,22 @@
+<!-- Header -->
{{ partial "header" . }}
+
+<!-- Navigation -->
{{ partial "nav" . }}
+
<section class="section">
- <div class="container">
- <div class="subtitle tags is-6 is-pulled-right">
- {{ if .Params.tags }}
- {{ partial "tags" .Params.tags }}
- {{ end }}
+
+ <div class="container">
+
+ {{ if eq .Type "page" }}
+ {{ partial "page" . }}
+ {{ else }}
+ {{ partial "article" . }}
+ {{ end }}
+
</div>
- {{if not .Date.IsZero }}<h2 class="subtitle is-6">{{ .Date.Format "January 2, 2006" }}</h2>{{ end }}
- <h1 class="title">{{ .Title }}</h1>
- {{ if and (.Site.Params.Info.adsense) (.Params.adsenseTop) }}
- {{ partial "adsense" . }}
- {{ end }}
- <div class="content">
- {{ .Content }}
- {{ if .Site.Params.Info.related }}
- <div class="related">{{ partial "related" . }}</div>
- {{ end }}
- </div>
- {{ if and (.Site.Params.Info.adsense) (.Params.adsenseBottom) }}
- {{ partial "adsense" . }}
- {{ end}}
- </div>
+
</section>
-{{ if (and (.Site.Params.Info.codeCopy) (findRE "<pre" .Content 1)) }}
- <script src="/js/copycode.js"></script>
-{{ end }}
-{{ partial "disqus" . }}
+
+<!-- Footer -->
{{ partial "footer" . }}
diff --git a/layouts/index.html b/layouts/index.html
deleted file mode 100644
index 526534b..0000000
--- a/layouts/index.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{{ partial "header" . }}
-{{ partial "nav" . }}
-<section class="section">
- <div class="container">
- {{- $pctx := . -}}
- {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
- {{- $pages := $pctx.RegularPages -}}
- {{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
- {{ range sort .Paginator.Pages }}
- <article>
- <div class="subtitle tags is-6 is-pulled-right">
- {{ if .Params.tags }}
- {{ partial "tags" .Params.tags }}
- {{ end }}
- </div>
- <h2 class="subtitle is-6 date">{{ .Date.Format "January 2, 2006" }}</h2>
- <h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}{{ partial "taxonomies_count" . }}</a>{{ if .Draft }} ::Draft{{ end }}</h1>
- <div class="content">
- {{ .Summary | plainify | safeHTML }}
- {{ if .Truncated }}
- <a class="button is-link" href="{{ .Permalink }}" style="height:28px">
- Read more
- </a>
- {{ end }}
- </div>
- </article>
- {{ end }}
- </div>
-</section>
-{{ partial "pager" . }}
-{{ partial "footer" . }} \ No newline at end of file
diff --git a/layouts/partials/adsense.html b/layouts/partials/adsense.html
deleted file mode 100644
index ca37e25..0000000
--- a/layouts/partials/adsense.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }}
-<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
-<ins class="adsbygoogle"
- style="display:block; text-align:center;"
- data-ad-format="fluid"
- data-ad-layout="in-article"
- data-ad-client="ca-pub-{{.Site.Params.Info.adsense}}"
- data-ad-slot="6857547199"></ins>
-<script>
- (adsbygoogle = window.adsbygoogle || []).push({});
-</script>
-{{ else }}
-<div class="row">
-<div class="col-md-11 col-md-offset-1 card">
-<p>Adsense is unavailable while serving on localhost or 127.0.0.1</p>
-</div>
-</div>
-{{ end }} \ No newline at end of file
diff --git a/layouts/partials/analytics/fathom.html b/layouts/partials/analytics/fathom.html
deleted file mode 100644
index 7191265..0000000
--- a/layouts/partials/analytics/fathom.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<script>
- (function(f, a, t, h, o, m){
- a[h]=a[h]||function(){
- (a[h].q=a[h].q||[]).push(arguments)
- };
- o=f.createElement('script'),
- m=f.getElementsByTagName('script')[0];
- o.async=1; o.src=t; o.id='fathom-script';
- m.parentNode.insertBefore(o,m)
- })(document, window, '{{ .Site.Params.fathomAnalytics.rootURL }}tracker.js', 'fathom');
- fathom('trackPageview');
-</script> \ No newline at end of file
diff --git a/layouts/partials/analytics/matomo.html b/layouts/partials/analytics/matomo.html
deleted file mode 100644
index 2ddc9f3..0000000
--- a/layouts/partials/analytics/matomo.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<script type="text/javascript">
- var _paq = _paq || [];
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u="{{ .Site.Params.matomoAnalytics.rootURL }}";
- _paq.push(['setTrackerUrl', u+'piwik.php']);
- _paq.push(['setSiteId', '{{ .Site.Params.matomoAnalytics.siteID }}']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
- })();
-</script>
-<noscript>
- <img src="{{ .Site.Params.matomoAnalytics.rootURL }}piwik.php?idsite={{ .Site.Params.matomoAnalytics.siteID }}&amp;rec=1" style="border:0" alt="" />
-</noscript>
diff --git a/layouts/partials/article.html b/layouts/partials/article.html
new file mode 100644
index 0000000..a0829ed
--- /dev/null
+++ b/layouts/partials/article.html
@@ -0,0 +1,29 @@
+<!-- Article Tags -->
+<div class="subtitle tags is-6 is-pulled-right">
+ {{ if .Params.tags }}
+ {{ partial "tags" .Params.tags }}
+ {{ end }}
+</div>
+
+<!-- Date above Article Title-->
+{{if not .Date.IsZero }}
+<h2 class="subtitle is-6">
+ {{ .Date.Format "January 2, 2006" }}
+</h2>
+{{ end }}
+
+<!-- Article Title -->
+<h1 class="title">{{ .Title }}</h1>
+
+<div class="content">
+
+ <!-- Article Content -->
+ {{ .Content }}
+
+ <!-- Related Articles -->
+ {{ if .Site.Params.Info.related }}
+ <div class="related">{{ partial "related" . }}</div>
+ {{ end }}
+
+</div>
+
diff --git a/layouts/partials/data/description b/layouts/partials/data/description
deleted file mode 100644
index e3c558d..0000000
--- a/layouts/partials/data/description
+++ /dev/null
@@ -1,11 +0,0 @@
-{{- with .Description -}}
- {{- . -}}
-{{- else -}}
- {{- if .IsPage -}}
- {{- .Summary -}}
- {{- else -}}
- {{- with .Site.Params.Info.description -}}
- {{- . -}}
- {{- end -}}
- {{- end -}}
-{{- end -}}
diff --git a/layouts/partials/data/title b/layouts/partials/data/title
deleted file mode 100644
index 0af7012..0000000
--- a/layouts/partials/data/title
+++ /dev/null
@@ -1,19 +0,0 @@
-{{- $title := ( .Title ) -}}
-{{- $siteTitle := ( .Site.Title ) -}}
-{{- $sep := ( .Site.Params.SEO.titleSeparator | default "-" ) -}}
-{{- $title404 := ( $title ) -}}
-
-{{- if .IsHome -}}
- {{ $siteTitle }}
-{{- else if eq .Kind "404" -}}
- {{ $title404 }} {{ $sep }} {{ $siteTitle }}
-{{- else if eq .Kind "taxonomy" -}}
- {{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) | title -}}
- {{- print ": " -}}
- {{- $title -}}
- {{- print " " $sep " " $siteTitle -}}
-{{- else if ( or .IsNode ( eq .Section "page" ) ) -}}
- {{ $title }} {{ $sep }} {{ $siteTitle }}
-{{- else -}}
- {{ $title }} {{ $sep }} {{ $siteTitle }}
-{{- end -}}
diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html
deleted file mode 100644
index d9e3446..0000000
--- a/layouts/partials/disqus.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{{ if and (not (eq .Site.DisqusShortname "")) (not .Params.disable_comments) }}
-<section class="section">
- <div class="container">
- <aside><div id="disqus_thread"></div></aside>
- {{ if .Site.Params.Features.DisqusOnDemand }}
- <div id="show_comments"><a id="load_comments" class="button is-link">Load comments</a></div>
- {{ end }}
- <script type="text/javascript">
- var disqus_shortname = '{{ .Site.DisqusShortname }}';
- function disqus() {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- }
- {{ if .Site.Params.Features.DisqusOnDemand }}
- //Opens comments when linked to directly
- var hash = window.location.hash.substr(1);
- if ((hash.length > 8) && (hash.substring(0, 8) === "comment-")) {
- disqus();
- document.getElementById("show_comments").style.display = "none";
- } else {
- document.getElementById('load_comments').onclick = function() {
- disqus();
- document.getElementById("show_comments").style.display = "none";
- };
- }
- {{ else }}
- disqus();
- {{ end }}
-
- </script>
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
- </div>
-</section>
-{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 707adf1..60ec083 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,19 +1,12 @@
+
<section class="section">
<div class="container has-text-centered">
- <p>{{ .Site.Copyright | safeHTML }}</p>
+ <p>{{ .Site.Params.Info.Copyright | safeHTML }}</p>
{{if .Site.Params.Info.poweredby}}
- <p>Powered by <a href="https://gohugo.io/">Hugo</a> &amp; <a href="https://github.com/ribice/kiss">Kiss</a>.</p>
+ <p>Powered by <a href="https://gohugo.io/">Hugo</a> &amp; <a href="https://github.com/pavel-pi/kiss-em">Kiss'Em</a>.</p>
{{ end }}
</div>
</section>
-{{ if .Site.GoogleAnalytics }}
-{{ template "_internal/google_analytics_async.html" . }}
-{{ end }}
-{{ if .Site.Params.matomoAnalytics }}
-{{- partial "analytics/matomo" . -}}
-{{ end }}
-{{ if .Site.Params.fathomAnalytics }}
-{{- partial "analytics/fathom" . -}}
-{{ end }}
+
</body>
</html>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 8d2f3b6..135e36e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,30 +1,32 @@
-<!DOCTYPE html>
+<!doctype html>
+
<html xmlns="http://www.w3.org/1999/xhtml" {{ with .Site.LanguageCode }} lang="{{ . }}"{{ end }}>
-<head>
-<meta charset="UTF-8" />
-<meta name="viewport" content="width=device-width, initial-scale=1"/>
-{{ if eq .IsHome false }}
-<title>{{ .Title }} | {{ .Site.Title }}</title>
-{{ else }}
-<title>{{ .Site.Params.Info.homeTitle }}</title>
-{{ end }}
-{{ if .Site.Params.Info.enableSocial }}
-{{- partial "social/opengraph" . -}}
-{{ end }}
-{{ if .Site.Params.rss }}
-<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
-{{ end }}
-<link rel="stylesheet" href="{{ "css/style.css" | relURL }}"/>
-{{- range .Site.Params.Assets.customCSS -}}
-<link rel='stylesheet' href='{{ . | absURL }}'>
-{{- end -}}
-<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
-<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
-<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
-<link rel="manifest" href="/site.webmanifest">
-<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
-<link rel="canonical" href="{{ .Permalink }}">
-<meta name="msapplication-TileColor" content="#da532c">
-<meta name="theme-color" content="#ffffff">
-</head>
-<body> \ No newline at end of file
+
+ <head>
+
+ <!-- Define character set -->
+ <meta charset="UTF-8" />
+
+ <!-- Mobile optimization -->
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
+
+ <!-- Define Page title -->
+ <title>
+ {{ if .IsHome }} {{ .Site.Title }} {{ else }} {{ .Title }} {{ end }}
+ </title>
+
+ {{ if .Site.Params.rss.enable }}
+ <link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ end }}
+
+ <!-- Theme's CSS -->
+ <link rel="stylesheet" href="{{ "css/style.css" | relURL }}"/>
+
+ <!-- Custom CSS can be used to override CSS definitions -->
+ {{ range .Site.Params.Assets.customCSS }}
+ <link rel='stylesheet' href='{{ . | absURL }}'>
+ {{ end }}
+
+ </head>
+
+ <body>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 69f6f8d..6d9b1ff 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -7,12 +7,16 @@
</a>
</div>
<div class="nav-right">
+
+
<nav id="nav-items" class="nav-item level is-mobile">
{{- $social := ( .Site.Params.social ) -}}
{{- range $platform := $social.config.platforms -}}
{{- with $username := ( index $social $platform ) -}}
+
+ <!-- do not open "about" in new tab -->
<a class="level-item" aria-label="{{ $platform }}" href='{{ print ( index $.Site.Data.theme.social.base $platform ) $username }}'
- target='_blank' rel='noopener'>
+ {{ if ne $platform "about" }} target='_blank' {{ end }} rel='noopener'>
<span class="icon">
<i class>
{{- partial "svg/icons" $platform -}}
@@ -22,6 +26,8 @@
{{- end -}}
{{- end -}}
</nav>
+
+
</div>
</nav>
@@ -52,5 +58,4 @@
</nav>
</div>
- <script src="/js/navicon-shift.js"></script>
</section> \ No newline at end of file
diff --git a/layouts/partials/pager.html b/layouts/partials/page-navigation.html
index 08fe3d4..5671230 100644
--- a/layouts/partials/pager.html
+++ b/layouts/partials/page-navigation.html
@@ -8,7 +8,7 @@
<span class="icon is-small is-marginless">
{{ partial "svg/icons" "prev" }}
</span>
- Newer
+ {{ i18n "next_page" }}
</a>
{{ end }}
</div>
@@ -17,7 +17,7 @@
<div class="level-item">
{{ if .Paginator.HasNext }}
<a class="button" href="{{ .Paginator.Next.URL }}">
- Older
+ {{ i18n "prev_page" }}
<span class="icon is-small is-marginless">
{{ partial "svg/icons" "next" }}
</span>
diff --git a/layouts/partials/page.html b/layouts/partials/page.html
new file mode 100644
index 0000000..a1ea1bf
--- /dev/null
+++ b/layouts/partials/page.html
@@ -0,0 +1,7 @@
+<!-- Article Title -->
+<h1 class="title">{{ .Title }}</h1>
+
+<!-- Content -->
+<div class="content">
+ {{ .Content }}
+</div> \ No newline at end of file
diff --git a/layouts/partials/related.html b/layouts/partials/related.html
index 0748ebf..fda1889 100644
--- a/layouts/partials/related.html
+++ b/layouts/partials/related.html
@@ -1,9 +1,12 @@
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
-<h3>Similar articles:</h3>
+
+<h3>{{ i18n "similar_articles" }}</h3>
+
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
-{{ end }} \ No newline at end of file
+
+{{ end }}
diff --git a/layouts/partials/social/opengraph.html b/layouts/partials/social/opengraph.html
deleted file mode 100644
index aeba122..0000000
--- a/layouts/partials/social/opengraph.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<meta property='og:title' content='{{ partial "data/title" . }}'>
-<meta property='og:description' content='{{ partial "data/description" . }}'>
-<meta property='og:url' content='{{ .Permalink }}'>
-<meta property='og:site_name' content='{{ .Site.Title }}'>
-<meta property='og:type' content='
- {{- if .IsPage -}}
- article
- {{- else -}}
- website
- {{- end -}}
-'>
-
-{{- with .Params.image -}}
- <meta property='og:image' content='{{ . | absURL }}'>
-{{- else -}}
-{{- with .Site.Params.Social.email -}}
- <meta property='og:image' content='https://www.gravatar.com/avatar/
- {{- . | md5 -}}
- ?s=256'>
-{{- end -}}
-
-{{- with .Params.audios -}}
- {{- range first 6 . -}}
- <meta property='og:audio' content='{{ . | absURL }}'>
- {{- end -}}
-{{- end -}}
-
-{{- with .Params.videos -}}
- {{- range first 6 . -}}
- <meta property='og:video' content='{{ . | absURL }}'>
- {{- end -}}
-{{- end -}}
-
-{{- if .IsPage -}}
- {{- with .Site.Params.Social.facebook -}}
- <meta property='article:author' content='https://facebook.com/{{ . }}'>
- {{- end -}}
- {{- end -}}
-
- {{- with .Site.Params.opengraph.facebook.pageid -}}
- <meta property='article:publisher' content='{{ . }}'>
- {{- end -}}
-
- <meta property='article:section' content='{{- .Section | title -}}'>
- {{- range .Params.tags -}}
- <meta property='article:tag' content='{{ . }}'>
- {{- end -}}
-{{- end -}}
-
-{{- $dateFormat := "2006-01-02T15:04:05Z07:00" -}}
-{{- if .IsPage -}}
- {{- if not .PublishDate.IsZero -}}
- <meta property='article:published_time' content='{{ .PublishDate.Format $dateFormat }}'/>
- {{- else if not .Date.IsZero -}}
- <meta property='article:published_time' content='{{ .Date.Format $dateFormat }}'/>
- {{- end -}}
-
- {{- if not .Lastmod.IsZero -}}
- <meta property='article:modified_time' content='{{ .Lastmod.Format $dateFormat }}'/>
- {{- end -}}
-
- {{- if not .ExpiryDate.IsZero -}}
- <meta property='article:expiration_time' content='{{ .ExpiryDate.Format $dateFormat }}'/>
- {{- end -}}
-{{- else -}}
- {{- if not .Site.LastChange.IsZero -}}
- <meta property='og:updated_time' content='{{ .Site.LastChange.Format $dateFormat }}'/>
- {{- end -}}
-{{- end -}}
-
-{{- with .Site.Params.opengraph.facebook -}}
- {{- with .appid -}}
- <meta property='fb:app_id' content='{{ . }}'>
- {{- end -}}
- {{- range .admins -}}
- <meta property='fb:admins' content='{{ . }}'>
- {{- end -}}
-{{- end -}}
-
-{{- partial "social/twitter" . -}}
diff --git a/layouts/partials/social/twitter.html b/layouts/partials/social/twitter.html
deleted file mode 100644
index 08a66b2..0000000
--- a/layouts/partials/social/twitter.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<meta name='twitter:card' content='summary{{- if .Params.image -}}_large_image{{- end -}}'>
-{{- if .Site.Params.opengraph.twitter.page -}}
- <meta name='twitter:site' content='@{{- .Site.Params.opengraph.twitter.page -}}'>
-{{- else -}}
- <meta name='twitter:site' content='@{{- .Site.Params.Social.twitter -}}'>
-{{- end -}}
-<meta name='twitter:creator' content='@{{- .Site.Params.Social.twitter -}}'>
diff --git a/layouts/partials/svg/icons.html b/layouts/partials/svg/icons.html
index 32e83af..1a7a24d 100644
--- a/layouts/partials/svg/icons.html
+++ b/layouts/partials/svg/icons.html
@@ -1,12 +1,18 @@
+<!-- look out for more icons here: https://feathericons.com/ -->
+<!-- and here: https://github.com/simple-icons/simple-icons/ -->
<svg viewbox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' aria-hidden='true'>
{{ if eq "category" . }}
<path d="M22,19a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V5A2,2,0,0,1,4,3H9l2,3h9a2,2,0,0,1,2,2Z"/>
+ {{ else if eq "android" . }}
+ <path d="M22.146 9.227c0-.815-.658-1.478-1.476-1.478s-1.48.66-1.48 1.48v6.19c0 .81.663 1.48 1.483 1.48.814 0 1.476-.67 1.476-1.48v-6.2h-.01zM5.393 8.032l.004 9.6c0 .885.704 1.59 1.573 1.59h1.063v3.28c0 .82.66 1.482 1.47 1.482s1.467-.66 1.48-1.468v-3.28h1.993v3.28c0 .823.66 1.483 1.47 1.483.823 0 1.482-.66 1.482-1.49v-3.28h1.078c.87 0 1.573-.71 1.573-1.578v-9.63L5.35 8.03l.04.002zm9.648-2.93c-.31 0-.56-.25-.56-.56 0-.305.25-.558.56-.56.31 0 .56.255.56.56 0 .31-.25.56-.56.56m-6.06 0c-.31 0-.56-.25-.56-.56 0-.307.25-.558.56-.558.31 0 .56.255.56.57s-.252.567-.57.567m6.29-2.9L16.29.33c.06-.105.014-.226-.076-.285C16.11 0 15.99.03 15.93.135l-1.05 1.9c-.868-.405-1.856-.63-2.89-.63s-2.018.215-2.892.603L8.064.105c-.053-.098-.18-.135-.278-.08-.1.045-.136.18-.08.27l1.03 1.875c-2.03 1.047-3.4 3.04-3.4 5.33h13.328c0-2.29-1.368-4.283-3.396-5.33M3.33 7.742c-.817 0-1.48.665-1.48 1.483v6.192c0 .82.664 1.48 1.484 1.48.814 0 1.477-.66 1.477-1.48v-6.19c0-.815-.66-1.478-1.47-1.478"/>
{{ else if eq "tag" . }}
<path d="M20.59,13.41l-7.17,7.17a2,2,0,0,1-2.83,0L2,12V2H12l8.59,8.59A2,2,0,0,1,20.59,13.41Z"/>
<line x1="7" y1="7" x2="7" y2="7"/>
{{ else if eq "author" . }}
<path d="M21,21V20c0-2.76-4-5-9-5s-9,2.24-9,5v1"/>
<path d="M16,6.37A4,4,0,1,1,12.63,3,4,4,0,0,1,16,6.37Z"/>
+ {{ else if eq "xing" . }}
+ <path d="M18.188 0c-.517 0-.741.325-.927.66 0 0-7.455 13.224-7.702 13.657.015.024 4.919 9.023 4.919 9.023.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22.089-.151.089-.346-.009-.536l-4.879-8.916c-.004-.006-.004-.016 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0h-3.498zM3.648 4.74c-.211 0-.385.074-.473.216-.09.149-.078.339.02.531l2.34 4.05c.004.01.004.016 0 .021L1.86 16.051c-.099.188-.093.381 0 .529.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648v.016z"/>
{{ else if eq "calendar" . }}
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
<line x1="16" y1="2" x2="16" y2="6"/>
diff --git a/layouts/partials/taxonomies_count.html b/layouts/partials/taxonomies_count.html
deleted file mode 100644
index a17590d..0000000
--- a/layouts/partials/taxonomies_count.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{if .Site.Params.Info.taxonomiesCount}}
-{{ $title := urlize .Title }}
- {{ range $taxonomy_name, $taxonomy := .Site.Taxonomies }}
- {{ if eq $.Section $taxonomy_name}}
- {{ range $key, $value := $taxonomy }}
- {{ $term := urlize $key }}
- {{ if eq $title $term }}
- ({{ $value.Count }})
- {{ end }}
- {{ end }}
- {{ end }}
- {{ end }}
-{{ end }} \ No newline at end of file
diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html
index ad006df..176e28b 100644
--- a/layouts/taxonomy/tag.html
+++ b/layouts/taxonomy/tag.html
@@ -24,5 +24,5 @@
{{ end }}
</div>
</section>
-{{ partial "pager" . }}
+{{ partial "page-navigation" . }}
{{ partial "footer" . }}
diff --git a/static/css/custom.css b/static/css/custom.css
index e69de29..02b5a28 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -0,0 +1,11 @@
+/* change highlight color here */
+.content h1,
+.content h2,
+.content h3,
+.content h4,
+.content h5,
+.content h6,
+.areatitle {
+ color: #b52323;
+}
+
diff --git a/static/css/style.css b/static/css/style.css
index 4b6072b..6632e01 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -335,6 +335,7 @@ textarea {
"Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
}
+
code,
pre {
-moz-osx-font-smoothing: auto;
@@ -2494,6 +2495,17 @@ a.box:active {
vertical-align: top;
}
+.areatitle {
+ color: #b52323;
+ font-size: 22px;
+ font-weight: 300;
+ line-height: 1.25;
+ margin-bottom: 20px;
+ text-transform: uppercase;
+
+}
+
+
.title {
color: #222324;
}
@@ -2572,7 +2584,7 @@ a.box:active {
}
.subtitle+.title {
- margin-top: -20px;
+ margin-top: -18px;
}
.subtitle.is-1 {
@@ -5040,7 +5052,6 @@ a.nav-item.is-tab.is-active {
.nav {
-ms-flex-align: stretch;
align-items: stretch;
- background-color: #fff;
display: flex;
position: relative;
z-index: 2;
@@ -6406,9 +6417,20 @@ a.panel-block:hover {
}
.section {
- background-color: #fff;
+ background-color: #F9FAFB;
+ padding: 40px 20px;
+}
+
+.section-highlight {
+ background-color: #EFF2F8;
padding: 40px 20px;
+
+
}
+.section-highlight .title{
+ font-size: 22px;
+}
+
@media screen and (min-width: 980px) {
.section.is-medium {
@@ -6620,6 +6642,10 @@ img[src$="#r"] {
margin: 0.7rem;
}
+.related {
+ margin-top: 80px;
+}
+
.related a:not(.button) {
border-bottom: none;
}
@@ -6633,7 +6659,7 @@ img[src$="#r"] {
}
div.subtitle.tags {
- margin-bottom: 0px;
+ margin: -4px 0px 0px 0px;
}
.copy-code-button {
diff --git a/static/js/copycode.js b/static/js/copycode.js
deleted file mode 100644
index 65758e7..0000000
--- a/static/js/copycode.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/* global clipboard */
-/* eslint-disable no-console */
-function addCopyButtons(clipboard) {
- document.querySelectorAll('pre > code').forEach(function (codeBlock) {
- var button = document.createElement('button');
- button.className = 'copy-code-button';
- button.type = 'button';
- button.innerText = 'Copy';
- button.addEventListener('click', function () {
- clipboard.writeText(codeBlock.innerText).then(function () {
- /* Chrome doesn't seem to blur automatically,
- leaving the button in a focused state. */
- button.blur();
- button.innerText = 'Copied!';
- setTimeout(function () {
- button.innerText = 'Copy';
- }, 2000);
- }, function (error) {
- button.innerText = 'Error';
- });
- });
- var pre = codeBlock.parentNode;
- if (pre.parentNode.classList.contains('highlight')) {
- var highlight = pre.parentNode;
- highlight.parentNode.insertBefore(button, highlight);
- } else {
- pre.parentNode.insertBefore(button, pre);
- }
- });
-}
-if (navigator && navigator.clipboard) {
- addCopyButtons(navigator.clipboard);
-} else {
- var script = document.createElement('script');
- script.src =
- 'https://cdnjs.cloudflare.com/ajax/libs/clipboard-polyfill/2.7.0/clipboard-polyfill.promise.js';
- script.integrity = 'sha256-waClS2re9NUbXRsryKoof+F9qc1gjjIhc2eT7ZbIv94=';
- script.crossOrigin = 'anonymous';
- script.onload = function () {
- addCopyButtons(clipboard);
- };
- document.body.appendChild(script);
-} \ No newline at end of file
diff --git a/static/js/navicon-shift.js b/static/js/navicon-shift.js
deleted file mode 100644
index b87ec9f..0000000
--- a/static/js/navicon-shift.js
+++ /dev/null
@@ -1,24 +0,0 @@
-const
- nameElement = document.getElementById('nav-name'),
- parentElement = document.getElementById('nav-main');
-
-let incremented = 0;
-function shiftNavIcons() {
-
- let headingElement = document.getElementById('nav-heading');
- if(nameElement.offsetWidth < (headingElement.offsetWidth+10)) {
- parentElement.classList.add('nav-shifted');
- } else {
- incremented++;
- if(incremented > 5 && parentElement.offsetWidth > 445) {
- parentElement.className = parentElement.className.replace(/\bnav-shifted\b/g, '');
- incremented = 0;
- }
-
- }
-
-};
-window.addEventListener('resize', (event) => {
- shiftNavIcons();
-});
-shiftNavIcons(); \ No newline at end of file
diff --git a/theme.toml b/theme.toml
index ed58c97..739e592 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,22 +1,20 @@
-name = "Kiss"
+name = "Kiss'Em"
license = "MIT"
-licenselink = "https://github.com/ribice/kiss/master/LICENSE.md"
-description = "Stupidly simple Hugo blogging theme"
-homepage = "https://www.ribice.ba/hugo-kiss/"
+licenselink = "https://github.com/pavel-pi/kiss-em/master/LICENSE.md"
+description = "Even more simple Hugo blogging theme"
+homepage = "https://github.com/pavel-pi/kiss-em"
tags = [
"blog",
"minimal",
"minimalist",
- "responsive"
+ "responsive",
+ "rss"
]
features = [
"accessibility",
- "analytics",
- "comments",
"cover-image",
"favicon",
"multilingual",
- "opengraph",
"pagination",
"shortcodes",
"single-column",
@@ -26,10 +24,10 @@ features = [
min_version = 0.28
[author]
- name = "ribice"
- homepage = "https://ribice.ba"
+ name = "Pavel Pi"
+ homepage = "https://blog.pavel-pi.de"
[original]
- name = "hemingway"
- homepage = "http://tanksuzuki.com"
- repo = "https://github.com/tanksuzuki/hemingway"
+ name = "kiss"
+ homepage = "https://themes.gohugo.io/theme/kiss/"
+ repo = "https://github.com/ribice/kiss"