From 5d590b64f6a72a64c90a160978a3d8422c114f06 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 9 Sep 2019 13:59:22 +0100 Subject: [PATCH] refactor: strip out Microdata for list items and page metadata Forms part of the transition from Microdata to JSON-LD. See #413 --- layouts/partials/li_card.html | 25 ++++++++----------- layouts/partials/li_citation.html | 10 ++++---- layouts/partials/li_compact.html | 27 ++++++++------------- layouts/partials/li_list.html | 18 +++++--------- layouts/partials/page_author.html | 12 ++++----- layouts/partials/page_metadata_authors.html | 2 +- layouts/partials/portfolio_li_showcase.html | 10 ++++---- 7 files changed, 43 insertions(+), 61 deletions(-) diff --git a/layouts/partials/li_card.html b/layouts/partials/li_card.html index d951fd5e..08dc2118 100644 --- a/layouts/partials/li_card.html +++ b/layouts/partials/li_card.html @@ -1,16 +1,11 @@ {{ $item := . }} -{{ $microdata_type := "CreativeWork" }} -{{ $show_buttons := false }} {{/* Dynamic view adjusts to content type. */}} -{{ if eq $item.Type "post" }} - {{ $microdata_type = "BlogPosting" }} -{{ else if eq $item.Type "talk" }} - {{ $microdata_type = "Event" }} +{{ $show_buttons := false }} +{{ if eq $item.Type "talk" }} {{ $show_buttons = true }} {{ else if eq $item.Type "publication" }} - {{ $microdata_type = "ScholarlyArticle" }} {{ $show_buttons = true }} {{ end }} @@ -26,21 +21,21 @@ {{ $summary = $item.Content }} {{ end }} -
+
{{ if eq $item.Type "talk" }}