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
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
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
7e701c0239
refactor(scss): remove comments
scss folder. Include style of each comment system inside their HTML template
2020-09-09 16:19:37 +02:00
Jimmy Cai
4fc5b7467f
fix: add margin-top to site footer
2020-09-09 11:37:43 +02:00
Jimmy Cai
2912b7e2f0
fix(comments): remove div.comments-container, apply card style depending on comment system
2020-09-09 00:24:17 +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
b66679d36a
fix(head): remove <base> tag
...
Causes misbehaviour of anchor link
2020-09-08 22:37:56 +02:00
Jimmy Cai
0eb492edbd
fix(_default/single): make article card full width
2020-09-07 14:12:51 +02:00
Jimmy Cai
37ca2cc167
fix(archive): display categories list when it's available
2020-09-07 12:32:08 +02:00
Jimmy Cai
334e918bc3
fix(article): fix top padding
2020-09-07 11:49:33 +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
7f3d906f24
feat(article list/default): better thumbnail
2020-09-06 19:51:16 +02:00
Jimmy Cai
2ab49f97ee
feat: add default/list
...
fix warning: found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
2020-09-06 14:18:38 +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
e728263d13
feat(config): add .Params.widgets.archive.path
2020-09-06 13:28:24 +02:00
Jimmy Cai
e176e29811
refactor: use .Params.mainSections to filter posts
...
It's recommended by Hugo's official doc: https://gohugo.io/functions/where/#mainsections
2020-09-06 13:15:38 +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
af487e0f3f
feat(style): remove timeago.js, and improve article-time style
2020-09-03 11:47:55 +02:00
Jimmy Cai
ddfc10a9f5
feat(article): add site footer to page layout
2020-08-31 09:29:09 +02:00
Jimmy Cai
3385a34d28
feat: load custom font asynchronously
2020-08-29 17:06:02 +02:00
Jimmy Cai
1b948ed8c8
refactor: include timeago.js from JSDelivr
2020-08-29 16:53:27 +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
ced9823d99
feat(footer): add Github repo link in footer
2020-08-26 20:47:50 +02:00
Jimmy Cai
9cb3115914
feat(article list): make featured image clickable
2020-08-25 21:16:47 +02:00
Jimmy Cai
415b8a7a0a
fix(article list): show all categories assigned to a post
2020-08-25 21:15:25 +02:00
Jimmy Cai
ff351ab294
feat(widget/archive): add config to limit output number
2020-08-25 12:39:03 +02:00
Jimmy Cai
2d94f80b79
fix(sidebar): check if param exists before accessing avatar and icon
2020-08-24 21:20:59 +02:00
Jimmy Cai
a6870541dd
feat: add head/custom and footer/custom for inserting custom code
2020-08-24 20:48:31 +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
a1250ee75f
feat(article): add render-link hook
2020-08-24 12:07:58 +02:00
Jimmy Cai
8476bd0160
feat(head): add favicon support
2020-08-23 11:32:53 +02:00
Jimmy Cai
901d1f63fc
refactor(opengraph): move OpenGraph related settings to .Params.opengraph
2020-08-23 11:30:10 +02:00
Jimmy Cai
d36a7c0950
fix(markdown image): be able to insert external images
2020-08-22 21:02:30 +02:00