1
0
Fork 0

Init Jekyll Theme

This commit is contained in:
Moritz »mo.« Sauer 2014-08-20 20:33:40 +02:00
commit e5d20c0faf
161 changed files with 11696 additions and 0 deletions

30
_layouts/blog.html Normal file
View file

@ -0,0 +1,30 @@
---
layout: default
---
<div id="blog-index" class="row">
<div class="medium-7 columns top-30">
{% for post in site.posts %}
<div class="row">
<div class="small-12 columns bottom-60">
<p class="subtitle">{% if post.subtitle %}{{ post.subtitle }}{% endif %}<span class="subheader"><small> {{ post.date | date: "%d.%m.%Y" }} &middot; {% if post.categories %}{{ post.categories | join: ' &middot; ' }}{% endif %}</small></span></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 }}/assets/img/{{ post.image.thumb }}" class="alignleft" width="150" height="150" alt="{{ page.title escape_once }}"></a>{% endif %}
{{ post.description }}
<a href="{{ site.url }}{{ post.url }}" title="Read {{ post.title escape_once }}"><strong>Read more </strong></a>
</p>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
{% endfor %}
</div><!-- /.medium-7.columns -->
<div class="medium-5 columns top-30">
{% include sidebar.html %}
</div><!-- /.medium-5.columns -->
</div><!-- /.row -->

61
_layouts/compress.html Normal file
View file

@ -0,0 +1,61 @@
---
#
# Jekyll layout that compresses HTML
# v0.2.0
# https://github.com/penibelst/jekyll-compress-html
#
compress:
elements:
# Root
- html
# Metadata content
- head
- title
- base
- link
- meta
- style
# Sections
- body
- article
- section
- nav
- aside
- h1
- h2
- h3
- h4
- h5
- h6
- hgroup
- header
- footer
- address
# Grouping content except `pre`
- p
- hr
- blockquote
- ol
- ul
- li
- dl
- dt
- dd
- figure
- figcaption
- main
- div
# Tabular data
- table
- caption
- colgroup
- col
- tbody
- thead
- tfoot
- tr
- td
- th
---
{% assign _pres = content | split: '<pre' %}{% for _pre1 in _pres %}{% assign _pre2 = _pre1 | split: '</pre>' %}{% if _pre2.size == 2 %}<pre{{ _pre2.first }}</pre>{% endif %}{% assign _second = _pre2.last | split: ' ' | join: ' ' %}{% for _element in page.compress.elements %}{% assign _edge = ' <e,<e' | replace: 'e', _element | split: ',' %}{% assign _second = _second | replace: _edge[0], _edge[1] %}{% assign _edge = ' </e>,</e>' | replace: 'e', _element | split: ',' %}{% assign _second = _second | replace: _edge[0], _edge[1] %}{% assign _edge = '</e> ,</e>' | replace: 'e', _element | split: ',' %}{% assign _second = _second | replace: _edge[0], _edge[1] %}{% assign _blank = '<e></e>' | replace: 'e', _element %}{% assign _second = _second | remove: _blank %}{% endfor %}{{ _second }}{% endfor %}

13
_layouts/default.html Normal file
View file

@ -0,0 +1,13 @@
{% include header.html %}
<body>
{% include masthead.html %}
{% include navigation.html %}
{{ content }}
{% include footer.html %}
{% include footer_scripte.html %}
</body>
</html>

View file

@ -0,0 +1,34 @@
---
layout: default
---
{% if page.image_title %}
<div class="row top-30">
<div class="small-12 columns">
<img src="{{ site.url }}/assets/img/{{ page.image_title }}" width="970" alt="{{ page.title escape_once }}">
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
{% endif %}
<div class="row top-30">
<div class="medium-12 columns">
<article>
<header>
{% if page.subtitle %}<p class="subtitle">{{ page.subtitle }}</p>{% endif %}
<h1>{{ page.title }}</h1>
</header>
{% if page.description %}
<p class="teaser">
{{ page.description }}
</p>
{% endif %}
{{ content }}
</article>
</div><!-- /.medium-12.columns -->
</div><!-- /.row -->

33
_layouts/page.html Normal file
View file

@ -0,0 +1,33 @@
---
layout: default
---
{% if page.image_title %}
<div class="row top-30">
<div class="small-12 columns">
<img src="{{ site.url }}/assets/img/{{ page.image_title }}" width="970" alt="{{ page.title escape_once }}">
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
{% endif %}
<div class="row top-30">
<div class="medium-offset-2 medium-8 end columns">
<article>
<header>
{% if page.subtitle %}<p class="subtitle">{{ page.subtitle }}</p>{% endif %}
<h1>{{ page.title }}</h1>
</header>
{% if page.description %}
<p class="teaser">
{{ page.description }}
</p>
{% endif %}
{{ content }}
</article>
</div><!-- /.medium-8.columns -->
</div><!-- /.row -->

13
_layouts/portoflio.html Normal file
View file

@ -0,0 +1,13 @@
{% include header.html %}
<body>
{% include masthead.html %}
{% include navigation.html %}
{{ content }}
{% include footer.html %}
{% include footer_scripte.html %}
</body>
</html>

View file

@ -0,0 +1,36 @@
---
layout: default
---
<div class="row top-60">
<div class="medium-4 columns">
{% include sidebar.html %}
</div><!-- /.medium-4.columns -->
<div class="medium-8 columns">
<article>
<header>
{% if page.subtitle %}<p class="subtitle">{{ page.subtitle }}</p>{% endif %}
{% if page.image_title %}<img src="{{ site.url }}/assets/img/{{ page.image_title }}" width="970" alt="{{ page.title escape_once }}">{% endif %}
<h1>{{ page.title }}</h1>
</header>
{% if page.description %}
<p class="teaser">
{{ page.description }}
</p>
{% endif %}
{{ content }}
<div class="page-meta">
<ul class="side-nav">
<li class="subheader">Date: {{ page.date | date: "%d.%m.%Y" }}</li>
<li class="subheader">{% if page.categories %}Archived in {{ page.categories | join: ' · ' | upcase }}{% endif %}</li>
<li class="divider"></li>
</ul>
</div>
</article>
</div><!-- /.medium-8.columns -->
</div><!-- /.row -->

View file

@ -0,0 +1,36 @@
---
layout: default
---
<div class="row top-60">
<div class="medium-8 columns">
<article>
<header>
{% if page.subtitle %}<p class="subtitle">{{ page.subtitle }}</p>{% endif %}
{% if page.image_title %}<img src="{{ site.url }}/assets/img/{{ page.image_title }}" width="970" alt="{{ page.title escape_once }}">{% endif %}
<h1>{{ page.title }}</h1>
</header>
{% if page.description %}
<p class="teaser">
{{ page.description }}
</p>
{% endif %}
{{ content }}
<div class="page-meta">
<ul class="side-nav">
<li class="subheader">Date: {{ page.date | date: "%d.%m.%Y" }}</li>
<li class="subheader">{% if page.categories %}Archived in {{ page.categories | join: ' · ' | upcase }}{% endif %}</li>
<li class="divider"></li>
</ul>
</div>
</article>
</div><!-- /.medium-8.columns -->
<div class="medium-4 columns">
{% include sidebar.html %}
</div><!-- /.medium-4.columns -->
</div><!-- /.row -->

42
_layouts/post.html Normal file
View file

@ -0,0 +1,42 @@
---
layout: default
---
{% if page.image_title %}
<div class="row top-30">
<div class="small-12 columns">
<img src="{{ site.url }}/assets/img/{{ page.image_title }}" width="970" alt="{{ page.title escape_once }}">
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
{% endif %}
<div class="row top-30">
<div class="medium-offset-2 medium-8 end columns">
<article>
<header>
{% if page.subtitle %}<p class="subtitle">{{ page.subtitle }}</p>{% endif %}
<h1>{{ page.title }}</h1>
</header>
{% if page.description %}
<p class="teaser">
{{ page.description }}
</p>
{% endif %}
{{ content }}
<div class="page-meta">
<ul class="side-nav">
<li class="subheader">Date: {{ page.date | date: "%d.%m.%Y" }}</li>
<li class="subheader">{% if page.categories %}Archived in {{ page.categories | join: ' · ' | upcase }}{% endif %}</li>
<li class="divider"></li>
</ul>
</div>
</article>
</div><!-- /.medium-8.columns -->
</div><!-- /.row -->