diff options
author | Pierre Equoy <pierre.equoy@protonmail.com> | 2022-01-22 21:31:37 +0800 |
---|---|---|
committer | Pierre Equoy <pierre.equoy@protonmail.com> | 2022-02-20 10:29:46 +0800 |
commit | 16b8a03ad92c32788cb4ceb2d8d4e0a6f670c0a1 (patch) | |
tree | b22e6a9a3199db8b90cd9bcbeedf961a7b49b99f | |
parent | 34ca2e1de23a7b3afa87bd7afcf5801801938dcd (diff) | |
download | pelican-16b8a03ad92c32788cb4ceb2d8d4e0a6f670c0a1.tar.gz |
Remove unnecessary ids and classes in simple theme
All of the modified HTML tags can be accessed in CSS without the need
for a dedicated id or an additional class.
-rw-r--r-- | pelican/themes/simple/templates/base.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pelican/themes/simple/templates/base.html b/pelican/themes/simple/templates/base.html index 6ac81e26..1d8ae843 100644 --- a/pelican/themes/simple/templates/base.html +++ b/pelican/themes/simple/templates/base.html @@ -33,11 +33,11 @@ {% endblock head %} </head> -<body id="index" class="home"> - <header id="banner" class="body"> +<body> + <header> <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> - </header><!-- /#banner --> - <nav id="menu"><ul> + </header> + <nav><ul> {% for title, link in MENUITEMS %} <li><a href="{{ link }}">{{ title }}</a></li> {% endfor %} @@ -51,16 +51,16 @@ <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> {% endfor %} {% endif %} - </ul></nav><!-- /#menu --> + </ul></nav> <main> {% block content %} {% endblock %} </main> - <footer id="contentinfo" class="body"> + <footer> <address id="about" class="vcard body"> Proudly powered by <a href="https://getpelican.com/">Pelican</a>, which takes great advantage of <a href="https://www.python.org/">Python</a>. </address><!-- /#about --> - </footer><!-- /#contentinfo --> + </footer> </body> </html> |