Commit Graph

48 Commits

Author SHA1 Message Date
zhixuan
bcbba1eed0
fix(article): change .article-time classname to .article-lastmod (#306) 2021-08-15 11:12:56 +02:00
Simon Guest
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
Bachrul uluum
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
Jimmy Cai
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
Jimmy Cai
39dd18e603
feat(math): add inline math support (#88) 2020-12-24 10:57:01 +01:00
Jimmy Cai
2ad65a4c07
feat: add option to disable image processing (#83)
* feat: add option to disable image processing

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

* refactor(list): use article/components/header inside default.html

* refactor: use .Fill for cover image
2020-12-23 21:02:35 +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
31c42bcfe7
refactor(gallery): rewrite gallery (#79)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/70
2020-12-22 19:35:37 +01:00
Jimmy Cai
d205753323
refactor(i18n): translation key renaming (#68)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/63
2020-12-19 01:41:26 +01:00
Ahmad Yasser
37a2090739
fix(article): related contents is showing hidden post 2020-11-06 16:19:26 +08:00
Ahmad Yasser
a3f1d84c51
fix(article): related contents is showing hidden post 2020-11-06 11:10:30 +08:00
Jimmy Cai
b5645f0180 refactor: use relative link for hyperlinks 2020-10-31 23:24:58 +01:00
Jimmy Cai
49e568faac
refactor: add .section-title (#36)
For the small title before the card

Remove .widget-title, .archive-date, .taxonomy-type from SCSS, as they all share the same style.
2020-10-12 20:49:56 +02:00
Jimmy Cai
9df7271547
refactor: remove humanize function from taxonomy name 2020-10-10 09:13:40 +02:00
Jimmy Cai
871e8c0bd5
feat(helper): add helper/icon 2020-10-10 00:27:56 +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
8d508fb796
refactor(i18n/article): remove date variable from lastUpdatedOn item
Due to Hugo v0.76's i18n behaviour change
2020-10-09 19:01:37 +02:00
romainx
1d95c4b8ff Fix categories with special char or spaces not displayed correctly
Call to [`urlize`](https://gohugo.io/functions/urlize/) to get the category url instead of using its name directly.
2020-10-09 09:49:19 +02:00
Jimmy Cai
b14ca5d15b
feat(article): add KaTeX support 2020-09-21 16:22:44 +02:00
Jimmy Cai
117dd4b81e
fix(article/details): fix custom taxonomy link 2020-09-18 20:05:19 +02:00
Jimmy Cai
d292727821
Merge branch 'master' into custom-taxonomy-permalink 2020-09-18 00:35:43 +02:00
Jimmy Cai
93146c9dc3
fix: add .Type as second cache key for helper/image
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/12
2020-09-18 00:12:26 +02:00
Jimmy Cai
b540350d76
feat(article): add support for custom taxonomy link 2020-09-18 00:00:39 +02:00
Jimmy Cai
c74cc3e4b3
feat(article): add partialCached to article/components/details
Avoid rendering twice (in post list and article page)
2020-09-17 23:13:50 +02:00
Jimmy Cai
cf6502c311
feat: add partialCached to helper/image invocation
Using .RelPermalink as key for cache
2020-09-17 21:52:06 +02:00
Jimmy Cai
2451b194dc
refactor: use relLangURL to build relative links
For better i18n support

Fixes archive page path
Remove tag cloud term exclusion

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/8
2020-09-13 10:14:17 +02:00
Jimmy Cai
d14a39913c
style(partial/article): remove empty space in classname 2020-09-12 10:37:55 +02:00
Jimmy Cai
a2732a312a
feat(image): add article and article list default image settings 2020-09-11 18:07:29 +02:00
Jimmy Cai
a2662603df
feat(helper/image): new way to set default image 2020-09-11 16:27:23 +02:00
Jimmy Cai
cfd4cdb731
feat(helper/image): new return format 2020-09-11 16:01:01 +02:00
Jimmy Cai
28c06ef8ae
feat(helper/image): new image helper (WIP) 2020-09-10 18:53:36 +02:00
Jimmy Cai
04454a51ea
feat(i18n): change lastUpdatedOn item struct 2020-09-09 22:41:42 +02:00
Jimmy Cai
4d0e260318
feat(i18n): make dateFormat part of theme config 2020-09-09 17:35:22 +02:00
Jimmy Cai
ed4a43096c
feat(i18n): initial support for i18n 2020-09-09 17:17:09 +02:00
Jimmy Cai
c546964ce4
feat(comments): prepare for more third party comments system integration 2020-09-08 23:30:15 +02:00
Jimmy Cai
d2cc93d5c7
fix(article/footer): display last updated time only when it's different to article publish time 2020-09-06 20:33:23 +02:00
Jimmy Cai
0cac2218e3
feat(article): display last updated time of a post 2020-09-06 20:26:18 +02:00
Jimmy Cai
3742a0775b
feat(article/details): better article time display 2020-09-06 20:10:25 +02:00
Jimmy Cai
90bdc34eb8
feat(article): custom license per article 2020-09-06 14:02:48 +02:00
Jimmy Cai
0745285e71
feat(config.toml): change config structure for article license 2020-09-06 13:58:21 +02:00
Jimmy Cai
47fb5af201 refactor: change config.toml structure 2020-09-06 12:56:44 +02:00
Jimmy Cai
99eb6cdfd0
feat(article/related contents): style change 2020-09-05 00:50:08 +02:00
Jimmy Cai
6b1e660327 refactor(ts/color): improve code style and change name of some variables for more clarity 2020-08-29 11:43:00 +02:00
Jimmy Cai
746537a801 refactor(article): add components/details 2020-08-29 11:34:26 +02:00
Jimmy Cai
32732d4bf1 feat: avoid regenerate color scheme when image URL is changed
Use MD5 as key to identify images, and .Slug as id
2020-08-28 12:11:02 +02:00
Jimmy Cai
e120f3ae18 refactor(article): split article.html into header, content and footer partials 2020-08-24 19:27:51 +02:00
Jimmy Cai
c698d944e6 🎉 Initial commit 2020-08-22 13:20:08 +02:00