diff --git a/themes/briar/layouts/_default/list.html b/themes/briar/layouts/_default/list.html index f4437217e5d668bc9b01442b58d6fe0830512f11..817139e12162f008b2ef78beeb09b45740b2daf7 100644 --- a/themes/briar/layouts/_default/list.html +++ b/themes/briar/layouts/_default/list.html @@ -2,9 +2,11 @@ <h2>{{ with .Title }} {{ . }} {{ else }} {{ .Site.Title }} {{ end }}</h2> <p><strong>Latest Release:</strong> Briar {{ .Params.releaseVersion }} ({{ .Params.releaseDate }})</p> <p><strong>Latest News:</strong> -{{ range first 1 (where .Site.RegularPages "Section" "news").ByDate.Reverse }} +{{ $num := 3 }} +{{ range $k, $v := first $num (where .Site.RegularPages "Section" "news").ByDate.Reverse }} <a href="{{.Permalink}}">{{.Title}}</a> -</p> + {{- if (lt $k (sub $num 1)) }} ~ {{ end }} {{ end }} +</p> {{ .Content }} {{ end }} diff --git a/themes/briar/layouts/partials/header.html b/themes/briar/layouts/partials/header.html index 3a26f2f509dc7985693589cecf5e74a495c3aa40..de52964b8d16936cdf3d554702c878422515fe1e 100644 --- a/themes/briar/layouts/partials/header.html +++ b/themes/briar/layouts/partials/header.html @@ -29,8 +29,7 @@ <ul id="menu"> {{ $currentPage := . }} {{ range .Site.Menus.main }} - {{ $menu_item_url - := .URL | relLangURL }} + {{ $menu_item_url := .URL | relLangURL }} {{ $page_url:= $currentPage.RelPermalink | relLangURL }} <li> <a {{ if eq $menu_item_url $page_url }}id="is-active" {{end}}