From 6b120ecc7cd55cd94d178dba23cef897c903721f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 12 Jan 2019 14:41:32 +0000 Subject: [PATCH] Cards for pages --- content/github.md | 6 ++++++ layouts/index.html | 15 ++++----------- layouts/partials/card.html | 11 +++++++++++ 3 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 content/github.md create mode 100644 layouts/partials/card.html diff --git a/content/github.md b/content/github.md new file mode 100644 index 0000000..799d72f --- /dev/null +++ b/content/github.md @@ -0,0 +1,6 @@ +--- +title: GitHub +account: RealOrangeOne +--- + +My GitHub account diff --git a/layouts/index.html b/layouts/index.html index abe9f0b..33e109b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,18 +12,11 @@
-
-
-
- - Card Title - -
-
-

I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.

-
+ {{ range sort .Pages "Title" }} +
+ {{ partial "card.html" . }}
-
+ {{ end }}
{{ partial "script.html" "js/materialize.js" }} diff --git a/layouts/partials/card.html b/layouts/partials/card.html new file mode 100644 index 0000000..a03df8c --- /dev/null +++ b/layouts/partials/card.html @@ -0,0 +1,11 @@ +
+
+ + +
+
+ {{ .Title }} +
{{ .Params.account }}
+

{{ .Summary }}

+
+