Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets/ts
AgeCommit message (Collapse)Author
2022-10-29Revert "Merge branch 'canary' into master" (#712)Jimmy Cai
Revert "Merge branch 'canary' into master (#711)" This reverts commit 8a597a5c9c861d2bce22a5e06c7667cd9c8e263a.
2022-10-29Merge branch 'canary' into master (#711)Jimmy Cai
* refactor(i18n): simplify the structure of the translation file * chore: prepare repository for v4.0.0-alpha * chore: modify go.mod to v4 * refactor: migrate theme configuration to TOML * fix: exampleSite not using correct theme * feat: add favicon from assets folder * refactor: drop linear grandient background feature remove node-vibrant from dependencies * feat: use Hugo's code block render hook to implement code copy button Now it can have i18n support * refactor: delete color.ts * refactor: delete Emoji support post from example site * refactor: drop support for `hidden` field in front matter * feat: upgrade to PhotoSwipe v5 * chore: bump the required hugo version to 0.100.0 * refactor: remove PhotoSwipe from external.yaml * fix: extra margin in search result * fix: incorrect markdown heading level in example site * refactor: remove some usages of `default` in template No longer needed thanks to Hugo's configuration merge * fix: one line codeblock style in firefox closes https://github.com/CaiJimmy/hugo-theme-stack/issues/564 * feat: add style to new codeblock * feat: i18n support for codeblock copy text * fix(menu): jitter when closing menu It's caused by flexbox gap property, which can't animate * fix(search): long text overflows under the Search icon closes https://github.com/CaiJimmy/hugo-theme-stack/issues/515
2022-07-28fix(article): footnote reference does not workJimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/632
2022-06-11fix(article): TOC link not working when the heading starts with digits (#603)lonzzi
2022-03-04fix: disable external image lightbox (#525)Jimmy Cai
2022-02-12fix: check if paragraph exists before accessing it's textContentJimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/490
2022-02-06fix: copy code button does not work when line number is enabled (#487)Jimmy Cai
* fix: copy code button does not work when line number is enabled * fix pre style * Add gist shortcode to exampleSite
2022-02-06fix: hyperlinked image (#485)Jimmy Cai
* fix: hyperlinked image closes https://github.com/CaiJimmy/hugo-theme-stack/issues/410 * feat: add support to inline images * Remove unused code * Remove data-alt-html
2022-01-22feat(article): Scrollspy for the table of contents (#425)Zoroark
* Add first try at scrollspy (broken right now) * Scrollspy actually works now * Fix VS Code errors by setting JS version * Recompute offsets when window size changes * Improve list compatibility for toc active selection Support up to 6 levels of indentation, properly support <ol> * Remove debug string * Add more docs in smoothAnchors * Use a map to match ids to navigation elements
2022-01-19fix(shortcode): conflict with gist shortcode (#455)zhixuan
2022-01-19refactor(search): avoid issue with one character keyword (#447)Jimmy Cai
* refactor(search): avoid issue with one character keyword closes https://github.com/CaiJimmy/hugo-theme-stack/issues/184 * Remove keyword sorts * fix typo: secion -> section * fix(search): avoid matching html entity * Use | operator to concatenate keywords Idea from https://github.com/CaiJimmy/hugo-theme-stack/pull/436 * Add missing `matchCount` * Limit preview length * Don't add ellipsis to title * add comment to `processMatches` * Initialize DOMParser only once * Remove marker function * Deal with blank search * Use const keyword for constant arrays
2021-08-25refactor(article): better support for svg and external images (#326)Jimmy Cai
2021-08-08feat(article): copy button for highlight block (#295)Jimmy Cai
This button only shows on highlighted code blocks, because it uses the wrapper div.highlight
2021-07-06chore: add toggleEl type (#256)WingLim
2021-06-20feat: change the page vertical scrollbar styles (#227)k
* fix: take out [data-scheme="dark"] from :root Taking out the [data-scheme="dark"] from :root allows us to fix the precedence of CSS when the [data-scheme="dark"] is placed in the <html> tag. This is needed in order to make the dark styles accesible from the <html> elment, this will allow us to change the vertical scrollbar styles following the dark and light schemes. * change document.body.dataset.scheme to document.documentElement.dataset.scheme When the dark mode is on or when the light mode is on, the [data-scheme="light"] or [data-scheme="dark"], respectively, will be placed in the <html> tag. Allowing us to access the dark and light color schemes from the <html> to change the vertical scrollbar styles according to the current color scheme. * feat: change the page vertical scrollbar styles This change will make the vertical scrollbar styles to follow the dark and light color scheme modes. Also, this change will make the vertical scrollbar to look consistent in both, Chromium and Firefox. * make the scrollbar-track background-color transparent The body has this transition: 'transition: background-color 0.3s ease 0s'. Making the scrollbar-track background-color transparent allow us to appreciate that transition in the scrollbar-track when switching the background-color. * Move [data-scheme=dark] back to :root block * fix(comment/waline): detect dark mode from html tag * feat: apply custom scrollbar style to all elements Co-authored-by: Jimmy Cai <jimmehcai@gmail.com>
2021-01-04fix(colorScheme): dispatch onColorSchemeChange at page load (#118)Jimmy Cai
2020-12-23feat(darkmode): dark mode toggle (#82)Jimmy Cai
* 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-22refactor(article): remove color tag & add custom category color (#75)Jimmy Cai
closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/71
2020-12-22 refactor(gallery): rewrite gallery (#79)Jimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/70
2020-12-22refactor(ts): import script using new Hugo Module logic (#77)Jimmy Cai
Allows user to overwrite a specific script. Note: The required version of Hugo might bump up.
2020-11-06feat(search): i18n supportJimmy Cai
2020-11-06refactor(search): create Search classJimmy Cai
2020-11-06style: remove empty line in main.tsJimmy Cai
2020-11-06refactor: create createElement.tsJimmy Cai
2020-10-04Merge branch 'master' into template-searchJimmy Cai
2020-10-04feat(gallery): load PhotoSwipe lib from JSDelivrJimmy Cai
2020-10-04feat(search): return results at typingJimmy Cai
2020-09-26fix(search): HTML escape issueJimmy Cai
2020-09-26feat: add search templateJimmy Cai
2020-09-23refactor(scss): remove alert style and scriptJimmy Cai
It is not used in this theme
2020-09-09refactor: add copyright info in CSS and JSJimmy Cai
2020-09-03feat(style): remove timeago.js, and improve article-time styleJimmy Cai
2020-08-29refactor(ts/color): improve code style and change name of some variables for ↵Jimmy Cai
more clarity
2020-08-28feat: avoid regenerate color scheme when image URL is changedJimmy Cai
Use MD5 as key to identify images, and .Slug as id
2020-08-22:tada: Initial commitJimmy Cai