Commit graph

68 commits

Author SHA1 Message Date
jeffreytse
9ecb45bd4e fix: inaccurate google translation behavior (#55) 2021-08-12 12:13:12 +08:00
jeffreytse
0fea688977 fix: liquid syntax error of footer copyright 2021-06-29 10:45:31 +08:00
Yuchen Zhang
b3e6ee2f69
feat: support copyright placeholders/variables (#46)
* feat: re-format copyright message and auto increase current year

* docs: add comment for copyright setting

This comment is crucial, especially for newcomers.

* refactor: better liquid code format

Co-authored-by: jeffreytse <jeffreytse.mail@gmail.com>
2021-06-29 10:31:58 +08:00
jeffreytse
4e3e599bbf perf: postpone initializing site header
Postpone this step to the stage that DOM loaed, but img and css not
2021-06-28 18:45:05 +08:00
jeffreytse
735c2ad48b perf: postpone loading google-analytics script 2021-06-28 18:41:08 +08:00
jeffreytse
78f2d77170 perf: links to cross-origin destinations are unsafe
Add `ref=noopener` to the `a.goog-logo-link` tag to solve the issue
found out by Chrome lighthouse.
2021-06-28 17:34:53 +08:00
jeffreytse
6d4680a527 fix: video banner is not working in Safari (#47)
Auto add muted and playsinline properties when this permission
issue occurred.
2021-06-27 17:04:20 +08:00
jeffreytse
11edca1890 feat: support video banner 2021-06-26 12:05:19 +08:00
jeffreytse
29f69dcc2a fix: wrong default value of calling functions 2021-06-26 12:03:11 +08:00
jeffreytse
3340bcd1b7 style: adjust the liquid syntax of some code 2021-06-25 14:19:46 +08:00
jeffreytse
404a26e6a9 feat: support banner heading and subheading styles 2021-06-25 14:16:44 +08:00
jeffreytse
245fe2a047 fix: get value from site config incorrectly
When the value is stored in a dictionary and the value isn't
presented in front matter, the get_value function can not get
value from the site config instead.
2021-06-25 14:13:00 +08:00
jeffreytse
f39f3884cc feat: add min_height option to banner 2021-06-17 21:51:00 +08:00
jeffreytse
325912a0eb fix: config of banner background not working 2021-06-17 21:07:40 +08:00
jeffreytse
c593085877 fix: wrong default banner opacity and height 2021-06-17 20:57:56 +08:00
jeffreytse
6b5857a215 feat: add img tag of banner for SEO 2021-06-17 20:45:01 +08:00
jeffreytse
cae6e2e549 feat: support advanced banner configuration
Support to configurate the banner opacity and height.
2021-06-17 20:39:11 +08:00
jeffreytse
9b06eb1ba9 style: revise liquid code syntax 2021-06-17 18:57:37 +08:00
jeffreytse
844aea6c74 fix: hash locating of cjk heading isn't working (#44)
When the heading includes CJK (Chinese, Japanese, Korean)
characters, the hash locating isn't working correctly, the page
will not automatically scroll to the corresponding heading.
2021-05-27 11:03:50 +08:00
jeffreytse
c718e7e62f feat: better post excerpt of pagination
Add "Read More" to the end of post excerpt, and support to click
the excerpt to open the post.
2021-05-26 21:46:29 +08:00
Mark
1bd266423b
fix: wrong relative url of post tag in pagination (#31)
Co-authored-by: Mark Chen <markchenyutian@gmail.com>
2021-05-02 22:35:18 +08:00
jeffreytse
17de6a6bfd chore: change the default article excerpt size 2021-01-23 17:12:40 +08:00
jeffreytse
d2f3025958 fix: invalid integer in get_article_excerpt function 2021-01-11 18:48:37 +08:00
jeffreytse
4be8ad5418 fix: article excerpt was incorrect for cjk content 2021-01-11 18:36:18 +08:00
jeffreytse
fac480f381 chore: reivise get_reading_time function 2021-01-11 18:34:51 +08:00
jeffreytse
a037056663 feat: add some article-related functions
These functions include get_article_excerpt and get_article_words.
2021-01-11 18:33:52 +08:00
jeffreytse
48d4da4f1b fix: reading time was incorrect for cjk words (#20)
The liquid filter `number_of_words` is for english words, so here
we use a calculation to estimate accurately the words, especially
when the language is not English.
2021-01-11 11:18:35 +08:00
jeffreytse
7af0bc4701 chore: remove unused test ouput 2021-01-08 12:15:00 +08:00
jeffreytse
3f2e5824e2 feat: support configure the code badge (#19) 2021-01-08 12:12:57 +08:00
jeffreytse
c896442fcf refactor: migrate code highlight to an extension 2021-01-08 12:04:25 +08:00
jeffreytse
fcdfc7ea09 feat: support dict object for get_value function 2021-01-08 11:51:40 +08:00
jeffreytse
ae318f5d72 feat: better dark mode strategy (#15)
Whatever the user's choice is, it will supersede the default
setting of the site and be kept during the visit (session).
Only the dark mode setting is `manual`, the user's choise will
be always kept on every visit (i.e. no matter the browser
is closed or not)
2020-12-28 12:04:18 +08:00
jeffreytse
b43b6bd748 fix: footer display issue when no author 2020-12-09 09:52:51 +08:00
jeffreytse
6ce4a254e4 fix: wrong default value of night mode 2020-10-15 17:05:26 +08:00
jeffreytse
20cd65baba fix: wrong option name of night mode 2020-10-11 16:32:44 +08:00
jeffreytse
c8e4149792 feat: add config option for night mode 2020-10-10 14:13:34 +08:00
jeffreytse
023ba51a08 perfect: improve browser compatibility 2020-10-03 12:23:29 +08:00
jeffreytse
ba1db7db3e feat: add night mode (#4) 2020-10-03 11:55:14 +08:00
jeffreytse
1909d09600 fix: header_transparent option not working 2020-09-29 12:55:26 +08:00
jeffreytse
a7d8a2977d fix: some function params not working 2020-09-29 12:54:54 +08:00
jeffreytse
5ad3ccd7b2 fix: wrong disqus source 2020-09-23 16:16:20 +08:00
jeffreytse
740fbd3e0a fix: wrong relative urls 2020-09-22 11:07:09 +08:00
jeffreytse
fa7475dc5e fix: wrong relative url in sidebar extensions (#1) 2020-09-12 01:52:50 +08:00
jeffreytse
33e006dbca feat: auto collapsed menu by heading amount 2020-09-01 10:55:01 +08:00
jeffreytse
9b5b05463d feat: auto collapsed menu 2020-08-31 17:21:45 +08:00
jeffreytse
690e71acfc fix: wrong relative banner url 2020-08-31 17:16:31 +08:00
jeffreytse
2363157807 feat: add reading time and icons 2020-07-16 19:25:52 +08:00
jeffreytse
87cf6bca65 feat: add get reading time function 2020-07-16 19:24:05 +08:00
jeffreytse
5b605ecabb feat: change paginator style 2020-07-12 17:39:23 +08:00
jeffreytse
413f0997d9 feat: change theme styles 2020-07-12 16:23:23 +08:00