adding event posts

This commit is contained in:
Set Hallstrom 2019-05-18 17:49:26 +02:00
parent 6356d5f77f
commit dc73c840e9
6 changed files with 41 additions and 13 deletions

View file

@ -46,7 +46,10 @@ plugins:
# Site Variables: # Site Variables:
# # collection # # collection
# collections: collections:
events:
output: "true"
permalink: "/events/:year/:month/:day/:title/"
# tjanster: # tjanster:
# output: "true" # output: "true"
# permalink: "/tjaenster/:name/" # permalink: "/tjaenster/:name/"

View file

@ -0,0 +1,9 @@
---
title: 'Momangens Sociala Presenterar: Mogaiskt'
description: ''
start_date: 2019-06-14 17:00 CEST
end_date: 2019-06-14 22:00 CEST
image: /siteicon.png
link:
category:
---

9
_events/_defaults.md Normal file
View file

@ -0,0 +1,9 @@
---
title:
description:
start_date:
end_date:
image:
link:
category:
---

View file

@ -1,6 +1,16 @@
<!-- BEGIN hero.html --> <!-- BEGIN hero.html -->
<div id="banner"> <div id="banner">
<div class="hero"> <div class="hero">
<div id="poster" class="column">
{% for event in events limit: 1 %}
<img src="{{ event.image }}" />
<h2>{{ event.title }}</h2>
<h3>{{ event.start_date }} till {{ event.end_date }}</h3>
<p>{{ event.description }}</p>
<p>{{ event.category }}</p>
{% endfor %}
</div>
<h1>{{ site.title }}</h1> <h1>{{ site.title }}</h1>
</div> </div>
</div> </div>

View file

@ -1,10 +1,14 @@
/////////
// POSTER // POSTER
///////// /////////
#poster {
width: 90vw;
margin-right: auto !important; }
#poster img { #poster img {
margin-top: 5px;
width: 100%; border-radius: 3px;
margin-top: 5px; float: left;
border-radius: 3px; padding-right: 5px;
width: 50vw;
} }

View file

@ -3,13 +3,6 @@ title: Södermalms bäst bevarade hemlighet
image: /siteicon.png image: /siteicon.png
layout: default layout: default
--- ---
<!-- <div id="poster" class="column">
<img src="images/siteicon.png" />
<h1>{{ site.title }}
<p>{{ site.description }}</p>
-->
<div class="column"> <div class="column">
<h2>{{ site.description }}</h2> <h2>{{ site.description }}</h2>