diff --git a/gawa/blog/templates/blog/featured.html b/gawa/blog/templates/blog/featured.html index 65f9a74..eef367f 100644 --- a/gawa/blog/templates/blog/featured.html +++ b/gawa/blog/templates/blog/featured.html @@ -2,9 +2,9 @@ {% get_current_language as LANGUAGE_CODE %}

{% trans "Featured" %}

-
+
{% for post in featured_posts %} -
+
thumbnail
diff --git a/gawa/blog/templates/blog/index.html b/gawa/blog/templates/blog/index.html index 93a70c6..c9ddc28 100644 --- a/gawa/blog/templates/blog/index.html +++ b/gawa/blog/templates/blog/index.html @@ -3,9 +3,6 @@ {% get_current_language as LANGUAGE_CODE %} {% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %} {% block title %}{% translate "cscherr.de" %} - {% translate "Blog" %}{% endblock title %} -{% block nav %} - {% include 'blog/nav.html' %} -{% endblock nav %} {% block main %}
diff --git a/gawa/start/models.py b/gawa/start/models.py index fa06f3d..f5a02f2 100644 --- a/gawa/start/models.py +++ b/gawa/start/models.py @@ -90,6 +90,7 @@ class Link(Searchable): # the actual link url = models.URLField(unique=True, null=False, primary_key=True) + favicon = models.ImageField(blank=True, upload_to="img/links/favicons") def __str__(self): return f"{{<{self.__class__.__name__}>\"{self.title_en}\"}}" diff --git a/gawa/start/templates/start/links.html b/gawa/start/templates/start/links.html index 06575ef..ea29d54 100644 --- a/gawa/start/templates/start/links.html +++ b/gawa/start/templates/start/links.html @@ -4,24 +4,16 @@ {% block languagecode %}{{ LANGUAGE_CODE }}{% endblock languagecode %} {% block title %}{% translate "cscherr.de" %} - {% translate "Links" %}{% endblock title %} {% block main %} -
-
-

{% translate "cscherr.de" %}

-

Untertitel

-
-
-

- {% translate "Wer bin ich?" %} - {% translate "Professionell" %} -

-
-
+
+

{% trans "Links" %}

+
{% for link in links %} - -
-
+ - +
+
    + {% for keyword in link.keywords.all %} + {% if LANGUAGE_CODE == "de" %} +
  • {{ keyword.text_de }}
  • + {% elif LANGUAGE_CODE == "en" %} +
  • {{ keyword.text_en }}
  • + {% else %} +
  • {{ keyword.text_en }}
  • + {% endif %} + {% endfor %} +
  • + + {% translate "visit" %} +
  • +
+
+ +
{% endfor %}
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
-
-
susamog
-

sus

-
-
-
{% endblock main %}