Allow custom CSS in default blog theme if user is Pro. Addresses #16.

master
Nick Sergeant 2013-01-20 00:17:43 -05:00
parent dfefbe05f8
commit dda0d380a8
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,14 @@
window.blog_post = true;
{% endblock %}
{% block css %}
{% if blog_user.profile.is_pro and custom_css %}
<style type="text/css">
{{ custom_css.code }}
</style>
{% endif %}
{% endblock %}
{% block header %}
<header class="main">
<div class="inner group">

View File

@ -25,6 +25,8 @@
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ request.path }}?rss{% if not public %}&amp;api_key={{ request.user.api_key.key }}{% endif %}" />
{% endif %}
{% block css %}{% endblock %}
<!--[if IE]>
<style type="text/css">
.group {