Skip to content

Commit ab58bdc

Browse files
committed
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.
1 parent 4794752 commit ab58bdc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

pelican/themes/simple/templates/base.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
{% endblock head %}
3434
</head>
3535

36-
<body id="index" class="home">
37-
<header id="banner" class="body">
36+
<body>
37+
<header>
3838
<h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
39-
</header><!-- /#banner -->
40-
<nav id="menu"><ul>
39+
</header>
40+
<nav><ul>
4141
{% for title, link in MENUITEMS %}
4242
<li><a href="{{ link }}">{{ title }}</a></li>
4343
{% endfor %}
@@ -51,16 +51,16 @@ <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITE
5151
<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
5252
{% endfor %}
5353
{% endif %}
54-
</ul></nav><!-- /#menu -->
54+
</ul></nav>
5555
<main>
5656
{% block content %}
5757
{% endblock %}
5858
</main>
59-
<footer id="contentinfo" class="body">
59+
<footer>
6060
<address id="about" class="vcard body">
6161
Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
6262
which takes great advantage of <a href="https://www.python.org/">Python</a>.
6363
</address><!-- /#about -->
64-
</footer><!-- /#contentinfo -->
64+
</footer>
6565
</body>
6666
</html>

0 commit comments

Comments
 (0)