diff options
| author | 2020-11-14 11:50:31 +0200 | |
|---|---|---|
| committer | 2020-11-14 11:50:31 +0200 | |
| commit | 3b938762dc67da3b5c72ecf858fa39e40b72d96d (patch) | |
| tree | 18086fc0871c7c536028fb2b78359efd256163a9 | |
| parent | Add URLs for resources lists (diff) | |
Use URL tags instead hard-coded strings for directing to specific list
Diffstat (limited to '')
| -rw-r--r-- | pydis_site/templates/resources/resources.html | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/pydis_site/templates/resources/resources.html b/pydis_site/templates/resources/resources.html index 6eb32c97..352a53dd 100644 --- a/pydis_site/templates/resources/resources.html +++ b/pydis_site/templates/resources/resources.html @@ -24,7 +24,7 @@                    <div class="tile is-vertical is-9">                        <div class="tile"> -                          <a class="tile is-8 is-parent" href="/resources/reading/"> +                          <a class="tile is-8 is-parent" href="{% url "resources:resources" type="reading" %}">                                <article class="tile is-child box hero is-black" id="readingBlock">                                    <p class="title is-size-1"><i class="fad fa-book-alt" aria-hidden="true"></i> Read</p>                                    <p class="subtitle is-size-4">Lovingly curated books to explore</p> @@ -32,7 +32,7 @@                            </a>                            <div class="tile"> -                              <a class="tile is-parent" href="/resources/videos/"> +                              <a class="tile is-parent" href="{% url "resources:resources" type="videos" %}">                                    <article class="tile is-child box hero is-danger is-bold">                                        <p class="title is-size-1"><i class="fad fa-video" aria-hidden="true"></i> Watch</p>                                        <p class="subtitle is-size-4">Visually engaging</p> @@ -42,13 +42,13 @@                        </div>                        <div class="tile"> -                          <a class="tile is-parent" href="/resources/interactive/"> +                          <a class="tile is-parent" href="{% url "resources:resources" type="interactive" %}">                                <article class="tile is-child box hero is-black" id="interactiveBlock">                                    <p class="title is-size-1"><i class="fad fa-code" aria-hidden="true"></i> Try</p>                                    <p class="subtitle is-size-4">Interactively discover the possibilities</p>                                </article>                            </a> -                          <a class="tile is-8 is-parent" href="/resources/courses/"> +                          <a class="tile is-8 is-parent" href="{% url "resources:resources" type="courses" %}">                                <article class="tile is-child box hero is-success is-bold">                                    <p class="title is-size-1"><i class="fad fa-graduation-cap" aria-hidden="true"></i> Learn</p>                                    <p class="subtitle is-size-4">Structured courses with clear goals</p> @@ -61,14 +61,14 @@                <div class="tile is-ancestor">                    <div class="tile is-vertical is-9">                        <div class="tile"> -                          <a class="tile is-8 is-parent" href="/resources/communities/"> +                          <a class="tile is-8 is-parent" href="{% url "resources:resources" type="communities" %}">                                <article class="tile is-child box hero is-black" id="communitiesBlock">                                    <p class="title is-size-1"><i class="fad fa-users" aria-hidden="true"></i> Communities</p>                                    <p class="subtitle is-size-4">Some of our best friends</p>                                </article>                            </a>                            <div class="tile"> -                              <a class="tile is-parent" href="/resources/podcasts/"> +                              <a class="tile is-parent" href="{% url "resources:resources" type="podcasts" %}">                                    <article class="tile is-child box hero is-black" id="podcastsBlock">                                        <p class="title is-size-1"><i class="fad fa-podcast" aria-hidden="true"></i> Listen</p>                                        <p class="subtitle is-size-4">Regular podcasts to follow</p> @@ -77,7 +77,7 @@                            </div>                        </div>                    </div> -                  <a class="tile is-parent" href="/resources/tools/"> +                  <a class="tile is-parent" href="{% url "resources:resources" type="tools" %}">                        <article class="tile is-child box hero is-dark">                            <p class="title is-size-1"><i class="fad fa-tools" aria-hidden="true"></i> Tools</p>                            <p class="subtitle is-size-4">Things we love to use</p> | 
