From 97172c0b674b18ba8f70126b23c7eb0aebd3d205 Mon Sep 17 00:00:00 2001 From: Jianan Sun Date: Fri, 1 Nov 2024 23:06:45 +0800 Subject: [PATCH] fix: reaction align --- config.example.toml | 2 +- templates/post.html | 2 +- templates/prose.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.example.toml b/config.example.toml index b0f6d5c..08df3d7 100644 --- a/config.example.toml +++ b/config.example.toml @@ -84,7 +84,7 @@ truncate_summary = false # Whether to truncate the summary of a pos comment = false # Whether to show giscus comment section by default, see https://giscus.app for more info reaction = false # Whether to show reaction (Note: You need to set up a working api endpoint to enable reaction) -reaction_position = "right" # "left" | "center" | "right" +reaction_align = "right" # "left" | "center" | "right" reaction_endpoint = "https://example.com/api/reaction" outdate_alert = false # Whether to show outdate alert by default diff --git a/templates/post.html b/templates/post.html index e545038..8278c70 100644 --- a/templates/post.html +++ b/templates/post.html @@ -119,7 +119,7 @@

{{ page.title }}

{% if page.extra.reaction is defined %}{% set show_reaction = page.extra.reaction %}{% else %}{% set show_reaction = config.extra.reaction %}{% endif %} {% if show_reaction %} -
+
{% endif %} {% if page.extra.comment is defined %}{% set show_comment = page.extra.comment %}{% else %}{% set show_comment = config.extra.comment %}{% endif %} diff --git a/templates/prose.html b/templates/prose.html index ffd7aee..44696a6 100644 --- a/templates/prose.html +++ b/templates/prose.html @@ -37,7 +37,7 @@ {% if section.extra.reaction is defined %}{% set show_reaction = section.extra.reaction %}{% else %}{% set show_reaction = config.extra.reaction %}{% endif %} {% if show_reaction %} -
+
{% endif %} {% if section.extra.comment is defined %}{% set show_comment = section.extra.comment %}{% else %}{% set show_comment = config.extra.comment %}{% endif %}