Commit Graph

42 Commits

Author SHA1 Message Date
Jimmy Cai
626265bcfd
refactor(article): better support for svg and external images (#326) 2021-08-25 12:20:15 +02:00
Jimmy Cai
41fa65cbf5
feat: Table of Contents (#232)
Currently, the new table of contents is disabled by default. I will change that after several versions.

-------------

* feat: Table of Content (WIP)

* fix: set scratch inside define block

* fix(toc): darkmode text color

* feat: unify page layout, and add config to disable toc

* feat: add scroll-behavior: smooth to html

* fix: use <ol> for TOC. And Disable TOC by default for now

* refactor: use css flexbox for article page with toc

enable toc for example site

* feat(i18n): add i18n entry for "Back" and "Table of Contents"

* style: remove unused `keep-sidebar` class

* doc: add table of contents as feature
2021-06-21 18:44:54 +02:00
Jimmy Cai
495a3b0289
refactor: rewrite grid system & style changes (#231)
* refactor(WIP): add new SCSS mixin `respond`

Theme's stylesheet mixes the use of max-width and min-width for responsive design, and it's horrible.

* refactor: update variable.scss to use @mixin respond

* refactor(grid): adjust sidebar max-width

* refactor(partials/article.scss): use `@include respond`

* refactor(layout/article.scss): delete unused SCSS and migrate to `@include respond`

* Adjust left sidebar max-width on xl screen

* fix: right sidebar not sticky

* refactor(breakpoint): simplify `@mixin respond`

* refactor(breakpoints): improve warning message

* fix(breakpoint): return only the requested breakpoint

* fix: add missing padding to .article-details
2021-06-20 12:53:10 +02:00
Jimmy Cai
3e8490da1d
fix: incorrect image & menu path for site hosted in subdir (#168) 2021-03-07 13:13:07 +01:00
Jimmy Cai
79412144d9
fix: disable svg image processing (#144)
* fix: disable svg image processing

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

* style: remove extra blank space
2021-02-13 12:57:19 +01:00
Jimmy Cai
70cc14fcbe
feat(list): display subsections in list style when there are no normal pages (#121)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/116
2021-01-07 11:28:16 +01:00
Jimmy Cai
ae477ab224
refactor(archives): remove archive.categories i18n item (#108)
It's possible in the future to display another kind of taxonomy.

To translate that title, create _index.md under  content/categories, with the following content:

---
title: Category
---
2021-01-01 13:04:37 +01:00
Jimmy Cai
3326cf886a
fix: dark mode toggle inconsistent positioning (#89) 2020-12-24 11:06:58 +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
358e63e799
feat(darkmode): dark mode toggle (#82)
* feat(darkmode): initial support for dark mode toggle

* fix(darkmode): add svg icons

* feat(darkmode): dispatch onColorSchemeChange event

* add head/darkmode

* feat(darkmode); add colorScheme config

* style: remove empty line

* refactor(darkmode): simplify code

* style: add comment for darkmode config

* i18n support for dark mode toggle

* Some renaming
2020-12-23 19:03:40 +01:00
Jimmy Cai
7d841cf237
feat(list): add subsection support (#81)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/48
2020-12-22 21:14:50 +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
33685fb878
fix(list): section title style (#76) 2020-12-21 17:26:58 +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
Daniel Pessoa
bfeddf3217
feat(i18n): Coverage improvements (#59)
* Replace hardcoded text with i18n

* Add categoriesTitle text

* Add categoriesTitle text

* Add new strings available

Co-authored-by: Daniel Pessoa <cobalto@users.noreply.github.com>
2020-12-11 16:11:47 +01:00
Jimmy Cai
b3df22940d
Merge branch 'master' into template-search 2020-10-31 23:37:36 +01:00
Jimmy Cai
b5645f0180 refactor: use relative link for hyperlinks 2020-10-31 23:24:58 +01:00
Jimmy Cai
c666c79800
Merge branch 'master' into template-search 2020-10-17 10:45:17 +02: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
c19780280e
feat: add "head" block 2020-09-26 23:00:48 +02:00
Jimmy Cai
26acceb37d
feat(scss): improve 2 column style 2020-09-23 13:20:18 +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
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
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
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
ed91cb7629
refactor(layouts): move layout HTML to baseof.html
For better maintainability
2020-09-12 10:33:53 +02:00
Jimmy Cai
b064b5ef85
refactor: move partial/head.html and partial/footer.html 2020-09-11 22:41:40 +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
19ff7a46bb
fix(_default/term): switch to new image helper 2020-09-10 18:58:41 +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
0eb492edbd
fix(_default/single): make article card full width 2020-09-07 14:12:51 +02:00
Jimmy Cai
334e918bc3
fix(article): fix top padding 2020-09-07 11:49:33 +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
a6870541dd feat: add head/custom and footer/custom for inserting custom code 2020-08-24 20:48:31 +02:00
Jimmy Cai
a1250ee75f feat(article): add render-link hook 2020-08-24 12:07:58 +02:00
Jimmy Cai
d36a7c0950 fix(markdown image): be able to insert external images 2020-08-22 21:02:30 +02:00
Jimmy Cai
c698d944e6 🎉 Initial commit 2020-08-22 13:20:08 +02:00