forked from github/pelican
feat: add work in progress state
This commit is contained in:
parent
84db21c724
commit
de5b3aec04
14 changed files with 2537 additions and 37 deletions
66
pelican/themes/simple/templates/base.html
vendored
66
pelican/themes/simple/templates/base.html
vendored
|
|
@ -36,37 +36,67 @@
|
|||
{% if TAG_FEED_RSS and tag %}
|
||||
<link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_RSS.format(slug=tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME|striptags }} Tags RSS Feed" />
|
||||
{% endif %}
|
||||
<link href="https://api.fontshare.com/v2/css?f[]=recia@400&f[]=erode@600&display=swap" rel="stylesheet" />
|
||||
{% endblock head %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<hgroup><h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}</hgroup>
|
||||
<nav><ul>
|
||||
<div class="grid grid-cols-5">
|
||||
<div class="col-span-3 bg-green-400 p-8">
|
||||
<header>
|
||||
<hgroup>
|
||||
<h1 class="font-bold"><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
|
||||
{% if SITESUBTITLE %}
|
||||
<p class="text-3xl font-bold text-slate-500 italic">{{ SITESUBTITLE }}</p>
|
||||
{% endif %}
|
||||
</hgroup>
|
||||
</header>
|
||||
</div>
|
||||
<div class="col-span-2">
|
||||
<nav class="bg-green-700/95 p-4 text-2xl">
|
||||
<ul class="list-none">
|
||||
{% for title, link in MENUITEMS %}
|
||||
<li><a href="{{ link }}">{{ title }}</a></li>
|
||||
<li><a href="{{ link }}" class="no-underline">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% for title, link in LINKS %}
|
||||
<li><a href="{{ link }}" class="no-underline">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% for p in pages %}
|
||||
<li><a href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
|
||||
<li class="hover:bg-red-800"><a href="{{ SITEURL }}/{{ p.url }}" class="no-underline" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if DISPLAY_CATEGORIES_ON_MENU %}
|
||||
{% for cat, null in categories %}
|
||||
<li><a href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat}}</a></li>
|
||||
<li class="target:border-blue-400 hover:bg-blue-800"><a href="{{ SITEURL }}/{{ cat.url }}" class="no-underline" {% if cat==category %} aria-current="page" {% endif %}>{{ cat}}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul></nav>
|
||||
</header>
|
||||
<main>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</main>
|
||||
<footer>
|
||||
<address>
|
||||
Proudly powered by <a rel="nofollow" href="https://getpelican.com/">Pelican</a>,
|
||||
which takes great advantage of <a rel="nofollow" href="https://www.python.org/">Python</a>.
|
||||
</address>
|
||||
</footer>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="bg-green-200">
|
||||
</div>
|
||||
<div class="col-span-3 bg-green-200 p-4">
|
||||
<main>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</main>
|
||||
</div>
|
||||
<div class="bg-green-200">
|
||||
</div>
|
||||
<div class="bg-gradient-to-b from-green-200 from-10% to-green-400/95">
|
||||
</div>
|
||||
<div class="col-span-3 pt-20 pb-60 bg-gradient-to-b from-green-200 from-10% to-green-400/95">
|
||||
<footer>
|
||||
<div class="flex justify-between text-center">
|
||||
<div>Generated by <a href="https://github.com/getpelican/pelican" target="_blank">Pelican</a></div>
|
||||
<div>100% organic content licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display: inline-block">CC BY-SA 4.0</a></div>
|
||||
<div><a href="https://buymeacoffee.com/lugh" target="_blank">Buy me a coffee?</a></div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<div class="bg-gradient-to-b from-green-200 from-10% to-green-400/95">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue