diff options
author | 2022-10-28 21:27:17 +0800 | |
---|---|---|
committer | 2023-05-06 11:04:36 +0200 | |
commit | 1bed1356ab5f58af282315fa059d634766e3592e (patch) | |
tree | 6963b65611a2cb1275d7b7c4a63af9bb484df7c3 /pydis_site/templates/content | |
parent | feat: Edit on GitHub button for content articles (diff) |
Edit on GitHub link instead of button
- Before the title
- Aligned left - more mobile-friendly
- Simpler page structure
- I personally don't think it makes sense for a simple link to a page's
source be a button. Plus, it's similar to the style of other docs like
VS Code
Diffstat (limited to 'pydis_site/templates/content')
-rw-r--r-- | pydis_site/templates/content/base.html | 1 | ||||
-rw-r--r-- | pydis_site/templates/content/page.html | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/pydis_site/templates/content/base.html b/pydis_site/templates/content/base.html index 8f6fd1d8..2fd721a3 100644 --- a/pydis_site/templates/content/base.html +++ b/pydis_site/templates/content/base.html @@ -1,6 +1,5 @@ {% extends 'base/base.html' %} {% load static %} -{% load page_src %} {% block title %}{{ page_title }}{% endblock %} {% block head %} diff --git a/pydis_site/templates/content/page.html b/pydis_site/templates/content/page.html index 679ecec6..57677243 100644 --- a/pydis_site/templates/content/page.html +++ b/pydis_site/templates/content/page.html @@ -1,6 +1,12 @@ {% extends 'content/base.html' %} +{% load page_src %} {% block page_content %} + <p><a href="{{ request.path | page_src_url }}"> + <i class="fa-solid fa-pencil"></i> + <b>Edit on GitHub</b> + </a></p> + <h1 class="title is-flex">{{ page_title }}</h1> {% if relevant_links or toc %} <div class="columns is-variable is-8"> <div class="column is-two-thirds"> |