Skip to content
Snippets Groups Projects
Commit 26009ac4 authored by Ciaran Ainsworth's avatar Ciaran Ainsworth
Browse files

Add admonition prototype

parent ba282642
No related branches found
No related tags found
No related merge requests found
Pipeline #19275 passed
......@@ -46,6 +46,14 @@ MARKDOWN = {
'extensions' : ['toc'],
'extension_configs': {
'markdown.extensions.toc': {'anchorlink': 'true'},
'markdown.extensions.admonition': {},
},
'output_format': 'html5',
}
DONATION_MESSAGES = [
'Like what we\'re doing? Consider donating to help us out 🙏',
'Help us keep the lights on around here by donating to the project 💡',
'Funkwhale is free software, but developing it still requires money. Consider donating to help us keep going 💪',
'❤️ Funkwhale? Why not help us out by donating what you can?'
]
......@@ -272,3 +272,37 @@ img {
height: 32px;
filter: invert(100%);
}
.admonition {
clear: both;
background: #e7f2fa;
padding-top: 12px;
padding-left: 12px;
padding-right: 12px;
line-height: 24px;
margin-bottom: 24px;
box-sizing: border-box;
text-align: right;
border-radius: 8px;
}
.admonition p {
text-align: left;
}
.admonition-title {
font-weight:700;
display:block;
color:#fff;
background:#6ab0de;
padding:6px 12px;
margin:-12px -12px 12px;
box-sizing: border-box;
text-align: left;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.admonition a {
margin-right: -12px;
}
{% extends "base.html" %}
{% import "donations.html" as donations with context %}
{% block head %}
{{ super() }}
<!-- Facebook Meta Data -->
......@@ -14,6 +15,10 @@
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
<div class="entry-content blog-post">
{{ article.content }}
{% if article.donation %}
<br>
{{ donations }}
{% endif %}
</div>
<div class="post_list">
<span>By </span>
......
{% block content %}
<div class="admonition">
<p class="admonition-title">Want to help?</p>
<p>{{ DONATION_MESSAGES|random }} </p>
<a class="button is-primary" href="https://funkwhale.audio/en_US/support-us">Support us!</a>
</div>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment