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
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-10-29feat(article): make long KaTeX equations scrollable in the x-axis (#706)MartinAramayo
* Make long KaTeX equations scrollable in the x-axis Suggested from: https://katex.org/docs/issues.html, I have tested it adding a long equation and activating a phone user agent. * refactor: move KaTeX style to article.scss
2022-10-02refactor(highlight): extract common parts of styles and keep line number ↵Allen Guan
visible when scrolling (#681) * merge highlight.scss * show line number when scroll
2022-06-11feat(article): GitLab Snippets Shortcode (#627)rmdhnreza
2022-06-11fix(style): toc counter is incorrect when there are `<a>` in heading (#601)cubercsl
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/495, https://github.com/CaiJimmy/hugo-theme-stack/issues/589
2022-06-08fix(article): regression in article copyright link box-shadow (#611)Simon Guest
Somewhere between hugo 0.88.1 and 0.98.0, box-shadow got applied to the article copyright, which is an ugly regression.
2022-06-08feat(shortcodes): add quote shortcode, and example (#414)Simon Guest
* Add quote shortcode, and example * Use trim to improve whitespace * Allow for quote with neither author nor source * Format code and move quote.scss to article.scss This style is only used on the article page, so it makes more sense to have it there. Co-authored-by: Jimmy Cai <github@jimmycai.com>
2022-06-05refactor: rename "Related contents" to "Related content" (#567)Spence Churchill
2022-03-20refactor(article): remove article toolbar styleJimmy Cai
2022-03-04feat: new left sidebar layout (#524)Jimmy Cai
* feat: more compact menu style * add compact option to sidebar * fix mobile menu style
2022-03-04feat: add RTL Support and update demo site to Show Arabic/RTL content (#519)FarisZR
* add LanguageDirection variable * add .direction-rtl and .direction-ltr clases * margin -right > margin-inline-end * keep Codeblocks LTR * switch to logical properties * left -> inset-inline-start * Add Arabic/RTL placeholder text * Add arabic language * remove space * use Html Dir instead of class * Move codeblock code to layout/article.css and fix 4 spaces codeblocks * remove unused clases
2022-03-04fix: article-details gapJimmy Cai
2022-03-04refactor: add flexbox gap to .article-detailsJimmy Cai
2022-03-04refactor: Use flexbox gap (#520)Jimmy Cai
2022-02-27feat: multilingual site switch (#512)Jimmy Cai
* feat: multilingual site switch * fix menu item margin switch to flexbox gap
2022-02-27feat(article): add link to translated content (#511)Jimmy Cai
2022-02-27feat: article page widget support (#488)Jimmy Cai
* feat: article page widget support * refactor: get rid of article toolbar Same 3 column layout for article page and homepage * add missing space
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-01-30fix: disqus dark mode (#478)Jimmy Cai
* fix: disqus dark mode * remove color-scheme add custom chrome scrollbar style (removed in https://github.com/CaiJimmy/hugo-theme-stack/pull/428)
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-20feat(article): add scroll for table (#428)zhixuan
* feat: table can't scroll & delete scrollbar style for Chromium * Undo some line breaks * Add a table with overflow to exampleSite
2021-12-28fix: add missing diff syntax highlight (#445)Jimmy Cai
closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/434
2021-10-23feat: social menu (#401)Jimmy Cai
2021-08-15feat(comments): DisqusJS integration (#307)SSpirits
* add comment provider: DisqusJS * Simplify `if` condition, and format code * Load disqusjs.scss only when it's enabled * Use `let` instead of `var` Co-authored-by: sspirits <admin@lv5.moe> Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-08-15fix(article): change `.article-time` classname to `.article-lastmod` (#306)zhixuan
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-08-08feat(article): add scrollbar to TOC (#293)Jimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/236
2021-08-08fix(article): unordered TOC style (#292)Jimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/283
2021-07-27feat(article): add video shortcode (#280)zhixuan
2021-07-25feat(article): use `markdownify` for licence in article (#273)Simon Guest
* Use markdownify for licence in article So we can use links, e.g. to credits for main photo. * refactor: move .article-copyright style to partials/layout/article Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-07-23feat(article): reading time (#204)Bachrul uluum
* add reading time feature * Revert change in jsconfig.json * feat: add article.readingTime param, and improve style * Revert change in jsconfig.json x2 * Remove reading time in compact layout It doesn't look right to me for now * feat: add i18n support to reading time string * Hide footer.article-time when there's not content Co-authored-by: Jimmy Cai <github@jimmycai.com>
2021-07-09fix(menu): remove horizontal menu margin on mobileJimmy Cai
2021-06-25fix(article): add `white-space: nowrap` to back button text (#245)zhixuan
2021-06-21feat: Table of Contents (#232)Jimmy Cai
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-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-06-20refactor: rewrite grid system & style changes (#231)Jimmy Cai
* 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-19fix: set the scrollbar-track background to transparent (#228)k
The body has this transition: 'transition: background-color 0.3s ease 0s'. Setting the scrollbar-track's background-color of the horizontal scrollbar of the Archives page to transparent will make us to appreciate that transition when switching the background-color.
2021-06-12feat: change horizontal scrollbar styles (#211)k
* feat: change horizontal scrollbar styles Change the horizontal scrollbar styles in Archives page following the dark and light themes styles. This horizontal scrollbar is at the top of the Archives page. When I visit this page, the scrollbar stole my attention. Unfortunately, it's the client (our browser) who decides its styles; this change is introduced to avoid that situation. Co-authored-by: Miguel Angel <man98@me.com> * remove scrollbar height and border-radius In order to match the theme presentation (https://i.imgur.com/cCiHOGS.jpg), the previous defined `height: 7px` and `border-radius: 10px` for the scrollbar have been deleted. * fix: set the horizontal scrollbar's height and width to `auto` In Firefox the horizontal scrollbar looks very small. With a width set to `auto`, it looks bigger and better. In Chromium, without an automatic height, the new color changes do not appear. Now the horizontal scrollbar looks consistent in both chromium and firefox. * style: format list.scss Co-authored-by: Miguel Angel <man98@me.com> Co-authored-by: Jimmy Cai <github@jimmycai.com> Co-authored-by: Jimmy Cai <jimmehcai@gmail.com>
2021-03-07refactor(article): add default padding (#166)Jimmy Cai
* refactor(article): add default padding closes https://github.com/CaiJimmy/hugo-theme-stack/issues/165 * fix(article): video iframe margin * fix: remove youtube iframe border
2021-03-06fix(article): also define the padding for div under .article-content (#162)Yihui Xie
Fixes rstudio/blogdown#591: not only `<p>` but also `<div>` could be the direct child of `.article-content`, so we also need the padding for `<div>`. The `div`s are generated by Pandoc, instead of Hugo's Markdown renderer. I think it will be great to support both ways.
2021-02-17fix(scss): remove unnecessary import (#146)Jimmy Cai
2021-02-11fix(article): code background (#139)Jimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/126
2021-02-11fix: remove word-wrap property for Safari (#131)Junwoo Hwang
2020-12-25refactor(article): improve category tag style (#94)Jimmy Cai
2020-12-24fix(article): twitter_simple shortcode text color (#90)Jimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/85
2020-12-24fix(list): add missing object-fit property to compact list (#87)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-22feat(list): add subsection support (#81)Jimmy Cai
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/48
2020-11-06refactor(search): remove .search-result--title styleJimmy Cai