Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dewittn/hugo-html5up-alpha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelson/Roberto <dewittn@gmail.com>2020-05-11 21:59:57 +0300
committerNelson/Roberto <dewittn@gmail.com>2020-05-11 21:59:57 +0300
commitc93f9d84777ab0059a2b5235ab0e702603925551 (patch)
tree340bf6fc88efacd1f07a5a381b95ae352c8506b8
parentf1d5ac57049c859e1bef07320672dee5fdb9058f (diff)
Design tweaks
-rw-r--r--layouts/index.html3
-rw-r--r--layouts/partials/header.html2
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>