summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-09-07 18:10:54 +0200
committerBotond Hende <nettingman@gmail.com>2024-09-07 18:10:54 +0200
commitb982508df0c4514544c1c5b0fff2573147d34e67 (patch)
tree94ae75aa01ee96d09bcbbf6797d8846db3fdff70 /templates
parentdecab05a85ea33eeffe75b6275678463277576b6 (diff)
light theme support
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html.j26
-rw-r--r--templates/sidebar.html.j212
2 files changed, 15 insertions, 3 deletions
diff --git a/templates/base.html.j2 b/templates/base.html.j2
index 1925ed2..fa1f2d8 100644
--- a/templates/base.html.j2
+++ b/templates/base.html.j2
@@ -7,8 +7,10 @@
<meta property="og:title" content="{% block page_title_short %}{{ site.blog_name }}{% endblock %}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ url }}" />
- <link rel="stylesheet" href="{{ site.assets_path }}/css/blog.css" />
<link rel="stylesheet" href="{{ site.assets_path_static }}/css/bootstrap-grid.min.css" />
+ <link rel="stylesheet" href="{{ site.assets_path }}/css/font.css" />
+ <script src="{{ site.assets_path }}/js/theme.js"></script>
+ <link rel="stylesheet" href="{{ site.assets_path }}/css/blog.css" />
</head>
<body>
<div class="bootstrap-wrapper">
@@ -24,7 +26,7 @@
dOB68QO8PdUOpugoO9bD
CgggbU8OU qOp qOdoUOdcb
6OuU</span><span class="yellow"> /</span><span class="green">p u gcoUodpP</span>
-<span class="yellow"> \\\// /<span><span class="green">douUP</span>
+<span class="yellow"> \\\// /</span><span class="green">douUP</span>
<span class="yellow"> \\\////
|||/\
|||\/
diff --git a/templates/sidebar.html.j2 b/templates/sidebar.html.j2
index fdb1b4b..f675735 100644
--- a/templates/sidebar.html.j2
+++ b/templates/sidebar.html.j2
@@ -22,8 +22,18 @@ Sometimes I touch upon some more artistic stuff, but mostly just to amuse myself
<span>Git repositories</span>
</a>
<h3 class="magenta">Top tags</h3>
+<p>ls <a href="/tags">~/tags/</a></p>
<p>{% for tag in site.top_tags %}<a href="/tags/{{ tag }}.html">{{ tag }}/</a>{% if not loop.last %} {% endif %}{% endfor %}</p>
-<p>more: cd <a href="/tags">~/tags</a></p>
+<h3 class="magenta">I want different colors</h3>
+<p>~/themes/</p>
+<a href="javascript:void(0);" class="icon-text theme-selector-light" onclick="setTheme('light')">
+ <img src="/assets/image/sun.svg" class="svg-icon" />
+ <span>sweet-celestia.sh</span>
+</a>
+<a href="javascript:void(0);" class="icon-text theme-selector-dark" onclick="setTheme('dark')">
+ <img src="/assets/image/moon.svg" class="svg-icon" />
+ <span>luna-eclipsed.sh</span>
+</a>
<h3 class="magenta">Never miss a post</h3>
<a href="/feed.xml" class="icon-text">
<img src="/assets/image/rss.svg" class="svg-icon" />