Commit Graph
187 Commits
Author SHA1 Message Date
Christopher John JacksonandGitHub 00c8616931 fix(article/comments): accept boolean true in .Params.comments (#352) 2021-09-17 21:29:19 +02:00
zhixuanandGitHub 9c7e73646c feat(article): add positional parameter for video shortcode (#331) 2021-08-26 18:50:03 +02:00
Jimmy CaiandGitHub e24f5672c3 release: 3.2.0 2021-08-25 12:25:11 +02:00
Jimmy CaiandGitHub 626265bcfd refactor(article): better support for svg and external images (#326) 2021-08-25 12:20:15 +02:00
9f734a0647 feat(comments): DisqusJS integration (#307)
* add comment provider: DisqusJS

* Simplify `if` condition, and format code

* Load disqusjs.scss only when it's enabled

* Use `let` instead of `var`

Co-authored-by: sspirits <admin@lv5.moe>
Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-08-15 19:19:51 +02:00
Jimmy CaiandGitHub 90b6baccc1 release: 3.1.0 2021-08-15 12:05:12 +02:00
c4cd4bf9a1 feat(comments): giscus integration (#304)
Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-08-15 12:03:59 +02:00
zhixuanandGitHub bcbba1eed0 fix(article): change .article-time classname to .article-lastmod (#306) 2021-08-15 11:12:56 +02:00
Jimmy CaiandGitHub 1055adf498 release: 3.0.0 2021-08-08 16:24:02 +00:00
Jimmy CaiandGitHub 4a0cbac234 feat(menu): support open an entry in new tab (#294)
* feat(menu): support open an entry in new tab

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/230

* Revert change in markup.tableOfContents.ordered

* Upgrade Netlify Hugo version

* doc: require Hugo Extended >= 0.87.0
2021-08-08 17:39:33 +02:00
zhixuanandGitHub 61c021dae2 fix(comments): improve Twikoo style (#289) 2021-08-07 17:29:01 +02:00
zhixuanandGitHub 2fd3bde9a4 fix(comment/twikoo): submit button color (#288) 2021-08-05 11:20:03 +02:00
7b51bea912 feat(comment): add Twikoo support (#286)
* Create twikoo.html

* Upgrade to Twikoo 1.4.3 and add `lang` param

* Add twikoo section in config.yaml

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-08-04 20:49:21 +02:00
zhixuanandGitHub 99c4c89f0a feat(article): add video shortcode (#280) 2021-07-27 10:42:06 +02:00
44e3d20bad feat(article): use markdownify for licence in article (#273)
* Use markdownify for licence in article

So we can use links, e.g. to credits for main photo.

* refactor: move .article-copyright style to partials/layout/article

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-07-25 19:50:52 +02:00
dcfc7b5589 feat(article): reading time (#204)
* add reading time feature

* Revert change in jsconfig.json

* feat: add article.readingTime param, and improve style

* Revert change in jsconfig.json x2

* Remove reading time in compact layout

It doesn't look right to me for now

* feat: add i18n support to reading time string

* Hide footer.article-time when there's not content

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-07-23 18:37:30 +02:00
a25e6463bd feat(sidebar): add option to disable avatar in left sidebar (#268)
* Allow to disable logo image in left sidebar

* Enable sidebar avatar by default for backward compatibility

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-07-23 10:56:52 +02:00
慕枫GoandGitHub b7d4048298 feat(comment/vssue): add parameter 'autoCreateIssue' (#258)
It's default false
2021-07-07 13:18:05 +02:00
Jimmy Cai 1fa573dae3 release: version 2.5.0 2021-07-06 12:36:34 +02:00
Jimmy 70615246c5 release: v2.4.0 2021-06-21 18:50:24 +02:00
Jimmy CaiandGitHub 41fa65cbf5 feat: Table of Contents (#232)
Currently, the new table of contents is disabled by default. I will change that after several versions.

-------------

* feat: Table of Content (WIP)

* fix: set scratch inside define block

* fix(toc): darkmode text color

* feat: unify page layout, and add config to disable toc

* feat: add scroll-behavior: smooth to html

* fix: use <ol> for TOC. And Disable TOC by default for now

* refactor: use css flexbox for article page with toc

enable toc for example site

* feat(i18n): add i18n entry for "Back" and "Table of Contents"

* style: remove unused `keep-sidebar` class

* doc: add table of contents as feature
2021-06-21 18:44:54 +02:00
dda55f87e2 feat: change the page vertical scrollbar styles (#227)
* fix: take out [data-scheme="dark"] from :root

Taking out the [data-scheme="dark"] from :root allows us to fix the
precedence of CSS when the [data-scheme="dark"] is placed in the <html>
tag. This is needed in order to make the dark styles accesible from the
<html> elment, this will allow us to change the vertical scrollbar
styles following the dark and light schemes.

* change document.body.dataset.scheme to document.documentElement.dataset.scheme

When the dark mode is on or when the light mode is on, the
[data-scheme="light"] or [data-scheme="dark"], respectively, will be
placed in the <html> tag. Allowing us to access the dark and light color
schemes from the <html> to change the vertical scrollbar styles
according to the current color scheme.

* feat: change the page vertical scrollbar styles

This change will make the vertical scrollbar styles to follow the dark
and light color scheme modes. Also, this change will make the vertical
scrollbar to look consistent in both, Chromium and Firefox.

* make the scrollbar-track background-color transparent

The body has this transition: 'transition: background-color 0.3s ease
0s'. Making the scrollbar-track background-color transparent allow us to
appreciate that transition in the scrollbar-track when switching the
background-color.

* Move [data-scheme=dark] back to :root block

* fix(comment/waline): detect dark mode from html tag

* feat: apply custom scrollbar style to all elements

Co-authored-by: Jimmy Cai <jimmehcai@gmail.com>
2021-06-20 15:49:35 +02:00
Jimmy CaiandGitHub 495a3b0289 refactor: rewrite grid system & style changes (#231)
* refactor(WIP): add new SCSS mixin `respond`

Theme's stylesheet mixes the use of max-width and min-width for responsive design, and it's horrible.

* refactor: update variable.scss to use @mixin respond

* refactor(grid): adjust sidebar max-width

* refactor(partials/article.scss): use `@include respond`

* refactor(layout/article.scss): delete unused SCSS and migrate to `@include respond`

* Adjust left sidebar max-width on xl screen

* fix: right sidebar not sticky

* refactor(breakpoint): simplify `@mixin respond`

* refactor(breakpoints): improve warning message

* fix(breakpoint): return only the requested breakpoint

* fix: add missing padding to .article-details
2021-06-20 12:53:10 +02:00
ed4a1bc56e feat(comment): add Waline (#200)
* feat(comment): add Waline

* fix: waline client config

* fix: waline client config

* #200#issuecomment-860025299

* Update config.yaml

* Update Waline section of config.yaml

* Remove double quote escape

Co-authored-by: zhixuan <jinzhixuan666@gmail.com>
Co-authored-by: Jimmy Cai <jimmehcai@gmail.com>
2021-06-14 21:05:27 +02:00
zhixuanandGitHub 2c0bf8c940 feat: Add support for Google Analytics v4 (#214) 2021-06-12 09:51:31 +02:00
kandGitHub 45b16a0bb4 fix(typo): change 'a ex.*' for 'an ex.*' (#213)
In order to fix this kind of typo, the (not sophisticated) Regular
Expression: `[a-zA-Z] [aA] [aeiouAEIOU]` was ran.

That Regular Expression matches some good written sentences like `a
User`, therefore, those has been omitted.
2021-06-12 09:24:59 +02:00
325303a7f8 feat: add Vssue comment (#197)
* 添加Vssue评论插件

* 修复默认代理过期问题

* style(comment/vssue): format html

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-04-26 18:27:44 +02:00
zhixuanandGitHub 7dab67b358 refactor(opengraph/twitter): add @ before username (#186)
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/twitter_cards.html
2021-04-07 10:31:25 +02:00
Jimmy Cai 1300e0d714 release: 2.3.0 2021-03-27 23:39:29 +01:00
Jimmy CaiandGitHub 3e8490da1d fix: incorrect image & menu path for site hosted in subdir (#168) 2021-03-07 13:13:07 +01:00
Jimmy CaiandGitHub d5268a41e0 refactor(article): add default padding (#166)
* refactor(article): add default padding

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/165

* fix(article): video iframe margin

* fix: remove youtube iframe border
2021-03-07 12:51:47 +01:00
Jimmy Cai cef9fe2549 release: v2.2.0 2021-02-13 16:30:01 +01:00
Jimmy CaiandGitHub 79412144d9 fix: disable svg image processing (#144)
* fix: disable svg image processing

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/132

* style: remove extra blank space
2021-02-13 12:57:19 +01:00
79d8c1db38 feat: Tencent video shortcode and remark42 integration (#143)
* 增加remark42的评论系统支持,config中增加对应配置。

* remark42评论系统,语言配置加入到config中,修正切换theme时评论区跟随主题切换。

* - 新增腾讯视频的支持
- 支持通过frontmatter配置在文章中插入音频

* 更新readme

* Delete README.md

* Create README.md

* Remove MetingJS

* fix(shortcode/tencent): switch to HTML5

The old one was showing video using Flash.

* style(comments): clean remark42 integration code

Co-authored-by: wood <wood@hfge.cn>
Co-authored-by: Wood <34589275+hfge@users.noreply.github.com>
2021-02-13 11:10:24 +01:00
Jimmy Cai 6c27767dac release: 2.1.0 2021-02-12 14:57:51 +01:00
Jimmy CaiandGitHub 8b17b8a4ee feat: add data/external.yaml (#140)
* feat: add data/external.yaml

Manage all external resources URL in one file

* style: format data/external

* style(helper/external): error message

* remove whitespace
2021-02-12 13:21:43 +01:00
83e3a4e8e1 feat: Google Analytics support (#135)
* Added Google Analytics feature

* style: load GA script before head/custom

* style(config): googleAnalytics field empty by default

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-02-11 18:56:39 +01:00
Jimmy CaiandGitHub a8718592df fix(utterances): set color scheme on load (#138)
* fix(utterances): set color scheme on load

Remove utterances.theme option from config.yaml

* fix(utterances): restore async tag
2021-02-11 18:46:23 +01:00
Jimmy CaiandGitHub 70cc14fcbe feat(list): display subsections in list style when there are no normal pages (#121)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/116
2021-01-07 11:28:16 +01:00
Jimmy CaiandGitHub 84dd80959a fix: make Disqus / Utterances follow the global color scheme (#111)
* fix: make Disqus / Utterances follow the global color scheme

* fix: check if DISQUS exists before executing DISQUS.reset

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/107
2021-01-01 13:32:19 +01:00
Jimmy CaiandGitHub 2ee854dd6a fix(search): add missing i18n text (#110) 2021-01-01 13:24:26 +01:00
Jimmy Cai efa3452cdb refactor(widget/archives): remove .widgets.archives.path config
The theme will automatically detect the permalink to the archives page.
2021-01-01 13:16:11 +01:00
Jimmy Cai 5ac2552e7c fix(widget/search): remove hardcoded form action 2021-01-01 13:12:23 +01:00
Jimmy CaiandGitHub ae477ab224 refactor(archives): remove archive.categories i18n item (#108)
It's possible in the future to display another kind of taxonomy.

To translate that title, create _index.md under  content/categories, with the following content:

---
title: Category
---
2021-01-01 13:04:37 +01:00
zoxoyandGitHub bccb62cd46 feat: add bilibili shortcode (#97) 2020-12-30 09:28:22 +01:00
Jimmy Cai 464f4b1d3b chore: release 2.0.1 2020-12-26 09:14:49 +01:00
Jimmy CaiandGitHub a5820c6f52 fix(search): wrong permalink to page (#93)
- Show external image

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/92
2020-12-25 09:39:04 +01:00
Jimmy CaiandGitHub 3326cf886a fix: dark mode toggle inconsistent positioning (#89) 2020-12-24 11:06:58 +01:00
Jimmy CaiandGitHub 39dd18e603 feat(math): add inline math support (#88) 2020-12-24 10:57:01 +01:00
Jimmy Cai e937a14367 chore: release 2.0.0 2020-12-23 23:21:50 +01:00