diff --git a/gawa/blog/data/articles/1.toml b/gawa/blog/data/articles/1.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/1.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/10.toml b/gawa/blog/data/articles/10.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/10.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/2.toml b/gawa/blog/data/articles/2.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/2.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/3.toml b/gawa/blog/data/articles/3.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/3.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/4.toml b/gawa/blog/data/articles/4.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/4.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/5.toml b/gawa/blog/data/articles/5.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/5.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/6.toml b/gawa/blog/data/articles/6.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/6.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/7.toml b/gawa/blog/data/articles/7.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/7.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/8.toml b/gawa/blog/data/articles/8.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/8.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/9.toml b/gawa/blog/data/articles/9.toml new file mode 100644 index 0000000..0afe0d5 --- /dev/null +++ b/gawa/blog/data/articles/9.toml @@ -0,0 +1,23 @@ +date = "2023-10-02 09:59:00.127936" +update = "2023-10-02 10:59:00.127936" +keywords = ["bash"] +category = "Guide" +featured = true +public = true +thumbnail = "img/thumbnails/bash.png" + +[lang.en] +title = "bash arrays" +subtitle = "how to work with bash arrays" +desc = """ +bash scripting can be kind of weird. +This guide explains how they work without any fuzz. +""" + +[lang.de] +title = "Bash Arrays" +subtitle = "Wie man mit Bash Arrays arbeitet" +desc = """ +Bash Skripte sind manchmal etwas seltsam. +Hier wird erklärt, wie man mit Bash Arrays arbeitet. +""" diff --git a/gawa/blog/data/articles/de-1.md b/gawa/blog/data/articles/de-1.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-10.md b/gawa/blog/data/articles/de-10.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-2.md b/gawa/blog/data/articles/de-2.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-3.md b/gawa/blog/data/articles/de-3.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-4.md b/gawa/blog/data/articles/de-4.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-5.md b/gawa/blog/data/articles/de-5.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-6.md b/gawa/blog/data/articles/de-6.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-7.md b/gawa/blog/data/articles/de-7.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-8.md b/gawa/blog/data/articles/de-8.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-9.md b/gawa/blog/data/articles/de-9.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/de-bash-arrays.md b/gawa/blog/data/articles/de-bash-arrays.md index 37c5b49..f66f0e0 100644 --- a/gawa/blog/data/articles/de-bash-arrays.md +++ b/gawa/blog/data/articles/de-bash-arrays.md @@ -15,6 +15,9 @@ markdown rendering. | yes | super | important | | really | really | really | +cool math: $$1+2 \le \frac{1}{2}$$ +cool math: $1+2 \le \frac{1}{2}$ + ## Wait, but why? Writing about Bash is challenging because it's remarkably easy for an article diff --git a/gawa/blog/data/articles/en-1.md b/gawa/blog/data/articles/en-1.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-10.md b/gawa/blog/data/articles/en-10.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-2.md b/gawa/blog/data/articles/en-2.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-3.md b/gawa/blog/data/articles/en-3.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-4.md b/gawa/blog/data/articles/en-4.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-5.md b/gawa/blog/data/articles/en-5.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-6.md b/gawa/blog/data/articles/en-6.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-7.md b/gawa/blog/data/articles/en-7.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-8.md b/gawa/blog/data/articles/en-8.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-9.md b/gawa/blog/data/articles/en-9.md new file mode 100644 index 0000000..e69de29 diff --git a/gawa/blog/data/articles/en-bash-arrays.md b/gawa/blog/data/articles/en-bash-arrays.md index 536665b..4c43dd7 100644 --- a/gawa/blog/data/articles/en-bash-arrays.md +++ b/gawa/blog/data/articles/en-bash-arrays.md @@ -14,6 +14,9 @@ markdown rendering. | yes | super | important | | really | really | really | +cool math: $$1+2 \le \frac{1}{2}$$ +cool math: $1+2 \le \frac{1}{2}$ + ## Wait, but why? Writing about Bash is challenging because it's remarkably easy for an article diff --git a/gawa/blog/templates/blog/blogpost.html b/gawa/blog/templates/blog/blogpost.html index 09a0e79..36cdba4 100644 --- a/gawa/blog/templates/blog/blogpost.html +++ b/gawa/blog/templates/blog/blogpost.html @@ -11,12 +11,12 @@ {% block nav %} {% include 'nav.html' %} {% endblock nav %} -{% block headscripts %} +{% block head %} -{% endblock headscripts %} +{% endblock head %} {% block main %}
diff --git a/gawa/blog/templates/blog/browse.html b/gawa/blog/templates/blog/browse.html index 1b3cf4b..fb22def 100644 --- a/gawa/blog/templates/blog/browse.html +++ b/gawa/blog/templates/blog/browse.html @@ -8,12 +8,14 @@ {% block title %} {% translate "cscherr.de" %} - {% translate "Blog" %} {% endblock title %} +{% block blockname %} +{% endblock blockname %} {% block nav %} {% include 'nav.html' %} {% endblock nav %} {% block main %}
-
+

@@ -22,19 +24,47 @@

-
-
- -
+
+
diff --git a/gawa/start/templates/base.html b/gawa/start/templates/base.html index c413731..85abd3e 100644 --- a/gawa/start/templates/base.html +++ b/gawa/start/templates/base.html @@ -5,14 +5,31 @@ {% get_current_language as LANGUAGE_CODE %} - {% block title %}{% endblock title %} + + {% block title %} + {% endblock title %} + {% compress css %} - - - - + + + + + {% block head_compress_css %} + {% endblock head_compress_css %} + + {% endcompress %} + {% compress js %} + + + {% block head_compress_js %} + {% endblock head_compress_js %} {% endcompress %} {% block headscripts %} {% endblock headscripts %} @@ -22,7 +39,8 @@ {% include 'nav.html' %} {% endblock nav %}
- {% block main %}{% endblock main %} + {% block main %} + {% endblock main %}
{% compress js %} - - + + {% endcompress %} diff --git a/gawa/static/custom.css b/gawa/static/custom.css index 65eb703..7010287 100644 --- a/gawa/static/custom.css +++ b/gawa/static/custom.css @@ -2,6 +2,7 @@ .codehilite { padding: 12px; } + .linenodiv { padding-right: 4px; margin-right: 12px; @@ -16,5 +17,17 @@ main * { * * The header is typically 59.5px high. */ - scroll-margin-top: 60px; + scroll-margin-top: 60px; +} + +.tagify { + --tags-border-color: var(--bs-light-border-subtle); + --placeholder-color: var(--bs-body-color) !important; + --placeholder-color-focus: var(--bs-primary) !important; + --tag-bg: var(--bs-primary) !important; + --tags-border-color: var(--bs-border-color) !important; + --tag-border-radius: 0.375rem !important; + --tag-text-color: var( --bs-body-color) !important; + /* border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; */ + border-radius: 0.375rem; }