janispagel.de

Source code for https://janispagel.de
git clone git://git.janispagel.de/janispagel.de.git
Log | Files | Refs | README | LICENSE

home.html (902B)


      1 ---
      2 layout: default
      3 ---
      4 
      5 <div class="home">
      6   {%- if page.title -%}
      7     <h1 class="page-heading">{{ page.title }}</h1>
      8   {%- endif -%}
      9 
     10 	<div class="post-content">
     11   {{ content }}
     12 	</div>
     13 
     14 	<hr/>
     15 
     16   {%- if site.posts.size > 0 -%}
     17   <h2><a href="/news">{{ page.list_title | default: "News" }}</a></h2>
     18 	<h3><div class="feed-subscribe"><a href="/feed.xml"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"/></svg> Atom feed</a></div></h3>
     19     <ul class="post-list">
     20       {%- for post in site.posts limit: 3 -%}
     21       <li>
     22         {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
     23         <span class="post-meta">{{ post.date | date: date_format }}</span>
     24         <h3>
     25           {{ post.title | escape }}
     26         </h3>
     27         {{ post.excerpt | markdownify }}
     28       </li>
     29       {%- endfor -%}
     30     </ul>
     31 
     32   {%- endif -%}
     33 
     34 </div>