Skip to content

Releases: VincentTam/beautifulhugo

Basic Comment Preview

19 Nov 08:28
Compare
Choose a tag to compare
Basic Comment Preview Pre-release
Pre-release

Demo: https://vincenttam.gitlab.io/bhdemo

comment_preview

Technologies used:

  1. KaTeX math rendering (I added some more popular delimiters to the default ones.)
  2. Showdown Markdown parsing

Limitations:

  • Hugo and Showdown have different flavor of Markdown by default
  • Custom KaTeX macros are not supported unless you inject them into where renderMathInElement is called.

Staticman Nested Comments

16 Nov 10:57
Compare
Choose a tag to compare
Pre-release

Demo

https://vincenttam.gitlab.io/bhdemo

New functionalities

  • Add support to nested comments, based on dancwilliams/networkhobo@07033e0
  • Add some basic CSS code for backreferencing
  • Add a "reset" button to clear form data and reply target

Bug fixes

Backward compatibility

  • Compatible with existing posts
    • Visual output: a "reply to ..." link is added screenshot_2018-11-16 test staticman
    • Working principle: existing comment data stored as YAML files with missing fields replyThread, replyName, replyID won't cause an error while in {{ if not .replyThread }} in the template layout file.
  • It can be merged with the main branch.