diff --git a/content/projects/hello-world.md b/content/projects/hello-world.md index 12ff884..66d1737 100644 --- a/content/projects/hello-world.md +++ b/content/projects/hello-world.md @@ -1,6 +1,7 @@ --- title: "Hello World!" date: 2023-10-15 20:25:14.038 +0100 +thumbnail: /img/fof.png --- # Hello World! diff --git a/themes/warwick_portfolio/assets/img/fof.png b/themes/warwick_portfolio/assets/img/fof.png new file mode 100644 index 0000000..b2ebcc2 Binary files /dev/null and b/themes/warwick_portfolio/assets/img/fof.png differ diff --git a/themes/warwick_portfolio/layouts/_default/summary.html b/themes/warwick_portfolio/layouts/_default/summary.html new file mode 100644 index 0000000..563b502 --- /dev/null +++ b/themes/warwick_portfolio/layouts/_default/summary.html @@ -0,0 +1,23 @@ +
+
+
+ +

{{ .Title }}

+
+

{{.Summary}}

+ + {{.Params.date.Format "2 January 2006"}} + +
+
+ {{ if .Params.thumbnail }} + {{- $image := resources.Get .Params.thumbnail -}} + + + + {{ end }} +
+
+
+
+ diff --git a/themes/warwick_portfolio/layouts/index.html b/themes/warwick_portfolio/layouts/index.html index 0d75b58..bd70c79 100644 --- a/themes/warwick_portfolio/layouts/index.html +++ b/themes/warwick_portfolio/layouts/index.html @@ -10,65 +10,33 @@

Projects

+
{{ range where .Site.RegularPages "Type" "projects" }} -
- -

{{ .Title }}

-
-

{{.Summary}}

- -
-
+ {{ .Render "summary" }} {{ end }}

Blog

+
{{ range where .Site.RegularPages "Type" "posts" }} -
- -

{{ .Title }}

-
-

{{.Summary}}

- -
-
+ {{ .Render "summary" }} {{ end }}
-

Papers

+

Research Papers

+
{{ range where .Site.RegularPages "Type" "papers" }} -
- -

{{ .Title }}

-
-

{{.Summary}}

- -
-
+ {{ .Render "summary" }} {{ end }}

Articles

+
{{ range where .Site.RegularPages "Type" "articles" }} -
- -

{{ .Title }}

-
-

{{.Summary}}

- -
-
+ {{ .Render "summary" }} {{ end }}