From eba2318d15c29fc7f10b8f87556425768991ced9 Mon Sep 17 00:00:00 2001 From: brooke Date: Thu, 12 Sep 2024 19:07:06 -0400 Subject: [PATCH] add contact page --- content/contact/index.md | 6 ++++++ themes/mir/layouts/_default/single.html | 21 ++++++++++++++------- themes/mir/layouts/partials/contact.html | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 content/contact/index.md diff --git a/content/contact/index.md b/content/contact/index.md new file mode 100644 index 0000000..e4d3f40 --- /dev/null +++ b/content/contact/index.md @@ -0,0 +1,6 @@ +--- +title: Contact +contact: true +img: /media/contact.png +--- +Feel free to send us a message with questions, comments, or just give our mastodon page a visit. \ No newline at end of file diff --git a/themes/mir/layouts/_default/single.html b/themes/mir/layouts/_default/single.html index 9712537..fa17130 100644 --- a/themes/mir/layouts/_default/single.html +++ b/themes/mir/layouts/_default/single.html @@ -1,12 +1,19 @@ {{ define "main" }} -
-
+
+
-

{{ .Title }}

-

{{ .Params.subTitle }}

- {{ partial "metadata.html" . }} - {{ if .contact }} - {{ partial "metadata.html" . }} + {{ if .Params.contact }} +
+
+

{{ .Title }}

+

{{ .Params.subTitle }}

+ {{ partial "metadata.html" . }} + {{ partial "contact.html" . }} +
+
+ +
+
{{ else }}
{{ .Content }}
{{ end }} diff --git a/themes/mir/layouts/partials/contact.html b/themes/mir/layouts/partials/contact.html index e69de29..06734cd 100644 --- a/themes/mir/layouts/partials/contact.html +++ b/themes/mir/layouts/partials/contact.html @@ -0,0 +1,19 @@ +
+ {{ .Content }} +
+ + + +

info@mirnet.org

+
+ +
\ No newline at end of file