From 470707420bc1e853a483a67fe099e7b784362787 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 2 Jun 2023 15:46:48 +0200 Subject: [PATCH] blog index layout --- gawa/blog/templates/blog/featured.html | 88 +++++++++++++++++++ gawa/blog/templates/blog/index.html | 13 ++- gawa/blog/templates/blog/nav.html | 32 +------ gawa/start/templates/base.html | 2 +- gawa/start/templates/dark_light_switch.html | 23 +++++ gawa/start/templates/main_search_form.html | 6 ++ .../templates/start/mainsearch_snippet.html | 0 gawa/start/templates/start/nav.html | 53 +++++------ gawa/start/templates/start/search.html | 2 +- 9 files changed, 153 insertions(+), 66 deletions(-) create mode 100644 gawa/blog/templates/blog/featured.html create mode 100644 gawa/start/templates/dark_light_switch.html create mode 100644 gawa/start/templates/main_search_form.html delete mode 100644 gawa/start/templates/start/mainsearch_snippet.html diff --git a/gawa/blog/templates/blog/featured.html b/gawa/blog/templates/blog/featured.html new file mode 100644 index 0000000..2437058 --- /dev/null +++ b/gawa/blog/templates/blog/featured.html @@ -0,0 +1,88 @@ +{% load i18n %} +
+

{% trans "Featured" %}

+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
+ ... +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+
+
diff --git a/gawa/blog/templates/blog/index.html b/gawa/blog/templates/blog/index.html index 0de2ddd..663b6fc 100644 --- a/gawa/blog/templates/blog/index.html +++ b/gawa/blog/templates/blog/index.html @@ -13,7 +13,7 @@

{% translate "Blog" %}

-
+

{% translate "Writeups" %}

{% blocktranslate %} @@ -21,24 +21,29 @@ {% endblocktranslate %}

-
+

{% translate "Open Source" %}

{% blocktranslate %} If something comes up, I may post Linux guides or my thoughts on current processes here. {% endblocktranslate %}
-
+

{% translate "Selfhosting" %}

{% blocktranslate %} Selfhosting is something that I'm really fond of. There will be guides and thoughts about that too {% endblocktranslate %}
-
+

{% translate "Anything Really" %}

{% blocktranslate %} This is my personal Blog after all, I will put here whatever I want and you can't stop me. {% endblocktranslate %}
+
+

{% translate "Looking for anything specific?" %}

+ {% include 'main_search_form.html' %} +
+ {% include 'blog/featured.html' %}
{% endblock main %} diff --git a/gawa/blog/templates/blog/nav.html b/gawa/blog/templates/blog/nav.html index 8be33c3..d817b2f 100644 --- a/gawa/blog/templates/blog/nav.html +++ b/gawa/blog/templates/blog/nav.html @@ -43,38 +43,10 @@ - {% block MainSearchFormSpace %} - - {% endblock MainSearchFormSpace %} + {% include 'main_search_form.html' %}
diff --git a/gawa/start/templates/main_search_form.html b/gawa/start/templates/main_search_form.html new file mode 100644 index 0000000..671241c --- /dev/null +++ b/gawa/start/templates/main_search_form.html @@ -0,0 +1,6 @@ +{% load i18n %} + diff --git a/gawa/start/templates/start/mainsearch_snippet.html b/gawa/start/templates/start/mainsearch_snippet.html deleted file mode 100644 index e69de29..0000000 diff --git a/gawa/start/templates/start/nav.html b/gawa/start/templates/start/nav.html index 338826c..32bd6b8 100644 --- a/gawa/start/templates/start/nav.html +++ b/gawa/start/templates/start/nav.html @@ -43,38 +43,31 @@ - {% block MainSearchFormSpace %} - - {% endblock MainSearchFormSpace %} + {% include 'main_search_form.html' %}
+ diff --git a/gawa/start/templates/start/search.html b/gawa/start/templates/start/search.html index b296968..ef63f8d 100644 --- a/gawa/start/templates/start/search.html +++ b/gawa/start/templates/start/search.html @@ -1,4 +1,4 @@ -{% extends 'start/base.html' %} +{% extends 'base.html' %} {% load i18n %} {% get_current_language as LANGUAGE_CODE %} {% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %}