Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions content/images/favicon/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions content/images/feed-icon-light-on-orange.svg
Comment thread
Dreamsorcerer marked this conversation as resolved.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions pelicanconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def sponsors(preprocessor: Preprocessor, tag: str, markup: str) -> str:
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
FEED_DOMAIN = "https://aio-libs.org"
FEED_ATOM = "feeds/atom.xml"
TAG_FEED_ATOM = "feeds/{slug}.atom.xml"

# Plugins
PLUGIN_PATHS = ("plugins",)
Expand Down
4 changes: 0 additions & 4 deletions publishconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@

RELATIVE_URLS = False

FEED_DOMAIN = "https://aio-libs.org"
FEED_ATOM = "feeds/atom.xml"
TAG_FEED_ATOM = "feeds/{slug}.atom.xml"

DELETE_OUTPUT_DIRECTORY = True
88 changes: 62 additions & 26 deletions theme/static/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 21 additions & 20 deletions theme/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
{% extends "!simple/base.html" %}

{% block head %}
{{- super() }}
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/pygment.css" />
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/main.js" defer></script>
{{- super() }}
<link rel="icon" type="image/svg+xml" href="/images/favicon/favicon.svg?v=1" />
Comment thread
Dreamsorcerer marked this conversation as resolved.
Outdated
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/pygment.css" />
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/main.js" defer></script>
{%- endblock head %}

{% block body %}
<div class="aio-pattern"></div>
<main class="aio-wrapper">
<section class="aio-nav">
{% block header %}{{ super() }}{% endblock header %}
{% block header %}
<h1 class="aio-nav__title"><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>{% if SITESUBTITLE %}<p class="aio-nav__subtitle">{{ SITESUBTITLE }}</p>{% endif %}
{% endblock header %}
{% block nav %}
<ul class="aio-nav__list">
{% for p in pages if p.prefix != "projects/" %}
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
{% endfor %}
</ul>
{% for p in pages if p.prefix != "projects/" %}
<a class="aio-nav__list-heading" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a>
{% endfor %}
<a href="/projects" class="aio-nav__list-heading">Projects</a>
<ul class="aio-nav__list" aria-label="Projects">
<ul class="aio-nav__list aio-nav__list--hide" aria-label="Projects">
{% for p in pages if p.prefix == "projects/" %}
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ p.url }}" {% if p==page %} aria-current="page" {% endif %}>{{ p.title }}</a></li>
{% endfor %}
</ul>
<a href="/news" class="aio-nav__list-heading">News</a>
<ul class="aio-nav__list" aria-label="News">
<ul class="aio-nav__list aio-nav__list--hide" aria-label="News">
{% for cat, null in tags %}
<li><a class="aio-nav__link" href="{{ SITEURL }}/{{ cat.url }}" {% if cat==category %} aria-current="page" {% endif %}>{{ cat }}</a></li>
{% endfor %}
</ul>

<div id="sponsor-sidebar" class="aio-sponsor-sidebar"></div>
<div id="sponsor-sidebar" class="aio-nav__sponsor"></div>
{% endblock nav %}
</section>
<section class="aio-content">
{% block content %}{% endblock content %}
</section>
</main>

{% block footer %}
<footer></footer>

<template id="template-sponsor-sidebar" data-sponsors='{{ SPONSORS["gold"]|tojson }}'>
<p>Featured Sponsor:</p>
<a class="aio-sponsor"><img /></a>
</template>
{% endblock footer %}
<footer>
{% block footer %}
<template id="template-sponsor-sidebar" data-sponsors='{{ SPONSORS["gold"]|tojson }}'>
<p>Sponsored by:</p>
<a class="aio-sponsor"><img /></a>
</template>
{% endblock footer %}
</footer>
{% endblock body %}
8 changes: 8 additions & 0 deletions theme/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "!simple/index.html" %}

{% block content_title %}
{{ super() }}
{% if FEED_ATOM %}
<a class="aio-post-links__item" href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml"><img class="aio-icon-inline" src="/images/feed-icon-light-on-orange.svg"> Atom feed</a>
{% endif %}
{% endblock %}
2 changes: 1 addition & 1 deletion theme/templates/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2>{{ page.title }}</h2>

{% for p in pages|sort(attribute='title') if p.prefix == "projects/" %}
<article>
<h3><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></h3>
<h2><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></h2>
{{ p.summary }}
</article>
{% endfor %}
Expand Down
8 changes: 8 additions & 0 deletions theme/templates/tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "!simple/tag.html" %}

{% block content_title %}
{{ super() }}
{% if TAG_FEED_ATOM %}
<a class="aio-post-links__item" href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM.format(slug=tag.slug) }}" type="application/atom+xml"><img class="aio-icon-inline" src="/images/feed-icon-light-on-orange.svg"> Atom feed</a>
{% endif %}
{% endblock %}
Loading