diff --git a/gawa/blog/templates/blog/featured.html b/gawa/blog/templates/blog/featured.html index 8177fef..23be296 100644 --- a/gawa/blog/templates/blog/featured.html +++ b/gawa/blog/templates/blog/featured.html @@ -4,35 +4,36 @@

{% trans "Featured" %}

{% for post in featured_posts %} -
- thumbnail -
- {% if LANGUAGE_CODE == "de" %} -
{{ post.title_de }}{{ post.subtitle }}
-

{{ post.desc_de }}

- {% elif LANGUAGE_CODE == "en" %} -
{{ post.title_en }}{{ post.subtitle }}
-

{{ post.desc_en }}

- {% else %} -
{{ post.title_en }}{{ post.subtitle }}
-

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

- {% endif %} -
- +
+
+ +
+
{% endfor %} diff --git a/gawa/media/img/thumbnails/AlbumCover.png b/gawa/media/img/thumbnails/AlbumCover.png new file mode 100644 index 0000000..51a81fa Binary files /dev/null and b/gawa/media/img/thumbnails/AlbumCover.png differ diff --git a/gawa/media/img/thumbnails/Center_of_the_Milky_Way_Galaxy_IV__Composite.jpg b/gawa/media/img/thumbnails/Center_of_the_Milky_Way_Galaxy_IV__Composite.jpg new file mode 100644 index 0000000..395d96a Binary files /dev/null and b/gawa/media/img/thumbnails/Center_of_the_Milky_Way_Galaxy_IV__Composite.jpg differ diff --git a/gawa/start/migrations/0004_auto_20230604_2312.py b/gawa/start/migrations/0004_auto_20230604_2312.py new file mode 100644 index 0000000..079904a --- /dev/null +++ b/gawa/start/migrations/0004_auto_20230604_2312.py @@ -0,0 +1,35 @@ +# Generated by Django 3.2.19 on 2023-06-04 21:12 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('start', '0003_searchable_public'), + ] + + operations = [ + migrations.AlterModelOptions( + name='keyword', + options={'verbose_name': 'Keyword', 'verbose_name_plural': 'keywords'}, + ), + migrations.AlterModelOptions( + name='searchable', + options={'verbose_name': 'Searchable', 'verbose_name_plural': 'Searchables'}, + ), + migrations.AlterModelOptions( + name='staticsite', + options={'verbose_name': 'static site', 'verbose_name_plural': 'static sites'}, + ), + migrations.AlterField( + model_name='searchable', + name='desc_de', + field=models.CharField(default='Beschreibung DE', max_length=250), + ), + migrations.AlterField( + model_name='searchable', + name='desc_en', + field=models.CharField(default='Description EN', max_length=250), + ), + ] diff --git a/gawa/start/models.py b/gawa/start/models.py index b4a30da..5247646 100644 --- a/gawa/start/models.py +++ b/gawa/start/models.py @@ -30,8 +30,8 @@ class Searchable(models.Model): title_en = models.CharField(max_length=50, default="title en") subtitle_de = models.CharField(max_length=50, blank=True) subtitle_en = models.CharField(max_length=50, blank=True) - desc_de = models.CharField(max_length=250, unique=True, default="Beschreibung DE") - desc_en = models.CharField(max_length=250, unique=True, default="Description EN") + desc_de = models.CharField(max_length=250, unique=False, default="Beschreibung DE") + desc_en = models.CharField(max_length=250, unique=False, default="Description EN") # may be empty/blank for some entries date = models.DateField(blank=True, null=True) keywords = models.ManyToManyField(Keyword)