From c1dce73359629f7539965f6c0ed345a8a372bcdd Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Wed, 20 Jan 2021 21:10:47 +0300 Subject: [PATCH] microformats: add h-card #75 --- README.md | 4 +++- assets/css/main.css | 4 ++++ layouts/partials/footer.html | 1 + layouts/partials/h-card.html | 13 +++++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/h-card.html diff --git a/README.md b/README.md index 0036d09..d69a9aa 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,9 @@ menu: weight: 0 params: - author: "" + author: "John Doe" + email: mail@example.org # used for microformats + avatar: "/images/me.png" # used for microformats description: "" images: - images/og-featured.png # relative path to "static" directory diff --git a/assets/css/main.css b/assets/css/main.css index 7d072fd..e6a91a7 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -462,6 +462,10 @@ ul.language-select > li, ul.footer-menu > li { margin-bottom: 1em; } +.h-card { + display: none; +} + /* Media Queries */ @media (max-width: 840px) { diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eca1958..826dbe2 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -22,5 +22,6 @@ {{ partial "themeSwitcher.html" . }} + {{ partial "h-card.html" . }} {{ partial "footer-extra.html" . }} diff --git a/layouts/partials/h-card.html b/layouts/partials/h-card.html new file mode 100644 index 0000000..66cf479 --- /dev/null +++ b/layouts/partials/h-card.html @@ -0,0 +1,13 @@ +

+ + {{ .Site.Params.author }} + + {{ if .Site.Params.email }} + / + + {{ end }} + + {{ if .Site.Params.avatar }} + + {{ end }} +

\ No newline at end of file