{{ define "main" }} {{ $featuredHref := "/posts/" | relURL }} {{ with .Params.featured_series }} {{ $featuredHref = printf "/series/%s/" . | relURL }} {{ end }} {{ $hasSeries := gt (len .Site.Taxonomies.series) 0 }} {{ $posts := where .Site.RegularPages "Section" "eq" "posts" }}
{{ with .Params.featured_image }} {{ end }}

{{ .Site.Params.tagline }}

{{ .Title }}

{{ with .Content }}
{{ . }}
{{ end }}
{{ if or .Params.featured_series .Params.featured_label }} {{ with .Params.featured_label }}{{ . }}{{ else }}Enter series{{ end }} {{ end }} Read the log About
{{ with .Params.featured_caption }}

{{ . }}

{{ end }}
{{ if $hasSeries }}

Active builds

{{ range $term, $pages := .Site.Taxonomies.series }} {{ $termPage := $.Site.GetPage (printf "/series/%s" $term) }} {{ len $pages }} {{ if eq (len $pages) 1 }}log{{ else }}logs{{ end }} {{ with $termPage }}{{ .LinkTitle }}{{ else }}{{ replace $term "-" " " | title }}{{ end }} {{ with $termPage }} {{ with .Description }} {{ . }} {{ end }} {{ end }} {{ end }}
{{ end }} {{ if gt (len $posts) 0 }}

Build log

All entries →
    {{ range first 12 $posts }}
  1. {{ with .Params.type }}{{ . }}{{ else }}note{{ end }} {{ .Title }}
  2. {{ end }}
{{ end }} {{ end }}