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.
This commit is contained in:
Pierre Equoy 2022-01-22 21:31:37 +08:00
commit 16b8a03ad9

View file

@ -33,11 +33,11 @@
{% endblock head %} {% endblock head %}
</head> </head>
<body id="index" class="home"> <body>
<header id="banner" class="body"> <header>
<h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> <h1><a href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
</header><!-- /#banner --> </header>
<nav id="menu"><ul> <nav><ul>
{% for title, link in MENUITEMS %} {% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li> <li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %} {% endfor %}
@ -51,16 +51,16 @@
<li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul></nav><!-- /#menu --> </ul></nav>
<main> <main>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</main> </main>
<footer id="contentinfo" class="body"> <footer>
<address id="about" class="vcard body"> <address id="about" class="vcard body">
Proudly powered by <a href="https://getpelican.com/">Pelican</a>, Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
which takes great advantage of <a href="https://www.python.org/">Python</a>. which takes great advantage of <a href="https://www.python.org/">Python</a>.
</address><!-- /#about --> </address><!-- /#about -->
</footer><!-- /#contentinfo --> </footer>
</body> </body>
</html> </html>