diff options
Diffstat (limited to 'pydis_site')
| -rw-r--r-- | pydis_site/__init__.py | 5 | ||||
| -rw-r--r-- | pydis_site/apps/home/templatetags/extra_filters.py | 2 | ||||
| -rw-r--r-- | pydis_site/templates/base/navbar.html | 18 | 
3 files changed, 10 insertions, 15 deletions
diff --git a/pydis_site/__init__.py b/pydis_site/__init__.py index df67cf71..c15c59c8 100644 --- a/pydis_site/__init__.py +++ b/pydis_site/__init__.py @@ -1,8 +1,3 @@ -from wiki.plugins.macros.mdx import toc - -# Remove the toc header prefix. There's no option for this, so we gotta monkey patch it. -toc.HEADER_ID_PREFIX = '' -  # Empty list of validators for Allauth to ponder over. This is referred to in settings.py  # by a string because Allauth won't let us just give it a list _there_, we have to point  # at a list _somewhere else_ instead. diff --git a/pydis_site/apps/home/templatetags/extra_filters.py b/pydis_site/apps/home/templatetags/extra_filters.py index d63b3245..89b45831 100644 --- a/pydis_site/apps/home/templatetags/extra_filters.py +++ b/pydis_site/apps/home/templatetags/extra_filters.py @@ -11,7 +11,7 @@ def starts_with(value: str, arg: str) -> bool:      Usage:      ```django -        {% if request.url | starts_with:"/wiki" %} +        {% if request.url | starts_with:"/events" %}            ...          {% endif %}      ``` diff --git a/pydis_site/templates/base/navbar.html b/pydis_site/templates/base/navbar.html index c2915025..dd68949b 100644 --- a/pydis_site/templates/base/navbar.html +++ b/pydis_site/templates/base/navbar.html @@ -62,35 +62,35 @@            More          </a>          <div class="navbar-dropdown"> -          <a class="navbar-item" href="{% url 'wiki:get' path="resources/" %}"> +          <a class="navbar-item" href="#">              Resources            </a> -          <a class="navbar-item" href="{% url 'wiki:get' path="resources/tools/" %}"> +          <a class="navbar-item" href="#">              Tools            </a> -          <a class="navbar-item" href="{% url 'wiki:get' path="contributing/" %}"> +          <a class="navbar-item" href="#">              Contributing            </a> -          <a class="navbar-item" href="{% url 'wiki:get' path="frequently-asked-questions/" %}"> +          <a class="navbar-item" href="#">              FAQ            </a> -          <a class="navbar-item" href="{% url 'wiki:get' path="rules/" %}"> +          <a class="navbar-item" href="#">              Rules            </a> -          <a class="navbar-item" href="{% url 'wiki:get' path="code-of-conduct/" %}"> +          <a class="navbar-item" href="#">              Code of Conduct            </a> -          <a class="navbar-item" href="{% url 'wiki:get' path="privacy/" %}"> +          <a class="navbar-item" href="#">              Privacy            </a>            <hr class="navbar-divider">            <div class="navbar-item">              <strong>Events</strong>            </div> -          <a class="navbar-item" href="{% url 'wiki:get' path="code-jams/code-jam-7/" %}"> +          <a class="navbar-item" href="#">              Most Recent: Code Jam 7            </a> -          <a class="navbar-item" href="{% url 'wiki:get' path="events/" %}"> +          <a class="navbar-item" href="#">              All events            </a>            <hr class="navbar-divider">  |