Skip to content

Commit

Permalink
Remove unnecessary ids and classes in simple theme
Browse files Browse the repository at this point in the history
All of the modified HTML tags can be accessed in CSS without the need
for a dedicated id or an additional class.
  • Loading branch information
pieqq committed Feb 20, 2022
1 parent 34ca2e1 commit 16b8a03
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pelican/themes/simple/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -51,16 +51,16 @@ <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITE
<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>

0 comments on commit 16b8a03

Please sign in to comment.