From 65404a5da6d2bb4261f542800247b9ccc32f03ac Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Fri, 6 Dec 2019 22:02:44 -0500 Subject: [PATCH] Create author card using h-card microformats * Update baseof to add block for styling * Default styles block to link in layout.css and style.css * Update baseof to add block for importing icons from a CSS font library * Update baseof to add an aside block to the main content to put author card in * Create author card with a photo, author name, and general locale * Create beginning of a social network link ribbon --- exampleSite/config.toml | 10 +++++++++- layouts/_default/baseof.html | 12 ++++++++++++ layouts/partials/author-card.html | 16 ++++++++++++++++ layouts/partials/icons.html | 1 + layouts/partials/social.html | 3 +++ static/css/layout.css | 10 ++++++++++ static/css/style.css | 7 +++++++ 7 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/author-card.html create mode 100644 layouts/partials/icons.html create mode 100644 layouts/partials/social.html create mode 100644 static/css/layout.css create mode 100644 static/css/style.css diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 4229a15..4c602ce 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,6 +1,6 @@ baseURL = "http://example.org/" languageCode = "en-us" -title = "Basic Hugo Theme" +title = "Semantic IndieWeb Theme" copyright = "Copyright © 2019, Copyright Owner Name | Built with [Hugo](https://gohugo.io/)" theme = "semantic-indieweb" paginate = 5 @@ -12,6 +12,14 @@ paginate = 5 subtitle = "A theme with no CSS and only basic layouts" mainSections = [ "posts" ] + # Configuration Parameters for IndieWeb h-card + [params.Card] + Author = "Site Author Name" + Photo = "images/picture-o.svg" + Locality = "City/Town/Village" + Region = "State/County/Province" + Country = "Country Name" + # Configuration Parameters for IndieWeb Identity [[params.Identity]] type = "Email" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 878c04a..f69e8c3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,6 +8,13 @@ {{- block "title" . -}} {{ .Site.Title }} {{- end -}} + {{ block "styles" . }} + + + {{ end }} + {{ block "icons" . }} + {{ partial "icons.html" . }} + {{ end }} @@ -40,6 +47,11 @@ {{- block "content-footer" . -}} {{- end -}} +