diff options
| author | 2020-10-05 18:41:50 +0300 | |
|---|---|---|
| committer | 2020-10-05 18:41:50 +0300 | |
| commit | 48c092bc9ce79e469d7a8ec9242eefe7fdf1ceff (patch) | |
| tree | dd8b6d013974f87b51fb8ec76abf67a24b1cac27 /pydis_site | |
| parent | Remove last modified field from article (diff) | |
Implement custom icons for articles
Diffstat (limited to 'pydis_site')
| -rw-r--r-- | pydis_site/apps/content/resources/content/guides/how-to-write-a-guide.md | 2 | ||||
| -rw-r--r-- | pydis_site/templates/content/articles.html | 2 | ||||
| -rw-r--r-- | pydis_site/templates/content/category.html | 2 | 
3 files changed, 4 insertions, 2 deletions
| diff --git a/pydis_site/apps/content/resources/content/guides/how-to-write-a-guide.md b/pydis_site/apps/content/resources/content/guides/how-to-write-a-guide.md index 8ea438a2..dc822d14 100644 --- a/pydis_site/apps/content/resources/content/guides/how-to-write-a-guide.md +++ b/pydis_site/apps/content/resources/content/guides/how-to-write-a-guide.md @@ -1,6 +1,8 @@  ---  title: How to Write a Guide  short_description: Learn how to write a guide for this website +icon_class: fas +icon: fa-info  ---  When you are interested about how to write guide for this site (like this), then you can learn about it here. diff --git a/pydis_site/templates/content/articles.html b/pydis_site/templates/content/articles.html index 363bbb4f..35e5db16 100644 --- a/pydis_site/templates/content/articles.html +++ b/pydis_site/templates/content/articles.html @@ -26,7 +26,7 @@                  {% for article, data in content.items %}                      <div class="box" style="max-width: 800px;">                          <span class="icon is-size-4 is-medium"> -                            <i class="fab fa-python is-size-3 is-black has-icon-padding" aria-hidden="true"></i> +                            <i class="{{ data.icon_class|default:"fab" }} {{ data.icon|default:"fa-python" }} is-size-3 is-black has-icon-padding" aria-hidden="true"></i>                          </span>                          <a href="{{ article }}/">                                  <span class="is-size-4 has-text-weight-bold">{{ data.title }}</span> diff --git a/pydis_site/templates/content/category.html b/pydis_site/templates/content/category.html index c2201745..3dec9259 100644 --- a/pydis_site/templates/content/category.html +++ b/pydis_site/templates/content/category.html @@ -30,7 +30,7 @@                  {% for article, data in content.items %}                      <div class="box" style="max-width: 800px;">                          <span class="icon is-size-4 is-medium"> -                            <i class="fab fa-python is-size-3 is-black has-icon-padding" aria-hidden="true"></i> +                            <i class="{{ data.icon_class|default:"fab" }} {{ data.icon|default:"fa-python" }} is-size-3 is-black has-icon-padding" aria-hidden="true"></i>                          </span>                          <a href="/content/category/{{ category_name }}/{{ article }}/">                                  <span class="is-size-4 has-text-weight-bold">{{ data.title }}</span> | 
