diff options
-rw-r--r-- | layouts/index.html | 3 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 10ecf4c..ae69809 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -63,11 +63,12 @@ </header> {{ end }} <div class="row"> - {{ range first .postCount (where $.Site.RegularPages "Type" "posts") }} + {{ range first .postCount (where $.Site.RegularPages "Type" "blog") }} <div class="col-6 col-12-narrower"> <section class="box special"> <span class="image featured"><img src="{{ .Params.image }}" alt="" /></span> <h3>{{ .Title }}</h3> + {{ with .Date }}<p>{{ .Format "Jan 2, 2006" }}</p>{{ end }} {{ with .Description }} <p>{{ . }}</p> {{ else }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index b616fc9..2661175 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,5 @@ <!-- Header --> -<header id="header"> +<header id="header" {{- if .IsHome -}}class="alt"{{- end -}}> <h1><a href="index.html">Alpha</a> by HTML5 UP</h1> <nav id="nav"> <ul> |