Commit 006829b5 authored by André's avatar André

Update theme to latest upstream version

This way updates to upstream can be applied easier later
parent dc129253
Pipeline #4256 canceled with stage
...@@ -15,8 +15,11 @@ pygmentCodeFences = true ...@@ -15,8 +15,11 @@ pygmentCodeFences = true
[Params] [Params]
subtitle = "A fully-featured XMPP client" subtitle = "A fully-featured XMPP client"
logo = "img/gajim-logo.png" #logo = "img/gajim-logo.png"
favicon = "img/favicon.ico" favicon = "img/favicon.ico"
selfHosted = true
hideAuthor = true
useHLJS = true
dateFormat = "January 2, 2006" dateFormat = "January 2, 2006"
commit = false commit = false
rss = true rss = true
......
--- ---
title: Development title: Development
subtitle: Gajim development description: Gajim development
type: page
comments: false comments: false
--- ---
......
--- ---
title: Download title: Download
subtitle: Gajim is available for Windows, MacOS, and Linux description: Gajim is available for Windows, MacOS, and Linux
type: page
comments: false comments: false
--- ---
......
--- ---
title: News title: News
type: page
--- ---
--- ---
title: Screenshots title: Screenshots
subtitle: Screenshots of Gajim description: Screenshots of Gajim
type: page
comments: false comments: false
--- ---
......
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
$ mkdir themes $ mkdir themes
$ cd themes $ cd themes
$ git clone https://github.com/halogenica/beautifulhugo.git beautifulhugo $ git submodule add https://github.com/halogenica/beautifulhugo.git beautifulhugo
See [the Hugo documentation](http://gohugo.io/themes/installing/) for more information. See [the Hugo documentation](https://gohugo.io/themes/installing/) for more information.
## Extra Features ## Extra Features
...@@ -18,49 +19,138 @@ This theme is designed to look great on both large-screen and small-screen (mobi ...@@ -18,49 +19,138 @@ This theme is designed to look great on both large-screen and small-screen (mobi
### Syntax highlighting ### Syntax highlighting
This theme has support for both server side and client side highlighting. This theme has support for either Hugo's lightning fast Chroma, or both server side and client side highlighting. See [the Hugo docs for more](https://gohugo.io/content-management/syntax-highlighting/).
#### Server side syntax highlighting #### Chroma - New server side syntax highlighting
Use the `highlight` shortcode (with Pygments), To enable Chroma, add the following to your site parameters:
see [the Hugo documentation](http://gohugo.io/extras/highlighting/) for more information.
To use this feature install Pygments (`pip install Pygments`) and add `pygmentsuseclasses = true` to your `config.toml`. ```
pygmentsCodeFences = true
pygmentsUseClasses = true
```
Then, you can generate a different style by running:
```
hugo gen chromastyles --style=trac > static/css/syntax.css
```
#### Client side syntax highlighting #### Pygments - Old server side syntax highlighting
Use triple backticks ( ``` ) or triple tilde ( ~~~ ) around code blocks. To use this feature install Pygments (`pip install Pygments`) and add the following to your site parameters:
Client side highlighting does not require pygments to be installed. ```
pygmentsStyle = "trac"
pygmentsUseClassic = true
```
Pygments is mostly compatable with the newer Chroma. It is slower but has some additional theme options. I recommend Chroma over Pygments. Pygments will use `syntax.css` for highlighting, unless you also set the config `pygmentsUseClasses = false` which will generate the style code directly in the HTML file.
#### Highlight.js - Client side syntax highlighting
```
[Params]
useHLJS = true
```
Client side highlighting does not require pygments to be installed. This will use `highlight.min.css` instead of `syntax.css` for highlighting (effectively disabling Chroma). Highlight.js has a wider range of support for languages and themes, and an alternative highlighting engine.
### Disqus support ### Disqus support
To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`. To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`.
### Staticman support
Add *Staticman* configuration section in `config.toml` or `config.yaml`
Sample `config.toml` configuration
```
[Params.staticman]
api = "https://<API-ENDPOINT>/v3/entry/{GIT-HOST}/<USERNAME>/<REPOSITORY-BLOGNAME>/master/comments"
[Params.staticman.recaptcha]
sitekey: "6LeGeTgUAAAAAAqVrfTwox1kJQFdWl-mLzKasV0v"
secret: "hsGjWtWHR4HK4pT7cUsWTArJdZDxxE2pkdg/ArwCguqYQrhuubjj3RS9C5qa8xu4cx/Y9EwHwAMEeXPCZbLR9eW1K9LshissvNcYFfC/b8KKb4deH4V1+oqJEk/JcoK6jp6Rr2nZV4rjDP9M7nunC3WR5UGwMIYb8kKhur9pAic="
```
Note: The public `API-ENDPOINT` https://staticman.net is currently hitting its API limit, so one may use other API instances to provide Staticman comment service.
The section `[Params.staticman.recaptcha]` is *optional*. To add reCAPTCHA to your site, you have to replace the default values with your own ones (to be obtained from Google.) The site `secret` has to be encrypted with
https://<API-ENDPOINT>/v3/encrypt/<SITE-SECRET>
You must also configure the `staticman.yml` in you blog website.
```
comments:
allowedFields: ["name", "email", "website", "comment"]
branch : "master"
commitMessage : "New comment in {options.slug}"
path: "data/comments/{options.slug}"
filename : "comment-{@timestamp}"
format : "yaml"
moderation : true
requiredFields : ['name', 'email', 'comment']
transforms:
email : md5
generatedFields:
date:
type : "date"
options:
format : "iso8601"
reCaptcha:
enabled: true
siteKey: "6LeGeTgUAAAAAAqVrfTwox1kJQFdWl-mLzKasV0v"
secret: "hsGjWtWHR4HK4pT7cUsWTArJdZDxxE2pkdg/ArwCguqYQrhuubjj3RS9C5qa8xu4cx/Y9EwHwAMEeXPCZbLR9eW1K9LshissvNcYFfC/b8KKb4deH4V1+oqJEk/JcoK6jp6Rr2nZV4rjDP9M7nunC3WR5UGwMIYb8kKhur9pAic="
```
If you *don't* have the section `[Params.staticman]` in `config.toml`, you *won't* need the section `reCaptcha` in `staticman.yml`
### Google Analytics ### Google Analytics
To add Google Analytics, simply sign up to [Google Analytics](http://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`. To add Google Analytics, simply sign up to [Google Analytics](https://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`.
### Commit SHA on the footer ### Commit SHA on the footer
If the source of your site is in a Git repo, the SHA corresponding to the commit the site is built from can be shown on the footer. To do so, two environment variables have to be set (`GIT_COMMIT_SHA` and `GIT_COMMIT_SHA_SHORT`) and parameter `commit` has to be defined in the config file: If the source of your site is in a Git repo, the SHA corresponding to the commit the site is built from can be shown on the footer. To do so, two site parameters `commit` has to be defined in the config file `config.toml`:
``` ```
enableGitInfo = true
[Params] [Params]
commit = "https://github.com/<username>/<siterepo>/tree/" commit = "https://github.com/<username>/<siterepo>/tree/"
``` ```
This can be achieved by running the next command prior to calling Hugo: See at [vincenttam/vincenttam.gitlab.io](https://gitlab.com/vincenttam/vincenttam.gitlab.io) for an example of how to add it to a continuous integration system.
### Extra shortcodes
There are two extra shortcodes provided (along with the customized figure shortcode):
#### Details
This simply adds the html5 detail attribute, supported on all *modern* browsers. Use it like this:
``` ```
GIT_COMMIT_SHA=`git rev-parse --verify HEAD` GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD` {{% details "This is the details title (click to expand)" %}}
This is the content (hidden until clicked).
{{% /details %}}
``` ```
See at [xor-gate/xor-gate.org](https://github.com/xor-gate/xor-gate.org) an example of how to add it to a continuous integration system. #### Split
This adds a two column side-by-side environment (will turn into 1 col for narrow devices):
```
{{< columns >}}
This is column 1.
{{< column >}}
This is column 2.
{{< endcolumn >}}
```
## About ## About
This is a port of the Jekyll theme [Beautiful Jekyll](http://deanattali.com/beautiful-jekyll/) by [Dean Attali](http://deanattali.com/aboutme#contact). It supports most of the features of the original theme. This is a port of the Jekyll theme [Beautiful Jekyll](https://deanattali.com/beautiful-jekyll/) by [Dean Attali](https://deanattali.com/aboutme#contact). It supports most of the features of the original theme.
## License ## License
......
--- ---
title: "{{ replace .Name "-" " " | title }}"
author: ""
type: ""
date: {{ .Date }}
subtitle: "" subtitle: ""
image: ""
tags: [] tags: []
--- ---
...@@ -11,10 +11,10 @@ title = "Facebook" ...@@ -11,10 +11,10 @@ title = "Facebook"
icon = "fab fa-facebook" icon = "fab fa-facebook"
[[social_icons]] [[social_icons]]
id = "googleplus" id = "github"
url = "https://www.plus.google.com/%s" url = "https://github.com/%s"
title = "Google+" title = "GitHub"
icon = "fab fa-google-plus" icon = "fab fa-github"
[[social_icons]] [[social_icons]]
id = "gitlab" id = "gitlab"
...@@ -23,10 +23,10 @@ title = "GitLab" ...@@ -23,10 +23,10 @@ title = "GitLab"
icon = "fab fa-gitlab" icon = "fab fa-gitlab"
[[social_icons]] [[social_icons]]
id = "github" id = "bitbucket"
url = "https://github.com/%s" url = "https://bitbucket.org/%s"
title = "GitHub" title = "Bitbucket"
icon = "fab fa-github" icon = "fab fa-bitbucket"
[[social_icons]] [[social_icons]]
id = "twitter" id = "twitter"
...@@ -97,15 +97,9 @@ icon = "fab fa-bandcamp" ...@@ -97,15 +97,9 @@ icon = "fab fa-bandcamp"
[[social_icons]] [[social_icons]]
id = "itchio" id = "itchio"
url = "https://itch.io/profile/%s" url = "https://itch.io/profile/%s"
title = "itch.io" title = "Itch.io"
icon = "fas fa-gamepad" icon = "fas fa-gamepad"
[[social_icons]]
id = "steam"
url = "https://steamcommunity.com/id/%s"
title = "Steam"
icon = "fab fa-steam"
[[social_icons]] [[social_icons]]
id = "keybase" id = "keybase"
url = "https://keybase.io/%s" url = "https://keybase.io/%s"
...@@ -113,9 +107,31 @@ title = "Keybase" ...@@ -113,9 +107,31 @@ title = "Keybase"
icon = "fab fa-keybase" icon = "fab fa-keybase"
[[social_icons]] [[social_icons]]
id = "Goodreads" id = "vk"
url = "https://www.goodreads.com/%s" url = "https://vk.com/%s"
title = "Goodreads" title = "VK"
icon = "fab fa-goodreads" icon = "fab fa-vk"
[[social_icons]]
id = "paypal"
url = "https://paypal.me/%s"
title = "PayPal"
icon = "fab fa-paypal"
[[social_icons]]
id = "telegram"
url = "https://telegram.me/%s"
title = "Telegram"
icon = "fab fa-telegram"
[[social_icons]]
id = "500px"
url = "https://500px.com/%s"
title = "500px"
icon = "fab fa-500px"
[[social_icons]]
id = "weibo"
url = "https://weibo.com/%s"
title = "Weibo"
icon = "fab fa-weibo"
\ No newline at end of file
# Content # Content
- id: dateFormat - id: dateFormat
translation: "2. Januar 2006" translation: "2. Januar 2006"
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate - id: postedOnDate
translation: "Verfasst am {{ .Count }}" translation: "Verfasst am {{ .Count }}"
- id: lastModified
translation: "(Zuletzt geändert am {{ .Count }})"
- id: translationsLabel - id: translationsLabel
translation: "Andere Sprachen: " translation: "Andere Sprachen: "
- id: translationsSeparator - id: translationsSeparator
...@@ -17,6 +21,11 @@ ...@@ -17,6 +21,11 @@
translation: "Voriger Artikel" translation: "Voriger Artikel"
- id: nextPost - id: nextPost
translation: "Nächster Artikel" translation: "Nächster Artikel"
- id: readTime
translation: "Minuten"
- id: words
translation: "Wörter"
# 404 page # 404 page
- id: pageNotFound - id: pageNotFound
...@@ -24,7 +33,7 @@ ...@@ -24,7 +33,7 @@
# Footer # Footer
- id: poweredBy # Accepts HTML - id: poweredBy # Accepts HTML
translation: '<a href="http://gohugo.io">Hugo v{{ .Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>' translation: '<a href="http://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>'
# Navigation # Navigation
- id: toggleNavigation - id: toggleNavigation
...@@ -38,3 +47,28 @@ ...@@ -38,3 +47,28 @@
- id: gcseClose - id: gcseClose
translation: "Schließen" translation: "Schließen"
# Staticman
- id: noComment
translation: "Kein Kommentar"
- id: oneComment
translation: "Kommentar"
- id: moreComment
translation: "Kommentare"
- id: useMarkdown
translation: "Sie können Markdown-Syntax verwenden"
- id: yourName
translation: "Irh Name"
- id: yourEmail
translation: "Ihre Emailadresse"
- id: yourWebsite
translation: "Ihre Website"
# Delayed Disqus
- id: show
translation: "Zeige"
- id: comments
translation: "Kommentare"
# Related posts
- id: seeAlso
translation: "Siehe auch"
# Content # Content
- id: dateFormat - id: dateFormat
translation: "January 2, 2006" translation: "January 2, 2006"
- id: shortdateFormat
translation: "Jan 2, 2006 15:04:05"
- id: postedOnDate - id: postedOnDate
translation: "Posted on {{ .Count }}" translation: "Posted on {{ .Count }}"
- id: lastModified
translation: "(Last modified on {{ .Count }})"
- id: translationsLabel - id: translationsLabel
translation: "Other languages: " translation: "Other languages: "
- id: translationsSeparator - id: translationsSeparator
...@@ -17,6 +21,11 @@ ...@@ -17,6 +21,11 @@
translation: "Previous Post" translation: "Previous Post"
- id: nextPost - id: nextPost
translation: "Next Post" translation: "Next Post"
- id: readTime
translation: "minutes"
- id: words
translation: "words"
# 404 page # 404 page
- id: pageNotFound - id: pageNotFound
...@@ -24,7 +33,7 @@ ...@@ -24,7 +33,7 @@
# Footer # Footer
- id: poweredBy # Accepts HTML - id: poweredBy # Accepts HTML
translation: '<a href="http://gohugo.io">Hugo v{{ .Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>' translation: '<a href="http://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>'
# Navigation # Navigation
- id: toggleNavigation - id: toggleNavigation
...@@ -38,3 +47,28 @@ ...@@ -38,3 +47,28 @@
- id: gcseClose - id: gcseClose
translation: "Close" translation: "Close"
# Staticman
- id: noComment
translation: "No comment"
- id: oneComment
translation: "comment"
- id: moreComment
translation: "comments"
- id: useMarkdown
translation: "You can use Markdown syntax"
- id: yourName
translation: "Your name"
- id: yourEmail
translation: "Your email address"
- id: yourWebsite
translation: "You website"
# Delayed Disqus
- id: show
translation: "Show"
- id: comments
translation: "comments"
# Related posts
- id: seeAlso
translation: "See also"
# Content # Content
- id: dateFormat - id: dateFormat
translation: "2006年1月2日" translation: "2006年1月2日"
- id: shortdateFormat
translation: "2 Jan, 2006 15:04:05"
- id: postedOnDate - id: postedOnDate
translation: "{{ .Count }}に投稿" translation: "{{ .Count }}に投稿"
- id: lastModified
translation: "(最終更新日時{{ .Count }})"
- id: translationsLabel - id: translationsLabel
translation: "翻訳:" translation: "翻訳:"
- id: translationsSeparator - id: translationsSeparator
...@@ -17,6 +21,11 @@ ...@@ -17,6 +21,11 @@
translation: "前ページ" translation: "前ページ"
- id: nextPost - id: nextPost
translation: "次ページ" translation: "次ページ"
- id: readTime
translation: "分間"
- id: words
translation: "言葉"
# 404 page # 404 page
- id: pageNotFound - id: pageNotFound
...@@ -24,11 +33,13 @@ ...@@ -24,11 +33,13 @@
# Footer # Footer
- id: poweredBy # Accepts HTML - id: poweredBy # Accepts HTML
translation: '起動力に<a href="http://gohugo.io">Hugo v{{ .Hugo.Version }}</a> &nbsp;&bull;&nbsp; テーマに<a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>に基づいている<a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>' translation: '起動力に<a href="http://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> &nbsp;&bull;&nbsp; テーマに<a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a>に基づいている<a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>'
# Navigation # Navigation
- id: toggleNavigation - id: toggleNavigation
translation: "メニューを切り替え" translation: "メニューを切り替え"
- id: languageSwitcherLabel
translation: "言語"
- id: gcseLabelShort - id: gcseLabelShort
translation: "検索" translation: "検索"