Implemented dynamic generation of newsletter.

Takes the contents of the latest event and renders mailchimp-friendly html on /newsletter_content/ that can be inserted in a code block into mailchimp easily
This commit is contained in:
Open-Steps.org 2015-04-24 16:00:48 +02:00
parent 45d6465031
commit 6918dfddce
58 changed files with 555 additions and 55 deletions

View file

@ -21,7 +21,7 @@
<!-- Pages -->
{% for page in site.pages %}
{% if page.title %}
{% if page.title and page.visible == true %}
<a class="header-btn navbar-text right button menu-icon hvr-sweep-to-top" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
{% endif %}
{% endfor %}
@ -43,7 +43,7 @@
<!-- Pages -->
{% assign sorted_pages = (site.pages | sort: 'order') %}
{% for page in sorted_pages %}
{% if page.title %}
{% if page.title and page.visible == true %}
<a class="menu-icon-big navbar-text right button hvr-sweep-to-top" href="{{ page.url | prepend: site.baseurl }}"><i class="fa fa-{{ page.icon}}"></i></a>
{% endif %}
{% endfor %}
@ -96,7 +96,7 @@
<div class="row">
<div class="col-md-7">
<h4><i class="fa fa-newspaper-o"></i> Join our newsletter</h4>
{% include newsletter.html %}
{% include join_newsletter.html %}
</div>
<div class="col-md-5">
<h4><i class="fa fa-share-alt"></i> Spread the word</h4>