formating
This commit is contained in:
parent
3a73659f44
commit
2f55324209
2 changed files with 14 additions and 17 deletions
|
|
@ -1,23 +1,21 @@
|
|||
<h3>Förflutna events</h3>
|
||||
<h3>Förflutna events</h3>
|
||||
{% capture now -%}
|
||||
{{ site.time | date: '%s' }}
|
||||
{%- endcapture %}
|
||||
{% for event in site.events %}
|
||||
|
||||
{% capture now -%}{{ site.time | date: '%s' }}{%- endcapture %}
|
||||
{% for event in site.events %}
|
||||
|
||||
{% capture endtime -%}
|
||||
{% capture endtime -%}
|
||||
{{ event.event_data.end_datetime | date: '%s' }}
|
||||
{%- endcapture %}
|
||||
{%- endcapture %}
|
||||
|
||||
{% if now >= endtime %}
|
||||
<a href="{{ event.url }}"><img src="{{ event.image }}" width="30%"/></a>
|
||||
{% if now >= endtime %}
|
||||
<div>
|
||||
<a href="{{ event.url }}"><img src="{{ event.image }}" width="30%" /></a>
|
||||
<h4>{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}<br />
|
||||
<a href="{{ event.url }}">{{ event.title }}</a>
|
||||
</h4>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
@ -5,11 +5,10 @@ layout: default
|
|||
---
|
||||
<!-- begin /index.html -->
|
||||
<div class="column">
|
||||
<h3>{{ page.title }} - {{ site.title }}</h3>
|
||||
<h1>{{ page.title }} - {{ site.title }}</h1>
|
||||
<p>{{ site.description }}</p>
|
||||
<h4><a href="/about/" class="cta" alt="About Momangen">Om oss</a></h4>
|
||||
{% include hittahit.html %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue