Update nav item padding
This commit is contained in:
parent
76d248b2e7
commit
58009b4494
|
@ -17,8 +17,12 @@
|
|||
|
||||
<nav class="db dtc-ns v-mid w-100 tl tr-ns mt2 mt0-ns">
|
||||
{% for link in links %}
|
||||
{% set pattern = '#^' ~ (link.pattern ?: link.href) ~ '/?#' %}
|
||||
<a href="{{ link.href }}" class="f6 hover-blue link dib pa3 {{ page.url matches pattern ? 'black bb b--blue bw1' : 'black-50' }}">
|
||||
{% set classes = [
|
||||
'f6 hover-blue link dib pv3',
|
||||
page.url matches '#^' ~ (link.pattern ?: link.href) ~ '/?#' ? 'black bb b--blue bw1' : 'black-50',
|
||||
not loop.first ? 'ml3',
|
||||
] %}
|
||||
<a href="{{ link.href }}" class="{{ classes|join(' ')|trim }}">
|
||||
{{- link.title -}}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue