diff --git a/catalog/templates/catalog/course.html b/catalog/templates/catalog/course.html
index 1bb4c280..51e2fae3 100644
--- a/catalog/templates/catalog/course.html
+++ b/catalog/templates/catalog/course.html
@@ -97,7 +97,7 @@
data-action="change->course-filter#filter"
data-course-filter-target="tag"
/>
-
+
{% endfor %}
@@ -134,16 +134,15 @@
{{ document.user.name }} |
{{ document.pages }} page{{ document.pages|pluralize }} |
{{ document.date|date:"F Y"|capfirst }}
-
- {% for kw in document.tags.all %}
-
- {{ kw }}
-
- {% endfor %}
-
+ {% for kw in document.tags.all %}
+
+ {{kw.icon|safe}}
+
+ {% endfor %}
diff --git a/tags/migrations/0002_tag_icon.py b/tags/migrations/0002_tag_icon.py
new file mode 100644
index 00000000..75561e52
--- /dev/null
+++ b/tags/migrations/0002_tag_icon.py
@@ -0,0 +1,17 @@
+# Generated by Django 4.2.1 on 2023-05-31 15:07
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("tags", "0001_initial"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="tag",
+ name="icon",
+ field=models.CharField(blank=True, max_length=1000),
+ ),
+ ]
diff --git a/tags/models.py b/tags/models.py
index 5f2d8a33..98caf14b 100644
--- a/tags/models.py
+++ b/tags/models.py
@@ -5,6 +5,7 @@
class Tag(models.Model):
name = models.CharField(max_length=50, unique=True)
+ icon = models.CharField(max_length=1000, blank=True)
@property
def color(self):