Commit Graph

504 Commits

Author SHA1 Message Date
Jimmy Cai
bad33e19ae
feat(post/single): add partialCached for PhotoSwipe HTML
Forgot to add it
2020-09-17 22:09:15 +02:00
Jimmy Cai
8f0d420d24
feat: add partialCached for data/title data/description 2020-09-17 21:59:57 +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
9a64b7a6f1
feat: partialCached for PhotoSwipe HTML 2020-09-17 21:46:48 +02:00
Jimmy Cai
96ff911c6e
feat(article): better syntax highlight style
Adapt to light & dark mode
2020-09-17 19:48:21 +02:00
Jimmy Cai
845834baa6
refactor(footer): add footer/include.html
To include HTML code for style and script
2020-09-17 19:47:03 +02:00
Jimmy Cai
841508f491
fix(menu): use <ol> to wrap menu items 2020-09-14 13:38:24 +02:00
Jimmy Cai
1e28a661d9
fix(article list): specify image width in srcset 2020-09-14 13:37:50 +02:00
Jimmy Cai
8c4ad17a09
feat(footer): add rel="noopener" to footer links 2020-09-14 13:37:15 +02:00
Jimmy Cai
4267346a4a
fix: use absLangURL for menu url
To avoid problem when the site is hosted in subdirectory
2020-09-13 14:03:41 +02:00
Jimmy Cai
779982eb95
doc: update theme.toml 2020-09-13 12:27:14 +02:00
Jimmy Cai
a750e02629
doc: add screenshots 2020-09-13 12:24:07 +02:00
Jimmy Cai
f26a9fa070
feat: add support for non-extended version of Hugo
resources folder is included now, with compiled SCSS file
2020-09-13 12:16:43 +02:00
Jimmy Cai
b06910fc5d
feat: add avatar placeholder to assets/img 2020-09-13 11:30:31 +02:00
Jimmy Cai
c12de4db04
refactor: rename archive -> archives in config.toml
And rename SVG icon.
2020-09-13 11:26:12 +02:00
Jimmy Cai
7379bbe412
refactor: rename archive -> archives 2020-09-13 11:22:47 +02:00
Jimmy Cai
c600f87213
feat: make archive template available for all sections 2020-09-13 11:00:19 +02:00
Jimmy Cai
45e7e07a86
refactor: change default article layout
Post layout become exclusive for `post` section (with toolbar)
Page layout become the default layout (without toolbar)
2020-09-13 10:59:52 +02:00
Jimmy Cai
294f445e0a
doc(config.toml): change baseurl to https://example.com
Following Hugo theme showcase guideline
2020-09-13 10:51:31 +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
822eba9513 doc(github): add issue templates 2020-09-12 23:57:44 +02:00
Jimmy Cai
929cd3c43a
doc(README): update README 2020-09-12 22:34:39 +02:00
Jimmy Cai
f0b3617ec4
fix(helper/image): add support for relative linked image 2020-09-12 22:14:32 +02:00
Jimmy Cai
426d1f3846
doc: update README and theme.toml 2020-09-12 13:33:36 +02:00
Jimmy Cai
e91f99421a
style(scss): move --small-card-padding to it's category 2020-09-12 13:19:49 +02:00
Jimmy Cai
2a0d06190b
Merge pull request #7 from CaiJimmy/refactor-baseof
refactor(layouts): move layout HTML to baseof.html
2020-09-12 10:49:45 +02:00
Jimmy Cai
d14a39913c
style(partial/article): remove empty space in classname 2020-09-12 10:37:55 +02:00
Jimmy Cai
ed91cb7629
refactor(layouts): move layout HTML to baseof.html
For better maintainability
2020-09-12 10:33:53 +02:00
Jimmy Cai
cca10c7947
refactor(scss): split CSS variables into different sections 2020-09-11 23:30:11 +02:00
Jimmy Cai
a31f0aae91
fix(head): default description not applied correctly 2020-09-11 23:04:26 +02:00
Jimmy Cai
67e8e6b854
fix(page/archive): partial "footer.html" not found 2020-09-11 23:02:23 +02:00
Jimmy Cai
5265af0b3b
reafctor(head): rewrite description.html function 2020-09-11 23:00:19 +02:00
Jimmy Cai
6f5ee1bbdb
refactor(head): rewrite title function 2020-09-11 22:50:30 +02:00
Jimmy Cai
b064b5ef85
refactor: move partial/head.html and partial/footer.html 2020-09-11 22:41:40 +02:00
Jimmy Cai
b64cbe1ef8
refactor(head): remove favicon output
It's better to use favicon generator tools, and paste HTML in head/custom.html
2020-09-11 21:59:05 +02:00
Jimmy Cai
3aabc8e61c
refactor(head): remove empty lines 2020-09-11 21:57:33 +02:00
Jimmy Cai
5f7e818b92
refactor(head/opengraph): split code into modules 2020-09-11 21:55:15 +02:00
Jimmy Cai
03f91c36b2
Merge pull request #5 from CaiJimmy/new-image-helper
feat(helper/image): new image helper
2020-09-11 18:15:46 +02:00
Jimmy Cai
2079174aa9
style(helper/image): code formatting 2020-09-11 18:13:39 +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
2acd380e98
feat(helper/image): customize field used to get featured image 2020-09-11 17:54:16 +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
3e18e165e0
feat(helper/image): better detection of external image
By using strings.HasPrefix, it matches any images which name starts with http
2020-09-10 23:24:19 +02:00
Jimmy Cai
19ff7a46bb
fix(_default/term): switch to new image helper 2020-09-10 18:58:41 +02:00
Jimmy Cai
28c06ef8ae
feat(helper/image): new image helper (WIP) 2020-09-10 18:53:36 +02:00
Jimmy Cai
62b0da64df
feat(i18n): add zh-CN translation 2020-09-09 22:48:37 +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
da112157cf
feat(scss): make hyperlink style available outside .article-content 2020-09-09 17:22:19 +02:00