From 6e0071caa24d50d536f0229c261101849fbbc770 Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 16 Jun 2020 14:09:40 +0100 Subject: [PATCH] a few styling changes and addition of bookmarks page --- config.toml | 7 ++++--- content/response/5ee88fab/index.md | 9 --------- .../how-scotland-lost-her-parliament.yaml} | 9 +++------ themes/nipponalba/layouts/_default/single.html | 7 +++++-- themes/nipponalba/layouts/partials/bookmarks.html | 12 ++++++++++++ themes/nipponalba/static/css/style.css | 13 ++++++++----- 6 files changed, 32 insertions(+), 25 deletions(-) delete mode 100644 content/response/5ee88fab/index.md rename data/{bookmarks.yaml => bookmarks/how-scotland-lost-her-parliament.yaml} (58%) create mode 100644 themes/nipponalba/layouts/partials/bookmarks.html 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 }}