make better room for news
This commit is contained in:
parent
06ccf8a100
commit
ddc4cd437d
3 changed files with 63 additions and 48 deletions
|
|
@ -53,46 +53,10 @@
|
|||
|
||||
{% break %} {% endif %} {% endfor %}
|
||||
<!-- end Up next-->
|
||||
<div>
|
||||
|
||||
{% for post in site.posts %}
|
||||
<h2>{{ post.title }}</h2>
|
||||
|
||||
|
||||
<p>Nyhet postad den
|
||||
{% assign post-d = post.date | date: "%-d" %}
|
||||
{% case post-d %}
|
||||
{% when '1' or '21' or '31' or '2' or '22' %}{{ d }}:a
|
||||
{% else %}{{ post-d }}:e
|
||||
{% endcase %}
|
||||
|
||||
{% assign post-m = post.date | date: "%-m" %}
|
||||
{% case post-m %}
|
||||
{% when '1' %}Januar
|
||||
{% when '2' %}Februari
|
||||
{% when '3' %}Mars
|
||||
{% when '4' %}April
|
||||
{% when '5' %}Maj
|
||||
{% when '6' %}Juni
|
||||
{% when '7' %}Juli
|
||||
{% when '8' %}Augusti
|
||||
{% when '9' %}September {% when '10' %}October {% when '11' %}November {% when '12' %}December
|
||||
{% endcase %}
|
||||
{{ post.date | date: "%Y" }}
|
||||
<br />
|
||||
|
||||
<br /><strong>{{ post.description | truncatewords: 10 }}</strong>
|
||||
</p>
|
||||
<p><a class="cta" href="{{ post.url }}" style="padding:10px;"> Läs mer </a></p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
<div id="flyer" style="background-image: url({{ page.image }})"></div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
<div id="decoration"></div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue