diff options
Diffstat (limited to 'theme/custom')
-rw-r--r-- | theme/custom/applications.html | 22 | ||||
-rwxr-xr-x | theme/custom/base.html | 185 | ||||
-rwxr-xr-x | theme/custom/custom.css | 258 | ||||
-rwxr-xr-x | theme/custom/partial/flex.html | 21 | ||||
-rw-r--r-- | theme/custom/partial/sidebar.html | 98 |
5 files changed, 0 insertions, 584 deletions
diff --git a/theme/custom/applications.html b/theme/custom/applications.html deleted file mode 100644 index eb0124b..0000000 --- a/theme/custom/applications.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "page.html" %} - -{% block after_content %} -{% for page in hidden_pages|selectattr("date")|sort(reverse=true,attribute="date") %} -{% for tag in page.tags if "application" == tag.name %} - <h2><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></h2> - <div> - {% if summarise or page.metadata['summary'] or SUMMARY_MAX_LENGTH %} - {% if page.featured_image %} - <img src="{{ page.featured_image }}"> - {% endif %} - {{ page.summary }} - {% endif %} - </div> -{% endfor %} - {% if not loop.last %} - <hr /> - {% endif %} -{% endfor %} -{{ super() }} - -{% endblock %} diff --git a/theme/custom/base.html b/theme/custom/base.html deleted file mode 100755 index da00963..0000000 --- a/theme/custom/base.html +++ /dev/null @@ -1,185 +0,0 @@ -{% if 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT.extensions and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %} - {%- macro _(msg) -%} - {{ msg % kwargs }} - {%- endmacro -%} -{% endif %} - -<!DOCTYPE html> -<html lang="{{ DEFAULT_LANG }}"> -<head> - - <script> - const theme = localStorage.getItem('theme'); - if (theme === "dark") { - document.documentElement.setAttribute('data-theme', 'dark'); - } else { - document.documentElement.setAttribute('data-theme', 'light'); - } - - function modeSwitcher() { - let currentMode = document.documentElement.getAttribute('data-theme'); - if (currentMode === "dark") { - document.documentElement.setAttribute('data-theme', 'light'); - window.localStorage.setItem('theme', 'light'); - } else { - document.documentElement.setAttribute('data-theme', 'dark'); - window.localStorage.setItem('theme', 'dark'); - } - } - </script> - <meta charset="utf-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <meta name="HandheldFriendly" content="True" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - {% if page in hidden_pages %} - <meta name="robots" content="noindex, nofollow" /> - {% else %} - <meta name="robots" content="{{ ROBOTS }}" /> - {% endif %} - - {% if USE_GOOGLE_FONTS != False %} - <link rel="preconnect" href="https://fonts.googleapis.com"> -<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> -<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+Display:wght@300&family=Source+Sans+Pro:ital,wght@0,300;1,300&display=swap" rel="stylesheet"> - {% endif %} - - {% if USE_LESS %} - <link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.less"> - <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script> - {% else %} - <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css"> - {% endif %} - - {# DARK THEME STYLES #} - {% if THEME_COLOR == "dark" or THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR_ENABLE_USER_OVERRIDE %} - <link id="dark-theme-style" rel="stylesheet" type="text/css" - {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %} - {% if THEME_COLOR|default("light") == "dark" %} - media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)" - {% else %} - media="(prefers-color-scheme: dark)" - {% endif %} - {% elif THEME_COLOR_ENABLE_USER_OVERRIDE and THEME_COLOR|default("light") == "light" %} - disabled="disabled" - {% endif %} - href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme.min.css"> - {% endif %} - - {# PYGMENTS STYLES #} - {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR_ENABLE_USER_OVERRIDE or THEME_COLOR == "dark" %} - <link id="pygments-dark-theme" rel="stylesheet" type="text/css" - {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %} - {% if THEME_COLOR|default("light") == "dark" %} - media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)" - {% else %} - media="(prefers-color-scheme: dark)" - {% endif %} - {% elif THEME_COLOR_ENABLE_USER_OVERRIDE and THEME_COLOR|default("light") == "light" %} - disabled="disabled" - {% endif %} - href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE_DARK or PYGMENTS_STYLE or 'monokai' }}.min.css"> - {% endif %} - {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or not THEME_COLOR or THEME_COLOR == "light" %} - <link id="pygments-light-theme" rel="stylesheet" type="text/css" - {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %} - {% if THEME_COLOR|default("light") == "dark" %} - media="(prefers-color-scheme: light)" - {% else %} - media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" - {% endif %} - {% endif %} - href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css"> - {% endif %} - - {% if PLUGINS and 'tipue_search' in PLUGINS %} - <link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/tipuesearch/tipuesearch.min.css" /> - {% endif %} - - <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/fontawesome.css"> - <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/brands.css"> - <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/solid.css"> - - {% if CUSTOM_CSS %} - <link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet"> - {% endif %} - - {% include "partial/icon.html" %} - - {% include "partial/color.html" %} - - {% include "partial/feed.html" %} - - {% include "partial/ga.html" %} - {% include "partial/ggst.html" %} - - {% if not PLUGINS or 'seo' not in PLUGINS %} - {% if REL_CANONICAL %} - {% if page %} - <link rel="canonical" href="{{ SITEURL }}/{{ page.url }}"> - {% elif article %} - <link rel="canonical" href="{{ SITEURL }}/{{ article.url }}"> - {% elif page_name == 'index' and not articles_previous_page %} - <link rel="canonical" href="{{ SITEURL }}"> - {% elif author or category or tag or page_name == 'index' %} - <link rel="canonical" href="{{ SITEURL }}/{{ articles_page.url }}"> - {% else %} - <link rel="canonical" href="{{ SITEURL }}/{{ output_file }}"> - {% endif %} - {% endif %} - {% endif %} - - {% block meta %} - <meta name="author" content="{{ AUTHOR }}" /> - <meta name="description" content="{{ SITEDESCRIPTION }}" /> - {% include "partial/og.html" %} - {% endblock %} - - <title>{{ SITENAME }}{% block title %}{% endblock %}</title> - - {% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.page_level_ads %} - <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> - <script> - (adsbygoogle = window.adsbygoogle || []).push({ - google_ad_client: "{{ GOOGLE_ADSENSE.ca_id }}", - enable_page_level_ads: true - }); - </script> - {% endif %} - - {% include "partial/gtm.html" %} - {% include "partial/clarity.html" %} -</head> -<body {% if not THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}class="{{ THEME_COLOR|default('light') }}-theme"{% endif %}> - {% include "partial/gtm_noscript.html" %} - - {% include "partial/sidebar.html" %} - - <main> - {% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.main_menu %} - <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> - <ins class="adsbygoogle ads-responsive" - data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}" - data-ad-slot="{{ GOOGLE_ADSENSE.ads.main_menu }}"></ins> - <script> - (adsbygoogle = window.adsbygoogle || []).push({}); - </script> - {% endif %} - - {% include "partial/nav.html" %} - - {% block content %} - {% endblock %} - - {% include "partial/footer.html" %} - </main> - - {% include "partial/jsonld.html" %} - {% include "partial/guages.html" %} - {% include "partial/addthis.html" %} - {% include "partial/matomo.html" %} - {% include 'partial/github.html' %} - {% include 'partial/stork.html' %} - - {% block additional_js %}{% endblock %} -</body> -</html> diff --git a/theme/custom/custom.css b/theme/custom/custom.css deleted file mode 100755 index ea4d38a..0000000 --- a/theme/custom/custom.css +++ /dev/null @@ -1,258 +0,0 @@ -html[data-theme="dark"] { - --main-text-color: #d8dee9; - --main-background-color: #2e3440; - --side-background-color: #222; - --border-color: #4c566a; - --link-color: #88c0d0; - --link-hover-color: #d8dee9; - --link2-color: #5e81ac; - --link2-hover-color: #5e81ac; - --button-background-color: #3b4252; - -} - -html[data-theme="light"] { - --main-text-color: #2e3440; - --main-background-color: #fff; - --side-background-color: #2e3440; - --border-color: #eee; - --link-color: #5e81ac; - --link2-color: #5e81ac; - --link-hover-color: #5e81ac; - --link2-hover-color: #5e81ac; - --button-background-color: #eceff4; -} - -.literal-block, .highlight { - background-color: var(--side-background-color) !important; - -} - -main article { - margin:0 10px 10px; - max-width: unset; -} - -main article header p{ - font-weight: lighter; -} - -main article h1 a, main article h2 a, main article h1, main article h2 { - color: unset; - font-family: 'Noto Serif Display', serif; -} - -main { - font-size: 1.5em; - line-height: 1.5em; - font-weight: 300; -} - -body { - color: var(--main-text-color); - background-color: var(--main-background-color); -} -a { - color: var(--link-color); -} -.admonition a { - color: var(--link2-color); -} -aside { - background-color: var(--side-background-color); -} - -aside, -aside a { - color:#eceff4 -} - -aside nav ul li { - /* The text is in lower case by default, just remove it */ - text-transform: -} - -@media screen and (min-width:768px) { - /* Reduce the sidebar width to 20% */ - aside { - width:20vw; - } - main { - padding-left:20vw; - } - main article { - margin:0 50px 50px; - } - -} - -a.btn, -.tag-cloud a, -section#isso-thread section.auth-section p.post-action input { - background-color: var(--button-background-color); - color:unset; -} -a.btn:hover, -.tag-cloud a:hover { - background-color:#5e81ac; - color:#fff; -} -a:hover { - color: var(--link-hover-color); - text-decoration:underline -} -.admonition a:hover { - color: var(--link2-hover-color); - text-decoration:underline -} -aside a:hover { - color:#d8dee9; - text-decoration:none; -} -hr { - background-color: var(--border-color); -} - -div.related-posts { - margin:15px 0; - padding-bottom:20px; - border-top:1px solid var(--border-color); - border-bottom:1px solid var(--border-color); -} - - -main nav { - border-bottom: 1px solid #d8dee9; -} -ul.social a.sc-medium { - background-color:#00ab6b -} -ul.social a.sc-rss { - background-color:#f26109 -} -ul.social a.sc-github, -ul.social a.sc-github-alt { - background-color:#111010 -} -ul.social a.sc-envelope { - background-color:#578ad6 -} -.theme-switch { - color: unset; - background-color: unset; - border: 0px; -} -@media screen and (max-width: 768px) { - .theme-switch { - position: absolute; - top: 25px; - right: 25px; - } -} -@media screen and (min-width: 768px) { - .theme-switch { - position: fixed; - bottom: 10px; - } -} -main footer { - border-top: var(--border-color); -} -main footer p { - margin:2px; - text-align:center; - padding:0 40px; - color:#999; - font-size:11px -} -div.admonition div, -div.admonition p, -div.admonition pre { - margin-bottom:0 -} -div.admonition { - color: var(--main-background-color); - background-color: var(--main-text-color); -} -div.admonition.attention { - color:#856404; - background-color:#fff3cd -} -div.admonition.caution { - color:#856404; - background-color:#fff3cd -} -div.admonition.danger { - color:#721c24; - background-color:#f8d7da -} -div.admonition.error { - color:#721c24; - background-color:#f8d7da -} -div.admonition.hint { - color:#004085; - background-color:#cce5ff -} -div.admonition.important { - color:#155724; - background-color:#d4edda -} -div.admonition.tip { - color:#004085; - background-color:#cce5ff -} -div.admonition.warning { - color:#856404; - background-color:#fff3cd -} -div.figure { - font-size:90%; - color:#6c757d -} -main article table:not(.field-list) { - width: 100%; - word-break: break-all; -} -main article table th.field-name { - width: 10em; - text-align: right; - border-top: 0px; - word-wrap:break-word; -} -main article table th { - border-top: 1px; -} -main article table td { - line-height: unset; -} -main article table td.field-body { - border-top: 0px; -} -/* Select the cell in the first row, when the row comes just after te table - * body, no header */ -main article tbody > tr:first-child td { - border-top: 1px black; -} -main article :not(pre)>code { - font-size:.8em; - white-space:nowrap; - color:#c25; - padding:1px 3px; - background-color:#f7f7f9; - border:1px solid #e1e1e8; - border-radius:3px -} - -aside span.amp { - font-family:Baskerville,"Goudy Old Style","Palatino","Book Antiqua",serif; - font-size:110%; - font-style:italic; -} - -dt { - font-weight: bold; -} -dt::after { - content: " :"; -} diff --git a/theme/custom/partial/flex.html b/theme/custom/partial/flex.html deleted file mode 100755 index 747672b..0000000 --- a/theme/custom/partial/flex.html +++ /dev/null @@ -1,21 +0,0 @@ -<p> -{{ - _('Built with %(pelican_url)s', - pelican_url='<a href="http://getpelican.com" target="_blank">Pelican</a>') -}} -{% if THEME_COLOR_ENABLE_USER_OVERRIDE %} - <span class="footer-separator">|</span> - {{ - _('Switch to the %(dark_url)s | %(light_url)s | %(browser_url)s theme', - dark_url='<a href="javascript:void(0)" onclick="theme.switch(`dark`)">dark</a>', - light_url='<a href="javascript:void(0)" onclick="theme.switch(`light`)">light</a>', - browser_url='<a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a>'|safe) - }} - <script id="dark-theme-script" - src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/dark-theme/dark-theme.min.js" - data-enable-auto-detect-theme="{{ THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE|default('false') }}" - data-default-theme="{{ THEME_COLOR|default('light') }}" - type="text/javascript"> - </script> -{% endif %} -</p> diff --git a/theme/custom/partial/sidebar.html b/theme/custom/partial/sidebar.html deleted file mode 100644 index e4ae53f..0000000 --- a/theme/custom/partial/sidebar.html +++ /dev/null @@ -1,98 +0,0 @@ -<aside> - <div> - <a href="{{ SITEURL }}/"> - {% if SITELOGO %} - <img src="{{ SITELOGO }}" alt="{{ SITETITLE }}" title="{{ SITETITLE }}"> - {% else %} - <img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/profile.png" alt="{{ SITETITLE }}" title="{{ SITETITLE }}"> - {% endif %} - </a> - - <h1> - <a href="{{ SITEURL }}/">{{ SITETITLE }}</a> - </h1> - - {% if SITESUBTITLE %} - <p>{{ SITESUBTITLE }}</p> - {% endif %} - - {% if PLUGINS %} - {% if ('tipue_search' in PLUGINS or 'pelican.plugins.tipue_search' in PLUGINS) %} - <form class="navbar-search" action="{{ SITEURL }}/search.html" role="search"> - <input type="text" name="q" id="tipue_search_input" placeholder="{{ _('Search...') }}"> - </form> - {% elif 'pelican.plugins.search' in PLUGINS %} - <div class="stork"> - <input class="stork-input" type="text" autocomplete="off" name="q" data-stork="sitesearch" placeholder="{{ _('Search...') }}"/> - <div class="stork-output" data-stork="sitesearch-output"></div> - </div> - {% endif %} - {% endif %} - - {% if (pages and DISPLAY_PAGES_ON_MENU) or LINKS %} - <nav> - <ul class="list"> - {# Open links in new window depending on the LINKS_IN_NEW_TAB setting #} - {% macro get_target(link) -%} - {%- if LINKS_IN_NEW_TAB in ('all', true) -%} - _blank - {%- elif LINKS_IN_NEW_TAB == "external" and not link.startswith("/") and not link.startswith(SITEURL) -%} - _blank - {%- else -%} - _self - {%- endif -%} - {%- endmacro %} - - {% if PAGES_SORT_ATTRIBUTE -%} - {% set pages = pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %} - {%- endif %} - - {% if DISPLAY_PAGES_ON_MENU %} - {% for page in pages %} - <li> - <a target="{{ get_target(SITEURL) }}" - href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}"> - {{ page.title }} - </a> - </li> - {% endfor %} - {% endif %} - - {% for name, link in LINKS %} - <li> - <a target="{{ get_target(link) }}" href="{{ link }}" >{{ name }}</a> - </li> - {% endfor %} - </ul> - </nav> - {% endif %} - - {% if SOCIAL %} - {% set solid = ['at', 'envelope', 'mailbox', 'rss'] %} - {% set relme = ['at', 'envelope', 'mailbox', 'mastodon'] %} - <ul class="social"> - {% for name, link in SOCIAL %} - <li> - <a class="sc-{{ name }}" - {% if name in relme %}rel="me"{% endif %} - href="{{ link }}" - target="_blank"> - <i class="{% if name in solid %}fa-solid{% else %}fa{% endif %} fa-{{ name }}"></i> - </a> - </li> - {% endfor %} - </ul> - {% endif %} - <button class="theme-switch"><i class="fa fa-adjust fa-2x" aria-hidden="true" onclick="modeSwitcher()"></i></button> - </div> - - {% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.aside %} - <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> - <ins class="adsbygoogle ads-aside" - data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}" - data-ad-slot="{{ GOOGLE_ADSENSE.ads.aside }}"></ins> - <script> - (adsbygoogle = window.adsbygoogle || []).push({}); - </script> - {% endif %} -</aside> |