From d3a1a3db2488b79e0bf52911dfc08d3e00503d83 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 21 May 2023 12:55:06 +0200 Subject: [PATCH] Enable comments --- assets/css/style.css | 14 ++++++++++++++ config.yaml | 12 ++++++------ layouts/partials/comments.html | 5 +++++ layouts/partials/extend_head.html | 2 ++ 4 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 assets/css/style.css create mode 100644 layouts/partials/comments.html diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..84906de --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1,14 @@ +#reply { + text-align: center; + margin-top: 2em; +} +#reply a button { + font-size: 1.2rem; + padding: 8px 16px; +} +a button { + background: #0069e5; + color: #fff; + border-radius: 4px; + box-sizing: border-box; +} diff --git a/config.yaml b/config.yaml index 21ccf08..ed14715 100644 --- a/config.yaml +++ b/config.yaml @@ -37,7 +37,7 @@ params: UseHugoToc: true disableSpecial1stPost: false disableScrollToTop: true - comments: false + comments: true hidemeta: false hideSummary: false hideFooter: true @@ -47,11 +47,11 @@ params: assets: disableHLJS: true # disableFingerprinting: true - favicon: "" - favicon16x16: "" - favicon32x32: "" - apple_touch_icon: "" - safari_pinned_tab: "" +# favicon: "" +# favicon16x16: "" +# favicon32x32: "" +# apple_touch_icon: "" +# safari_pinned_tab: "" label: text: "Home" diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 0000000..97123be --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,5 @@ +
+ + + +
\ No newline at end of file diff --git a/layouts/partials/extend_head.html b/layouts/partials/extend_head.html index b1e4482..7b8c0b6 100644 --- a/layouts/partials/extend_head.html +++ b/layouts/partials/extend_head.html @@ -1,2 +1,4 @@ {{ $admonitions := resources.Get "css/admonitions.css" }} +{{ $style := resources.Get "css/style.css" }} +