Commit graph

39 commits

Author SHA1 Message Date
Jimmy Cai
41c3033d1a
feat(article): add style to <kbd> tag (#862)
* fix: set `unsafe` to true for exampleSite

To display `<kbd>` tag correctly

* feat(article): add style to `kbd` tag

* feat: improve `<kbd>` style
2023-08-15 13:15:32 +02:00
Jimmy Cai
b03390d237
Revert "Merge branch 'canary' into master" (#712)
Revert "Merge branch 'canary' into master (#711)"

This reverts commit 8a597a5c9c.
2022-10-29 17:14:19 +02:00
Jimmy Cai
8a597a5c9c
Merge branch 'canary' into master (#711)
* refactor(i18n): simplify the structure of the translation file

* chore: prepare repository for v4.0.0-alpha

* chore: modify go.mod to v4

* refactor: migrate theme configuration to TOML

* fix: exampleSite not using correct theme

* feat: add favicon from assets folder

* refactor: drop linear grandient background feature

remove node-vibrant from dependencies

* feat: use Hugo's code block render hook to implement code copy button

Now it can have i18n support

* refactor: delete color.ts

* refactor: delete Emoji support post from example site

* refactor: drop support for `hidden` field in front matter

* feat: upgrade to PhotoSwipe v5

* chore: bump the required hugo version to 0.100.0

* refactor: remove PhotoSwipe from external.yaml

* fix: extra margin in search result

* fix: incorrect markdown heading level in example site

* refactor: remove some usages of `default` in template

No longer needed thanks to Hugo's configuration merge

* fix: one line codeblock style in firefox

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

* feat: add style to new codeblock

* feat: i18n support for codeblock copy text

* fix(menu): jitter when closing menu

It's caused by flexbox gap property, which can't animate

* fix(search): long text overflows under the Search icon

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/515
2022-10-29 17:02:24 +02:00
rmdhnreza
3d09c23284
feat(article): GitLab Snippets Shortcode (#627) 2022-06-11 11:04:20 +02:00
Simon Guest
955bb8dd7f
feat(shortcodes): add quote shortcode, and example (#414)
* Add quote shortcode, and example

* Use trim to improve whitespace

* Allow for quote with neither author nor source

* Format code and move quote.scss to article.scss

This style is only used on the article page, so it makes more sense to have it there.

Co-authored-by: Jimmy Cai <github@jimmycai.com>
2022-06-08 17:59:23 +02:00
Jimmy Cai
de952be116 fix(exampleSite): cn.md -> zh-cn.md 2022-03-19 23:16:58 +00:00
zhixuan
2671f292fd
fix(exampleSite): wrong zh-cn about page filename (#562) 2022-03-20 00:00:08 +01:00
Jimmy Cai
7d1713d407 refactor(i18n): use lowercase language codes
Related with this Hugo issue: https://github.com/gohugoio/hugo/issues/7344
2022-03-09 15:04:24 +00:00
Jimmy Cai
b5d0c5b37d fix(exampleSite): cn -> zh-CN 2022-03-09 14:59:36 +00:00
Jimmy Cai
15d2040f7e chore(exampleSite): fix home menu item highlight 2022-03-04 08:46:27 +00:00
Jimmy Cai
c4e864a08d doc(exampleSite): move chinese-test post to /cn 2022-03-04 08:41:47 +00:00
FarisZR
0d0375a7fc
feat: add RTL Support and update demo site to Show Arabic/RTL content (#519)
* add LanguageDirection variable

* add .direction-rtl and .direction-ltr clases

* margin -right > margin-inline-end

* keep Codeblocks LTR

* switch to logical properties

* left -> inset-inline-start

* Add Arabic/RTL placeholder text

* Add arabic language

* remove space

* use Html Dir instead of class

* Move codeblock code to layout/article.css and fix 4 spaces codeblocks

* remove unused clases
2022-03-04 00:25:34 +01:00
Jimmy Cai
b3b8fa73ef
feat(article): add link to translated content (#511) 2022-02-27 09:48:57 +01:00
Jimmy Cai
d75dbe2b6e
fix: copy code button does not work when line number is enabled (#487)
* fix: copy code button does not work when line number is enabled

* fix pre style

* Add gist shortcode to exampleSite
2022-02-06 20:32:37 +01:00
Jimmy Cai
88beecd101
fix: hyperlinked image (#485)
* fix: hyperlinked image

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

* feat: add support to inline images

* Remove unused code

* Remove data-alt-html
2022-02-06 19:58:10 +01:00
zhixuan
0af9d23e49
feat(article): add scroll for table (#428)
* feat: table can't scroll & delete scrollbar style for Chromium

* Undo some line breaks

* Add a table with overflow to exampleSite
2022-01-20 12:09:25 +01:00
Jimmy Cai
a669b60cdd chore(exampleSite): make default pages use page bundle feature
To avoid confusions
2021-12-28 10:33:48 +00:00
Jimmy Cai
455e23f22b
feat: page links (#446) 2021-12-28 11:28:20 +01:00
Jimmy Cai
4e2c8e74be
fix: add missing diff syntax highlight (#445)
closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/434
2021-12-28 10:48:22 +01:00
Jimmy Cai
7c59ac7713
refactor(menu): use .Params.icon to configure menu item icon (#400) 2021-10-23 09:18:44 +02:00
zhixuan
57bfea8338
fix(shortcodes): mixed content error with bilibili and tencent video (#365) 2021-09-24 20:32:53 +02:00
k
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
Jimmy Cai
9befda7310
refactor: add exampleSite menu using FrontMatter (#167) 2021-03-07 13:02:39 +01:00
Jimmy Cai
e606dca404
refactor(article): remove color tag & add custom category color (#75)
closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/71
2020-12-22 19:43:14 +01:00
Jimmy Cai
b3df22940d
Merge branch 'master' into template-search 2020-10-31 23:37:36 +01:00
Jimmy Cai
d6b0f10241 fix(exampleSite): remove Instagram shortcode
ref https://github.com/gohugoio/hugo/issues/7866

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/41
2020-10-26 17:38:16 +01:00
Jimmy Cai
c266204f98
Merge branch 'master' into template-search 2020-10-10 10:05:31 +02:00
Jimmy Cai
1c30df93d4
test: add CJK taxonomy to example post 2020-10-09 20:08:27 +02:00
Romain
14dacb5448
Merge branch 'master' into fix 2020-10-09 19:27:31 +02:00
romainx
ddebaee028 Fix tags and categories using GetTerms
See [documentation](https://gohugo.io/templates/taxonomy-templates/#display-a-single-piece-of-contents-taxonomies)
2020-10-09 19:26:28 +02:00
Jimmy Cai
8e8509177d
Merge branch 'master' into template-search 2020-10-09 19:12:50 +02:00
Jimmy Cai
b3a4f3b156
doc(exampleSite): add lastmod field to about page
To test last updated output
2020-10-09 19:03:56 +02:00
Jimmy Cai
08102e2f69
feat(exampleSite): add search page and widget 2020-09-26 12:06:56 +02:00
Jimmy Cai
7379bbe412
refactor: rename archive -> archives 2020-09-13 11:22:47 +02:00
Jimmy Cai
35f162943d
doc(exampleSite): add Chinese test post 2020-09-09 12:20:37 +02:00
Jimmy Cai
b5bcbcee12
doc(exampleSite): Remove unused markdown files 2020-09-08 09:15:59 +02:00
Jimmy Cai
90bdc34eb8
feat(article): custom license per article 2020-09-06 14:02:48 +02:00
Jimmy Cai
292e96d764
feat(exampleSite): add featured images from Unsplash for demo site 2020-09-06 00:43:51 +02:00
Jimmy Cai
20a6fc4d09 feat: add exampleSite 2020-08-24 21:27:32 +02:00