properly configure theme, manual menu definition

mainline
Trolli Schmittlauch 2022-03-01 01:18:57 +01:00
parent 4bd04c1386
commit 1558afdfea
9 changed files with 141 additions and 12 deletions

BIN
content/images/avatar.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,25 @@
<?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">
<!-- Created using Karbon, part of Calligra: http://www.calligra.org/karbon -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="162.14pt" height="175.758pt">
<defs>
<filter id="filter0" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="-0.10000000000" y="-0.10000000000" width="1.20000000000" height="1.20000000000">
<feGaussianBlur result="" in="" x="0.00000000000" y="0.00000000000" width="1.00000000000" height="1.00000000000" stdDeviation="0.0298775, 0.0105786"/>
</filter>
<filter id="filter1" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="-0.10000000000" y="-0.10000000000" width="1.20000000000" height="1.20000000000">
<feGaussianBlur result="" in="" x="0.00000000000" y="0.00000000000" width="1.00000000000" height="1.00000000000" stdDeviation="0.0330961, 0.0117182"/>
</filter>
<filter id="filter2" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="-0.10000000000" y="-0.10000000000" width="1.20000000000" height="1.20000000000">
<feGaussianBlur result="" in="" x="0.00000000000" y="0.00000000000" width="1.00000000000" height="1.00000000000" stdDeviation="0.031723, 0.0112321"/>
</filter>
</defs>
<g id="layer1">
<path id="path2985" transform="translate(63.9616, 4.2881)" fill="#00ff00" fill-opacity="0.75294117647" fill-rule="evenodd" filter="url(#filter0)" d="M74.7513 105.561C74.7513 163.861 58.0176 211.122 37.3756 211.122C16.7336 211.122 0 163.861 0 105.561C0 47.2612 16.7336 0 37.3756 0C58.0176 -1.42109e-14 74.7513 47.2612 74.7513 105.561Z"/>
</g><g id="g3755">
<path id="path3757" transform="matrix(0.669426 -0.742879 0.742879 0.669426 -2.10197 66.9494)" fill="#ff7a00" fill-opacity="0.75294117647" fill-rule="evenodd" filter="url(#filter1)" d="M74.7513 105.561C74.7513 163.861 58.0176 211.122 37.3756 211.122C16.7336 211.122 0 163.861 0 105.561C0 47.2612 16.7336 0 37.3756 0C58.0176 -1.42109e-14 74.7513 47.2612 74.7513 105.561Z"/>
</g><g id="g3759">
<path id="path3761" transform="matrix(-0.427222 -0.904147 0.904147 -0.427222 21.8623 188.74)" fill="#000200" fill-opacity="0.75294117647" fill-rule="evenodd" filter="url(#filter2)" d="M74.7513 105.561C74.7513 163.861 58.0176 211.122 37.3756 211.122C16.7336 211.122 0 163.861 0 105.561C0 47.2612 16.7336 0 37.3756 0C58.0176 -1.42109e-14 74.7513 47.2612 74.7513 105.561Z"/>
</g><g id="layer2">
<text id="shape0" fill="#ffbf7f" font-family="ComicSans" font-size="20.00000000000pt" x="0.00000000000pt" y="14.84375000000pt" transform="matrix(1.69716 0 0 2.14356 67.4087 88.523)"><tspan x="0" y="18.5547">o.O</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,5 @@
title: Über Mich
lang: de
slug: about
## Wer ist dieser Trolli Schmittlauch?

View File

@ -0,0 +1,5 @@
title: About
slug: about
lang: en
## Some infos about me

12
content/pages/home_de.md Normal file
View File

@ -0,0 +1,12 @@
title: Wilkommen auf meiner Homepage
url:
save_as: index.html
slug: home
hidden: true
lang: de
Ohai,
ich bin ***schmittlauch*** oder in Langform ***Trolli Schmittlauch*** zumindest in großen Teilen des Internets und daran angeschlossenen Communities.
An dieser Stelle werde ich ab jetzt meine Gedanken und Projekte teilen. Als Informatiker beschäftige ich mich gerne mit aktueller Technik und ihrer gesellschaftlichen Einbettung, Privatsphäre und Freier Software. Auch Dezentrale Systeme wecken mein Interesse. Aber auch andere Themen wie Alltag, politische Debatten oder Kultur werden bestimmt mal in meinen Blogposts auftauchen.

10
content/pages/home_en.md Normal file
View File

@ -0,0 +1,10 @@
title: Welcome to My Homepage
url:
save_as: index.html
slug: home
hidden: true
lang: en
Hi,
***insert text here***

View File

@ -1,15 +1,24 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*- #
from datetime import datetime
AUTHOR = 'Trolli Schmittlauch'
SITENAME = 'schmittlauch'
SITENAME = 'Schmittlauchs Blog & Homepage'
SITETITLE = 'schmittlauch'
SITETITLE = 'Tech, Politik & Leben'
SITEURL = ''
SITELOGO = '/images/avatar.png'
FAVICON = '/images/favicon.svg'
PATH = 'content'
ARTICLE_PATHS = ['blog']
INDEX_SAVE_AS = 'blog/index.html'
#CUSTOM_CSS = "static/custom.css"
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = 'de'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
@ -18,15 +27,33 @@ TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('Pelican', 'https://getpelican.com/'),
('Python.org', 'https://www.python.org/'),
('Jinja2', 'https://palletsprojects.com/p/jinja/'),
('You can modify those links in your config file', '#'),)
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
MAIN_MENU = True
MENUITEMS = (
("Blog", SITEURL + "/blog/"),
("Archives", "/archives.html"),
("Categories", "/categories.html"),
("Tags", "/tags.html"),
("Impressum", "/pages/impressum.html"),
)
# lefthand menu
LINKS = (('Blog', '/blog/'),
('Über mich', '/pages/about.html'),
('Berufliches & Lebenslauf', '/pages/professional.html'),
('Kontakt', '/pages/contact.html'),
#('', ''),
)
# Social widget
SOCIAL = (('You can add links in your config file', '#'),
('Another social link', '#'),)
SOCIAL = (
("mastodon", "https://toot.matereal.eu/@schmittlauch"),
("twitter", "https://twitter.com/schmittlauch"),
#("matrixdotorg", ""),
("envelope", "mailto:t.schmittlauch@orlives.de"),
("git", "https://git.orlives.de/"),
("github", "https://github.com/schmittlauch/"),
)
DEFAULT_PAGINATION = 10
@ -34,14 +61,56 @@ DEFAULT_PAGINATION = 10
#RELATIVE_URLS = True
# Multilang
DEFAULT_LANG = 'de'
OG_LOCALE = "de_DE"
LOCALE = ("de_DE", "de_DE.utf8")
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['i18n_subsites']
# Enable Jinja2 i18n extension used to parse translations.
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
# Default theme language.
I18N_TEMPLATES_LANG = "en"
I18N_SUBSITES = {
'en': {
(_LOC := 'en'): {
'SITENAME': 'schmittlauch',
'OG_LOCALE': "en",
'LOCALE': ("en_GB", "en_GB.utf8"),
# translation of strings, menu, titles
'SITETITLE': 'Tech, Politics & Life',
'MENUITEMS': (
("Blog", f"{_LOC}/blog/"),
("Archives", f"{_LOC}/archives.html"),
("Categories", f"{_LOC}/categories.html"),
("Tags", f"{_LOC}/tags.html"),
("Impressum", f"{_LOC}/pages/impressum.html"),
),
'LINKS': (
('Blog', f'{_LOC}/blog/'),
('About', f'{_LOC}/pages/about.html'),
('Professional & CV', f'{_LOC}/pages/professional.html'),
('Contact', f'{_LOC}/pages/contact.html'),
#('', ''),
),
}
}
I18N_UNTRANSLATED_ARTICLES = 'keep'
# Theming and templates
# Theming, templates, and specific configs
THEME = './theme/Flex'
THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE = True
THEME_COLOR_ENABLE_USER_OVERRIDE = True
CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike",
"version": "4.0",
"slug": "by-sa",
"icon": True,
}
COPYRIGHT_YEAR = datetime.now().year
USE_GOOGLE_FONTS = False