Commit Graph
100 Commits
Author SHA1 Message Date
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 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 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 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
Jimmy Cai ed4a43096c feat(i18n): initial support for i18n 2020-09-09 17:17:09 +02:00
Jimmy Cai 98804e578d refactor: add copyright info in CSS and JS 2020-09-09 16:28:38 +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 9e42d8cd35 refactor(scss): remove helper/shadow. Expose shadow style in CSS variables 2020-09-09 16:14:30 +02:00
Jimmy Cai 190475dbad refactor(scss): create breakpoints.scss 2020-09-09 16:03:09 +02:00
Jimmy Cai 45b702d3ea doc(README): add Typlog credit 2020-09-09 13:23:18 +02:00
Jimmy Cai 35f162943d doc(exampleSite): add Chinese test post 2020-09-09 12:20:37 +02:00
Jimmy Cai 4fc5b7467f fix: add margin-top to site footer 2020-09-09 11:37:43 +02:00
Jimmy Cai 652caeabb1 feat(article): adjust blockquote background color 2020-09-09 00:28:50 +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 f051517f0a revert: doc(config.toml): remove permalinks settings from exampleSite config.toml
This reverts commit ea0f064cdf.
2020-09-08 23:53:16 +02:00
Jimmy Cai 080834ab96 ci(netlify): remove netlify-plugin-hugo-cache-resources 2020-09-08 23:50:20 +02:00
Jimmy Cai 321226b42d doc(exampleSite): change example site domain 2020-09-08 23:49:06 +02:00
Jimmy Cai c36f811162 doc(exampleSite): add disqus shortname for example site 2020-09-08 23:42:23 +02:00
Jimmy Cai ea0f064cdf doc(config.toml): remove permalinks settings from exampleSite config.toml
It's not very related to the theme
2020-09-08 23:31:32 +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 9b0e48e843 refactor: remove two unused svg icons 2020-09-08 21:29:34 +02:00
Jimmy Cai 44dadd7893 fix(article): add margin for ordered list 2020-09-08 13:31:18 +02:00
Jimmy Cai 18cd83125d feat(scss): improve blockquote style 2020-09-08 13:01:27 +02:00
Jimmy Cai 0e0f5edbec feat(scss): add table style
Style taken from: https://github.com/lepture/yue.css

closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/3
2020-09-08 12:48:34 +02:00
Jimmy Cai fd816ca9ef fix(article): fix article tag overflow
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/4
2020-09-08 12:09:03 +02:00
Jimmy Cai 902784cdd6 doc(README): add yue.css link 2020-09-08 11:44:30 +02:00
Jimmy Cai b5bcbcee12 doc(exampleSite): Remove unused markdown files 2020-09-08 09:15:59 +02:00
Jimmy Cai 488e9e9d23 doc(Chinese): add Notion page link 2020-09-08 00:01:48 +02:00
Jimmy Cai 199517d988 feat: add hover effect to article list card, tag cloud and archive list 2020-09-07 17:28:22 +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 3d57bfd59f doc(README): add more information 2020-09-07 12:13:51 +02:00
Jimmy Cai 334e918bc3 fix(article): fix top padding 2020-09-07 11:49:33 +02:00
Jimmy Cai 634e6ce96b feat: improve top padding and article toolbar style 2020-09-07 11:34:28 +02:00
Jimmy Cai 829678936b feat(article): change article toolbar style 2020-09-07 11:27:40 +02:00
Jimmy Cai b60e1ad5e5 fix(scss): change $on-phone media breakpoint 2020-09-07 11:19:06 +02:00
Jimmy Cai 17b2224b1f refactor(scss): remove some unused style 2020-09-06 21:14:10 +02:00
Jimmy Cai 39483eebc9 feat(sidebar): show y-axis scrollbar for menu 2020-09-06 21:08:27 +02:00
Jimmy Cai 3faecaef73 doc(README): update copyright 2020-09-06 21:04:51 +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 52a9ec9825 feat(netlify): use netlify-plugin-hugo-cache-resources plugin 2020-09-06 13:35:55 +02:00
Jimmy Cai e728263d13 feat(config): add .Params.widgets.archive.path 2020-09-06 13:28:24 +02:00
Jimmy Cai 06c724c141 fix(netlify): add ending slash to baseURL 2020-09-06 13:23:57 +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 292e96d764 feat(exampleSite): add featured images from Unsplash for demo site 2020-09-06 00:43:51 +02:00
Jimmy Cai 6cdb4b05ad feat(article): change article-title font size 2020-09-05 01:09:46 +02:00
Jimmy Cai 5412977216 fix(style): wrong padding-top for .main 2020-09-05 00:59:50 +02:00
Jimmy Cai 799f0ac479 feat(archive): style improvement 2020-09-05 00:51:01 +02:00
Jimmy Cai 99eb6cdfd0 feat(article/related contents): style change 2020-09-05 00:50:08 +02:00
Jimmy Cai 2d68b9e8ce fix(sidebar): misalignment 2020-09-04 13:10:11 +02:00
Jimmy Cai be6fcfb526 feat(sidebar): prevent sidebar from moving on page scroll 2020-09-03 23:37:48 +02:00
Jimmy Cai bbe7e4b73d feat(style): improve typography styles 2020-09-03 23:32:28 +02:00
Jimmy Cai 488f124b43 fix(style): show y-axis page scrollbar always 2020-09-03 23:27:50 +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 4bf9d82961 feat: style improvement 2020-09-03 11:42:01 +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