1
0
Fork 0

Simplified Theme

This commit is contained in:
Moritz »mo.« Sauer 2015-02-17 21:34:07 +01:00
parent 5f5bf5659e
commit 74c2f9a235
42 changed files with 424 additions and 426 deletions

View file

@ -3,6 +3,7 @@
{% if page.header.image_fullwidth %}
<script>
$("#masthead").backstretch("{{ site.url }}/images/{{ page.header.image_fullwidth }}", {fade: 700});
$("#masthead-with-text").backstretch("{{ site.url }}/images/{{ page.header.image_fullwidth }}", {fade: 700});
</script>
{% endif %}

View file

@ -29,7 +29,7 @@
{% if site.google_site_verification %}<meta name="google-site-verification" content="{{ site.google_site_verification}}" />{% endif %}
{% if site.bing_webmastertools_id %}<meta name="msvalidate.01" content="{{ site.bing_webmastertools_id }}" />{% endif %}
{% if page.meta_description %}<meta name="description" content="{{ page.meta_description | strip_html | escape }}"/>{% elsif page.description %}<meta name="description" content="{{ page.description | strip_html | escape }}"/>{% elsif site.description %}<meta name="description" content="{{ site.description | strip_html | escape }}"/>{% endif %}
{% if page.meta_description %}<meta name="description" content="{{ page.meta_description | strip_html | escape }}"/>{% elsif page.teaser %}<meta name="description" content="{{ page.teaser | strip_html | escape }}"/>{% elsif site.description %}<meta name="description" content="{{ site.description | strip_html | escape }}"/>{% endif %}
{% if site.google_author %}<link rel="author" href="{{ site.google_author }}"/>{% endif %}
{% if site.favicon %}<link rel="shortcut icon" href="{{ site.url }}{{ site.favicon }}" type="image/png" />{% endif %}

View file

@ -1,51 +1,67 @@
{% if page.header == NULL and page.header.image_fullwidth == NULL and page.header.pattern == NULL and page.header.background-color == NULL %}
{% if page.header == NULL and page.header.image_fullwidth == NULL and page.header.pattern == NULL and page.header.background-color == NULL and page.header.title == NULL %}
<div id="masthead-no-image-header">
<div class="row">
<div class="small-12 columns">
<a id="logo" href="{{ site.url }}" title="{{ site.title }}  {{ site.slogan }}">
<img src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }}  {{ site.slogan }}">
</a>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
{% elsif page.header.title %}
<div id="masthead-with-text" style="{% if page.header.background-color %}background: {{ page.header.background-color }};{% endif %} {% if page.header.image_fullwidth %}{% elsif page.header.pattern %}background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('{{ site.url }}/images/{{ page.header.pattern }}'){% endif %}">
<div class="row">
<div class="small-12 columns">
<div class="masthead-title">{{ page.header.title }}</div>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
<div id="masthead-no-image-header">
<div class="row">
<div class="small-12 columns">
<a id="logo" href="{{ site.url }}" title="{{ site.title }}  {{ site.slogan }}">
<img src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }}  {{ site.slogan }}">
</a>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
{% elsif page.header.image_fullwidth %}
<div id="masthead">
<div class="row">
<div class="small-12 columns">
<a id="logo" href="{{ site.url }}" title="{{ site.title }}  {{ site.slogan }}">
<img src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }}  {{ site.slogan }}">
</a>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
<div id="masthead">
<div class="row">
<div class="small-12 columns">
<a id="logo" href="{{ site.url }}" title="{{ site.title }}  {{ site.slogan }}">
<img src="{{ site.url }}/images/{{ site.logo }}" alt="{{ site.title }}  {{ site.slogan }}">
</a>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
{% elsif page.header.pattern %}
<div id="masthead-with-pattern" style="background: url('{{ site.url }}/images/{{ page.header.pattern }}')">
<div class="row">
<div class="small-12 columns">
<img src="{{ site.url }}/images/{{ page.header.image }}" alt="{{ site.title }}">
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
<div id="masthead-with-pattern" style="background: url('{{ site.url }}/images/{{ page.header.pattern }}')">
<div class="row">
<div class="small-12 columns">
<img src="{{ site.url }}/images/{{ page.header.image }}" alt="{{ site.title }}">
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
{% elsif page.header.background-color %}
<div id="masthead-with-background-color" style="background: {{ page.header.background-color }};">
<div class="row">
<div class="small-12 columns">
<img src="{{ site.url }}/images/{{ page.header.image }}" alt="{{ site.title }}">
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
<div id="masthead-with-background-color" style="background: {{ page.header.background-color }};">
<div class="row">
<div class="small-12 columns">
<img src="{{ site.url }}/images/{{ page.header.image }}" alt="{{ site.title }}">
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
</div><!-- /#masthead -->
{% elsif page.header == no %}
test
{% endif %}

View file

@ -1,4 +1,3 @@
<div id="page-meta" class="t30">
<p>
<span class="icon-calendar pr20"> {{ page.date | date: "%d.%m.%Y" }}</span>
@ -6,7 +5,6 @@
<span class="pr20">{% for tag in page.tags %}<span class="icon-price-tag pr10"> {{tag}}</span> {% endfor %}</span>
</p>
<div id="post-nav" class="row">
{% if page.previous.url %}

View file

@ -7,12 +7,12 @@ Total paginate-pages: {{ paginator.total_pages }}
{% for post in paginator.posts %}
<div class="row">
<div class="small-12 columns b60">
<p class="subheadline">{% if post.subheadline %}{{ post.subheadline }}{% endif %}<span class="subheader"><small> {% if post.categories %}{{ post.categories | join: ' &middot; ' }}{% endif %}</small></span></p>
<p class="subheadline"><span class="subheader">{% if post.categories %}{{ post.categories | join: ' &middot; ' }}{% endif %}</span>  {% if post.subheadline %}{{ post.subheadline }}{% endif %}</p>
<h2><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h2>
<p>
{% if post.image.thumb %}<a href="{{ site.url }}{{ post.url }}" title="{{ post.title escape_once }}"><img src="{{ site.url }}/images/{{ post.image.thumb }}" class="alignleft" width="150" height="150" alt="{{ page.title escape_once }}"></a>{% endif %}
{% if post.meta_description %}{{ post.meta_description | strip_html | escape }}{% elsif post.description %}{{ post.description | strip_html | escape }}{% endif %}
{% if post.meta_description %}{{ post.meta_description | strip_html | escape }}{% elsif post.teaser %}{{ post.teaser | strip_html | escape }}{% endif %}
<a href="{{ site.url }}{{ post.url }}" title="{{ site.data.language.read }} {{ post.title escape_once }}"><strong>{{ site.data.language.read_more }}</strong></a>
</p>

View file

@ -8,7 +8,7 @@
</p>
</div>
<img class="b30" src="http://dummyimage.com/303x16:9/df4949/e27b3f.png&text=Ugly+Ad+Space" alt="">
<img class="b30" src="http://dummyimage.com/303x16:9/df4949/e27b3f.png&amp;text=Ugly+Ad+Space" alt="">
<div class="border-dotted radius b30">