Tidy templates

This commit is contained in:
Oliver Davies 2017-10-28 16:40:40 +01:00
parent 9c7592c872
commit 781bb446fd
3 changed files with 18 additions and 16 deletions

View file

@ -8,11 +8,11 @@
href="{{ meetup.url }}"
title="{{ meetup.name }}"
class="dib {% if not loop.last %}mr2{% endif %}">
<img
src="{{ site.images_url }}/assets/images/meetups/{{ meetup.logo }}"
alt="{{ meetup.name }} logo"
class="h3"
>
class="h3">
</a>
</li>
{% endfor %}

View file

@ -1,17 +1,19 @@
<header class="w-100 ph4-ns bg-white bb b--light-gray mb2">
<div class="db dt-ns mw9 center w-100">
<div class="db dtc-ns v-mid tl w-30">
<a href="/" class="dib f5 mt0 link black-70" title="Home">
{{ site.title }}
</a>
</div>
<nav class="db dtc-ns v-mid w-100 tl tr-ns mt2 mt0-ns">
{% for link in site.nav_links %}
<a href="{{ link.href }}" class="nav-item {{ page.url matches '#^' ~ (link.pattern ?: link.href) ~ '/?#' ? 'nav-item--active' }}">
{{- link.title -}}
<div class="db dt-ns mw9 center w-100">
<div class="db dtc-ns v-mid tl w-30">
<a href="/" class="dib f5 mt0 link black-70" title="Home">
{{ site.title }}
</a>
{% endfor %}
</nav>
</div>
</div>
<nav class="db dtc-ns v-mid w-100 tl tr-ns mt2 mt0-ns">
{% for link in site.nav_links %}
<a
href="{{ link.href }}"
class="nav-item {{ page.url matches '#^' ~ (link.pattern ?: link.href) ~ '/?#' ? 'nav-item--active' }}">
{{- link.title -}}
</a>
{% endfor %}
</nav>
</div>
</header>