From 6c99fe981501838c8e63b12f358db8bd8edfdee3 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Mon, 13 Nov 2017 23:07:34 +0100 Subject: [PATCH] Add book recommenations again --- config.toml | 1 + themes/cocoa-eh/layouts/blog/single.html | 3 +++ themes/cocoa-eh/layouts/electronics/single.html | 3 +++ themes/cocoa-eh/layouts/partials/css/main.css | 5 +++++ themes/cocoa-eh/layouts/partials/footer.html | 2 +- themes/cocoa-eh/layouts/partials/recommendations.html | 6 ++++++ 6 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 themes/cocoa-eh/layouts/partials/recommendations.html diff --git a/config.toml b/config.toml index bde94d1..a409cc1 100644 --- a/config.toml +++ b/config.toml @@ -49,3 +49,4 @@ posts_navigation = true # issoHost = "comments.domain.tld:1234" # githubRepo = "githubUsername/repositoryName" small_banner_logo = false +book_recommendations = true diff --git a/themes/cocoa-eh/layouts/blog/single.html b/themes/cocoa-eh/layouts/blog/single.html index 426c47c..638994d 100644 --- a/themes/cocoa-eh/layouts/blog/single.html +++ b/themes/cocoa-eh/layouts/blog/single.html @@ -49,6 +49,9 @@ {{ end }} + {{ if .Site.Params.book_recommendations }} + {{ partial "recommendations.html" . }} + {{ end }} {{ if .Site.Params.posts_navigation }} {{ end }} + {{ if .Site.Params.book_recommendations }} + {{ partial "recommendations.html" . }} + {{ end }} {{ if .Site.Params.posts_navigation }} diff --git a/themes/cocoa-eh/layouts/partials/recommendations.html b/themes/cocoa-eh/layouts/partials/recommendations.html new file mode 100644 index 0000000..857b1c1 --- /dev/null +++ b/themes/cocoa-eh/layouts/partials/recommendations.html @@ -0,0 +1,6 @@ +
+

+ Want to go deeper? Check my reading + recommendations to learn more about this and other topics. +

+
\ No newline at end of file