diff --git a/assets/scss/errorpages.scss b/assets/scss/errorpages.scss new file mode 100644 index 0000000..dc77a36 --- /dev/null +++ b/assets/scss/errorpages.scss @@ -0,0 +1,12 @@ +@import 'partials/main'; +@import 'partials/nav'; + +header { + text-align: center; + margin: 150px 0; + h1 { + font-size: 2em; + } +} + +@import 'partials/footer'; diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index 2c47ced..0000000 --- a/layouts/404.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ define "stylesheet" }}{{ $sass := resources.Get "scss/index.scss" }}{{ $style := $sass | resources.ToCSS }} - -{{ end }} - -{{ define "main" }} -
-
-
-

{{ .Params.heading }}

- {{.Params.subheading}} -
- {{.Content}} -
-
- {{ range first 3 (where .Site.RegularPages "Type" "post") }} -
-

{{ .Title }}

-

{{ .Date.Format "2 January 2006" }}

- {{ with .Description }} -

{{ . }}

- {{ end }} - {{ with .Params.featured_image }} - - {{ end }} -
- {{ end }} -
-
-{{ end }} diff --git a/layouts/errorpages/list.html b/layouts/errorpages/list.html new file mode 100644 index 0000000..601949b --- /dev/null +++ b/layouts/errorpages/list.html @@ -0,0 +1,18 @@ +{{ define "stylesheet" }}{{ $sass := resources.Get "scss/errorpages.scss" }}{{ $style := $sass | resources.ToCSS }} + +{{ end }} + +{{ define "main" }} +
+
+
+
+

{{ .Params.heading }}

+ {{.Params.subheading}} +
+ {{.Content}} +
+
+
+{{ end }} + diff --git a/layouts/errorpages/single.html b/layouts/errorpages/single.html new file mode 100644 index 0000000..79d2af5 --- /dev/null +++ b/layouts/errorpages/single.html @@ -0,0 +1,17 @@ +{{ define "stylesheet" }}{{ $sass := resources.Get "scss/errorpages.scss" }}{{ $style := $sass | resources.ToCSS }} + +{{ end }} + +{{ define "main" }} +
+
+
+
+

{{ .Params.heading }}

+ {{.Params.subheading}} +
+ {{.Content}} +
+
+
+{{ end }} diff --git a/layouts/index.html b/layouts/index.html index dce0d8c..785cf41 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,43 +3,45 @@ {{ end }} {{ define "main" }} -
-
-
-

{{ .Params.heading }}

- {{.Params.subheading}} -
- {{.Content}} -
-

latest posts

-
- {{ range first 2 (where .Site.RegularPages "Type" "post") }} - -
-

{{ .Title }}

-

{{ .Date.Format "2 January 2006" }} by {{ .Params.author }}

- {{ with .Description }} -

{{ . }}

- {{ end }} - {{ with .Params.featured_image }} - - {{ end }} -
-
- {{ end }} -
-

latest projects

-
- {{ range first 3 (where .Site.RegularPages "Type" "project") }} - -
-

{{ .Title }}

-

{{ with .Params.activetime }}{{ . }}{{ end }} {{ with .Params.status }}{{ . }}{{ end }}

- {{ with .Description }}

{{ . }}

{{ end }} - -
-
- {{ end }} -
+
+
+
+
+

{{ .Params.heading }}

+ {{.Params.subheading}} +
+ {{.Content}} +
+

latest posts

+
+ {{ range first 2 (where .Site.RegularPages "Type" "post") }} + +
+

{{ .Title }}

+

{{ .Date.Format "2 January 2006" }} by {{ .Params.author }}

+ {{ with .Description }} +

{{ . }}

+ {{ end }} + {{ with .Params.featured_image }} + + {{ end }} +
+
+ {{ end }} +
+

latest projects

+
+ {{ range first 3 (where .Site.RegularPages "Type" "project") }} + +
+

{{ .Title }}

+

{{ with .Params.activetime }}{{ . }}{{ end }} {{ with .Params.status }}{{ . }}{{ end }}

+ {{ with .Description }}

{{ . }}

{{ end }} + +
+
+ {{ end }} +
+
{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 41a70ad..72c3b0c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@