diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c1e055a..dfc4211 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,17 +1,7 @@ {{ partial "page_start.html" . }}
-
-

{{ title .Title }}

-
- {{ if .Content }} -
- {{ if .Params.image }} - - {{ end }} - {{ .Content }} -
- {{ end }} + {{ partial "content.html" . }} {{ if ne .Params.hide_pages "true" }}
{{ $parent := . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b6a79df..5fc58b8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,18 +1,7 @@ {{ partial "page_start.html" . }}
-
-

{{ title .Title }}

- {{ if .Params.subtitle }} -

{{ markdownify .Params.subtitle }}

- {{ end }} -
-
- {{ if .Params.image }} - - {{ end }} - {{ .Content }} -
+ {{ partial "content.html" . }}
{{ partial "page_end.html" . }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html new file mode 100644 index 0000000..248615e --- /dev/null +++ b/layouts/partials/content.html @@ -0,0 +1,14 @@ +
+

{{ title .Title }}

+ {{ if .Params.subtitle }} +

{{ markdownify .Params.subtitle }}

+ {{ end }} +
+{{ if .Content }} +
+ {{ if .Params.image }} + + {{ end }} + {{ .Content }} +
+{{ end }} diff --git a/layouts/projects/single.html b/layouts/projects/single.html index dfe3919..c3a29ef 100644 --- a/layouts/projects/single.html +++ b/layouts/projects/single.html @@ -1,18 +1,7 @@ {{ partial "page_start.html" . }}
-
-

{{ title .Title }}

- {{ if .Params.subtitle }} -

{{ markdownify .Params.subtitle }}

- {{ end }} -
-
- {{ if .Params.image }} - - {{ end }} - {{ .Content }} -
+ {{ partial "content.html" . }}
    {{ if .Params.download_url }}