Skip to content

Commit

Permalink
fix: reaction align
Browse files Browse the repository at this point in the history
  • Loading branch information
isunjn committed Nov 1, 2024
1 parent 28529a1 commit 97172c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h1>{{ page.title }}</h1>

{% if page.extra.reaction is defined %}{% set show_reaction = page.extra.reaction %}{% else %}{% set show_reaction = config.extra.reaction %}{% endif %}
{% if show_reaction %}
<div class="reaction {{ config.extra.reaction_position }}" data-endpoint="{{ config.extra.reaction_endpoint }}"></div>
<div class="reaction {{ config.extra.reaction_align }}" data-endpoint="{{ config.extra.reaction_endpoint }}"></div>
{% endif %}

{% if page.extra.comment is defined %}{% set show_comment = page.extra.comment %}{% else %}{% set show_comment = config.extra.comment %}{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/prose.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<div class="reaction {{ config.extra.reaction_position }}" data-endpoint="{{ config.extra.reaction_endpoint }}"></div>
<div class="reaction {{ config.extra.reaction_align }}" data-endpoint="{{ config.extra.reaction_endpoint }}"></div>
{% endif %}

{% if section.extra.comment is defined %}{% set show_comment = section.extra.comment %}{% else %}{% set show_comment = config.extra.comment %}{% endif %}
Expand Down

0 comments on commit 97172c0

Please sign in to comment.