diff --git a/config.toml b/config.toml index 816a3945..acc5dd70 100644 --- a/config.toml +++ b/config.toml @@ -40,6 +40,7 @@ type = "type" likeof = "likeof" inreplyto = "inreplyto" repostof = "repostof" +bookmark = "bookmarkof" posttype = "posttype" slug = "slug" @@ -113,9 +114,9 @@ weight = 500 url = "/photo/" [[languages.en.menu.main]] -name = "Responses" -weight = 500 -url = "/response/" +name = "Bookmarks" +weight = 600 +url = "/bookmarks/" [languages.jp] weight = 10 diff --git a/content/response/5ee88fab/index.md b/content/response/5ee88fab/index.md deleted file mode 100644 index 4e197ca0..00000000 --- a/content/response/5ee88fab/index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -bookmarkof: "This Charles Waddie book, 'How Scotland Lost Her Parliament' (1891) is associated closely with our publication and I genuinely have a desire that every Scot read it. I feel it's really important. There's a reason it's not available anywhere. Trying to upload it as fast as possible so it exists for folk.\n\nAnswers all the questions 😉\n\nhttps://randomscottishhistory.com/how-scotland-lost-her-parliament-and-what-came-of-it-1891/​" -date: '2020-06-16 10:23:55' -draft: false -posttype: bookmarkof -slug: 5ee88fab -visibility: public ---- -Test bookmark diff --git a/data/bookmarks.yaml b/data/bookmarks/how-scotland-lost-her-parliament.yaml similarity index 58% rename from data/bookmarks.yaml rename to data/bookmarks/how-scotland-lost-her-parliament.yaml index fa0cd8c3..d5d4e0c3 100644 --- a/data/bookmarks.yaml +++ b/data/bookmarks/how-scotland-lost-her-parliament.yaml @@ -1,9 +1,6 @@ --- -entries: ---- -bookmarkof: 'https://randomscottishhistory.com/how-scotland-lost-her-parliament-and-what-came-of-it-1891/​' -category: - - 'Scottish Politics' +bookmarkof: 'https://randomscottishhistory.com/how-scotland-lost-her-parliament-and-what-came-of-it-1891' +category: 'Scottish Politics' date: '2020-06-16 10:57:50' draft: false name: 'How Scotland Lost Her Parliament' @@ -11,5 +8,5 @@ posttype: bookmarkof slug: how-scotland-lost-her-parliament title: 'How Scotland Lost Her Parliament' visibility: public +content: 'This Charles Waddie book, "How Scotland Lost Her Parliament" (1891) should be read by every Scot' --- -This Charles Waddie book, 'How Scotland Lost Her Parliament' (1891) should be read by every Scot diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index b7c23f08..42265732 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -{{ if not (eq .Type "response")}} +{{ if not (eq .Type "response" "bookmarkof")}}
-
{{ else }} + +{{ else if eq .Type "bookmarkof" }} +{{ partial "bookmarks.html" . }} +{{ else }}