From f83fc1bd63ca943fae7d95fccc7b466df6e242a2 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 21 Jan 2020 13:56:11 +0530 Subject: [PATCH] layouts/single: Add dev.to link to subhead and use buttons for tags Signed-off-by: Harsh Shandilya --- layouts/_default/single.html | 14 ++++++++++---- themes/hyde/assets/css/poole.css | 12 ++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9107f70..b2f5156 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,10 +1,16 @@ {{ define "main" -}}

{{ .Title }}

- +

+ {{ range .Params.tags }} + + {{ end }}

{{- with .Content -}} {{ . | replaceRE "()" `${1} 🔗︎ ${3}` | safeHTML }} diff --git a/themes/hyde/assets/css/poole.css b/themes/hyde/assets/css/poole.css index e693dd4..4e2e817 100644 --- a/themes/hyde/assets/css/poole.css +++ b/themes/hyde/assets/css/poole.css @@ -86,6 +86,18 @@ a:focus { color: #757575; } +.tag-button { + background-color: #202020; + border: none; + color: white; + padding: 7px 12px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; + border-radius:8px; +} + /* Headings */ h1, h2, h3, h4, h5, h6 { margin-bottom: .5rem;