diff --git a/layouts/index.html b/layouts/index.html index c556e82..84fd0a8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,14 +17,7 @@

{{.Title}}

-
- {{ if isset .Params "description" }} - {{ .Description }} - {{ else }} - {{ .Summary }}… - {{ end }} -
- Read more ⟶ +
{{ template "partials/pagedescription.html" . }}
{{ end }} {{ template "partials/paginator.html" . }} diff --git a/layouts/partials/pagedescription.html b/layouts/partials/pagedescription.html new file mode 100644 index 0000000..d69bb9a --- /dev/null +++ b/layouts/partials/pagedescription.html @@ -0,0 +1,7 @@ +
+ {{ if isset .Params "description" }} + {{ .Description }} + {{ else }} + {{ .Summary }}… + {{ end }} +
\ No newline at end of file