Hugo Shortcode 渲染外部代码和文件
有时在我的文章中会包含代码块(例如,javascript);一个直接的方法是将代码直接复制到相应的markdown文件中。 然而,由于将来可能
Gitalk
is a comment plug based on Github issue api.
Hugo
can compile the Markdown files with themes and templates into static web files, such as CSS, HTML and JavaScript.
To use Gitalk
in the Hugo
blog, we need to add Gitalk related code as <div>
into the HTML template.
Then update the config.toml for Gitalk
.
Hugo
has many template params for the blog web page. There are two which are related to word count of articles.
There is an interesting api on https://ghchart.rshah.org/
It can display your Github chart information as an image.