1
0
Fork 0
forked from github/pelican

feat: add skip links and note/warn blocks

This commit is contained in:
Oliver Ladner 2025-01-07 17:27:27 +01:00
commit c188ce1152
3 changed files with 100 additions and 51 deletions

View file

@ -57,10 +57,11 @@
<!--header-->
<div class="col-span-9 md:col-span-6 bg-rp-dawn-overlay dark:bg-rp-moon-overlay p-8">
<header>
<div id="skiptocontent"><a href="#content">skip to main content</a></div>
<hgroup>
<h1 class="text-4xl md:text-7xl font-bold text-rp-dawn-foam"><a class="no-underline text-rp-dawn-pine dark:text-rp-moon-foam" href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
{% if SITESUBTITLE %}
<div class="font-subheading text-xl -mt-9 ml-14 md:text-2xl text-rp-dawn-love dark:text-rp-moon-iris">{{ SITESUBTITLE }}</div>
<h2 class="font-subheading text-xl -mt-9 ml-14 md:text-2xl text-rp-dawn-love dark:text-rp-moon-iris">{{ SITESUBTITLE }}</h2>
{% endif %}
</hgroup>
</header>
@ -98,7 +99,7 @@
<!--Empty spacer-->
</div>
<div class="col-span-7 bg-rp-dawn-base dark:bg-rp-moon-base p-4">
<main>
<main id="content">
{% block content %}
{% endblock %}
</main>