Xin
d8351aa432
feat: allow enable/disable code block copy button ( #331 )
...
* refactor: move codeblock to a partial component
* feat: add flags for code block copy button
* allow disable code copy button completely
* allow make the copy button always visible
* chore: run build:css
2024-03-28 07:32:51 +00:00
Xin
741a640b1a
fix: update dead link for Porter
2024-03-20 10:38:35 +00:00
Xin
935ff7f719
feat: add title utility to get page or section title ( #325 )
...
* feat: add title utility to get page or section title
* with graceful fallback to using the directory or filename
* chore: update link titles in breadcrumb, pager, and sidebar
2024-03-19 22:16:10 +00:00
Xin
29e70c8b21
fix: code copy button is invisible when hover ( #323 )
...
* fix: code copy button is invisible when hover
* chore: update hugo_stats.json file
2024-03-18 18:37:47 +00:00
Xin
07b67ff112
fix: module imports should be array in hugo config
2024-03-01 23:40:55 +00:00
Xin
5c7303bee7
feat: add hx- prefix to Hextra Tailwind CSS classes ( #300 )
...
* feat: add prefix to tailwind css classes
* fix: remove unnecessary prefixes
* fix: add missing prefix in other places
* chore: regenerate hugo_stats.json
* chore: run `npm run build:css`
* chore: add `hx-` prefix to _index.fa.md
* fix: lang switcher display issue
* fix: add `hx-` prefix to showcase/index.fa.md
* fix: lang switch param mistake
2024-02-20 22:59:31 +00:00
Xin
0e312d3476
docs: update GitHub Action deploy template
2024-02-20 22:55:54 +00:00
Xin
98546e66b9
chore: add slack icon
...
from https://icon-sets.iconify.design/simple-icons/slack/
2024-02-20 22:38:56 +00:00
Xin
10907cdc25
fix: resolve padding issue for code blocks with filenames but without lang highlight ( #297 )
...
* fix: resolve padding issue for code blocks with filenames but without lang highlighting
* chore: run `npm run build:css`
* chore: update `node_modules/caniuse-lite`
2024-02-17 23:06:46 +00:00
Xin
716af59393
fix: clear top margin for nested list recursively ( #280 )
...
* fix: clear top margin for nested list children
* chore: run `npm run build:css`
2024-02-06 22:04:37 +00:00
Xin
7191e25958
fix: set top margin to zero for nested list ( #276 )
2024-02-03 09:09:16 -05:00
Xin
c630805511
fix: details toggle display issue ( #273 )
...
when more than two lines of summary are provided
2024-02-02 23:37:54 +00:00
Xin
ff8f2537ca
fix: accurate editURL resolution in translated sites ( #264 )
2024-01-21 10:33:49 +00:00
Xin
d58a8b5469
feat: exclude page from sidebar ( #209 )
...
* feat: allow excluding page from sidebar
* chore: tidy up
* docs: add instruction for excluding a page from sidebar
* feat: allow hiding sidebar for pages
* chore: add comment
2023-11-17 23:00:05 +00:00
Xin
64ac97b2d6
feat: allow overriding poweredBy in footer ( #207 )
2023-11-17 02:03:40 +00:00
Xin
27c976bcc1
feat: display author avatar images in blog post ( #204 )
...
* feat: support displaying author images in blog post
* chore: fix typo
* chore: run build:css
* refactor: support both plain author list
* chore: run build:css
* chore: add support for local avatar images
* chore: update css classes
2023-11-17 01:49:18 +00:00
Xin
d675d3bc7b
feat: support separator in sidebar ( #199 )
...
* feat: support adding pages as separator for sidebar
* Update sidebar.html
2023-11-12 14:03:30 +00:00
Xin
c2d7ba8ce5
fix: code copy issue for code blocks in shortcode ( #201 )
...
* chore: add translation key for copy code button title
* chore: remove id from code block elements
* fix: copy the correct code target in code-copy.js
* chore: update details.md
* chore: remove console.log :)
* chore: remove `$` in shell commands
* chore: update docs
2023-11-12 01:14:39 +00:00
Xin
8801a04ebe
feat: add include shortcode ( #198 )
2023-11-11 00:10:32 +00:00
Xin
21b0acdec5
chore: improve cards compatibility with steps ( #197 )
2023-11-10 23:45:42 +00:00
Xin
c0a1bc32dd
fix: ensure relref in search index is properly rendered ( #196 )
...
* fix: ensure relref in search index is properly rendered
* chore: remove empty whitespace
2023-11-10 22:21:54 +00:00
Xin
4ea18168e3
fix: correctly set editURL in front-matter ( #195 )
2023-11-10 22:03:08 +00:00
Xin
23c84e124c
fix: navbar url for multi-lang site ( #193 )
...
* fix: image URL in feature card
* fix: use relLangURL of pageRef for navbar entries
2023-11-10 17:45:44 +00:00
Xin
678f0b86ee
fix: htmlUnescape toc title ( #190 )
2023-11-05 10:26:00 +00:00
Xin
363c8c91ee
fix: scroll bug due to incorrect toggle state ( #186 )
...
* fix: add mobile menu overlay to toggle body scroll
* chore: update styles
2023-11-03 20:39:36 +00:00
Xin
088e9f7821
fix(style): add backdrop to code copy button ( #185 )
...
* fix(style): add backdrop to code copy button
* chore: run build:css
2023-11-02 22:43:50 +00:00
Xin
10ba5533e5
i18n: refactor translations for docs site ( #181 )
...
* i18n: move some translations under example site
* chore: update i18n/ja.yaml
* i18n: update zh-tw.yaml
* i18n: update fr.yaml
* i18n: update pt.yaml
* i18n: update ko.yaml
* i18n: update nb.yaml and nn.yaml
* i18n: update sw.yaml
* i18n: update vi.yaml
* i18n: update sw.yaml
* docs: clean up ja site as it's incomplete
2023-11-01 20:26:54 +00:00
Xin
433beed666
fix: plainify Toc headings ( #178 )
2023-10-31 23:14:42 +00:00
Xin
9d68f7c71a
docs: minor update deploy site doc
2023-10-31 09:14:46 +00:00
Xin
e3f6069968
chore: support services.googleAnalytics.ID ( #173 )
...
* chore: support `services.googleAnalytics.ID`
and deprecate `site.googleAnalytics`
* chore: remove warning
2023-10-30 23:48:48 +00:00
Xin
50f1b084ae
chore(icons): add linkedin
...
[skip ci]
2023-10-29 17:55:27 +00:00
Xin
0d629b67b9
docs: add instructions for configuring layouts ( #167 )
2023-10-29 17:52:34 +00:00
Xin
7c902b4eb9
chore(style): enhance not-prose elements styling ( #163 )
...
* chore(css): improve not-prose tags styling
* fix: typo
* chore(style): improve appearance in prose
* feat: support icon in callout shortcode
* chore: add RSS badge to blog list page
* chore: run build:css
* chore: run build:css
* chore: remove unused CSS
* chore: add footer.enable explicitly to config
* chore: use `where` pseudo class for more prose elements
* chore: run build:css
* chore: remove blank space
* chore: rebuild css
* chore: update figure css
2023-10-29 15:19:31 +00:00
Xin
9744b4d727
feat: option to show tags for blog list ( #161 )
...
* feat: option to show tags for blog list
* chore: update hugo_stats.json
2023-10-28 15:56:58 +01:00
Xin
34aecec9d4
docs: fix some spelling mistakes ( #159 )
...
* chore: fix README.md
* docs: minor fix the docs site
2023-10-27 23:15:06 +01:00
Xin
15ea31c389
docs: add Deploy Site page ( #158 )
...
* docs: add Deploy Site page
* docs: update deploy-site.md
2023-10-27 23:09:38 +01:00
Xin
141e0d8f8c
fix(style): remove sidebar item extra padding and gap ( #155 )
...
* fix: remove sidebar item extra padding and gap
* chore: run build:css
2023-10-27 14:57:48 +01:00
Xin
2d2e8aec4c
fix(style): remove padding for highlighted code ( #157 )
...
* fix(style): remove padding for highlighted lines
* chore: run build:css
2023-10-27 14:56:39 +01:00
Xin
b5ab4ecdcb
chore(i18n): support translation for theme toggle ( #152 )
2023-10-26 04:02:47 -04:00
Xin
cf7b669278
docs: add zh-cn translation for home page ( #151 )
...
* i8n: add noResultsFound and clean up zh-cn.yaml
* i8n: add translation for home page
* i18n: translate showcase for zh-cn
2023-10-25 23:32:33 +01:00
Xin
53b688f014
chore(devcontainer): bump hugo to version v0.119.0
...
[skip ci]
2023-10-25 21:55:40 +01:00
Xin
e135f5a6b4
docs: improve icon shortcode documentation ( #149 )
2023-10-25 20:50:15 +01:00
Xin
97e6945c04
feat: add option to set default theme and hide toggle button ( #146 )
...
resolves #135
Light / dark theme can be configured via:
```yaml
theme:
# light | dark | system
default: system
displayToggle: true
```
2023-10-21 22:18:04 +01:00
Xin
93cb788e52
feat(search): support different search index types ( #145 )
...
* add support for different search index types: `content | summary | heading | title`
* resolves #139
2023-10-21 21:00:39 +01:00
Xin
6cd4c55613
fix: callout styling issue with markdown content ( #141 )
2023-10-13 00:09:57 +01:00
Xin
cb09b7ce1e
fix: skip scroll event if no backToTop element ( #138 )
2023-10-12 23:25:34 +01:00
Xin
28a20e1e7e
chore: add code copy button icons in js ( #133 )
2023-10-07 20:01:19 +01:00
Xin
8aa6439132
feat: support custom primary saturation ( #131 )
...
* feat: support custom primary saturation
* chore: run npm run build:css
* docs: update instruction for customizing primary color
2023-10-04 20:41:59 +01:00
Xin
55ff819dae
fix: not-prose p tag inconsistent style ( #126 )
...
* fix: not-prose p tag should reset styles
* chore: compile CSS
2023-10-03 09:12:30 +01:00
Xin
924d8508d0
fix: footer enable flag logic issue ( #125 )
2023-10-03 08:51:41 +01:00
Xin
103faa24f3
chore: re-compile CSS
2023-10-01 09:25:02 +00:00
Xin
2df3c563bf
fix: use div for copyright container in footer ( #104 )
2023-09-27 20:40:35 +01:00
Xin
ec02eb34fe
fix: search shortcut based on user platform ( #101 )
...
* fix: search shortcut based on user platform
* chore: make it work with iPad and iPhone as well
2023-09-27 19:47:20 +01:00
Xin
46dea718e6
docs: add giscus comments system ( #96 )
...
* chore: rename comment to comments
* docs: add giscus comments
* docs: update
2023-09-26 23:33:27 +01:00
Xin
adf5a113fc
fix: giscus theme and language display issues ( #95 )
...
* chore: minor update giscus template
* fix: theme toggle should select all
* chore: example configs for giscus
* fix: language code in giscus
2023-09-26 22:12:38 +01:00
Xin
3c4ede96df
feat: add shortcodes to build Hextra home page ( #90 )
...
* feat: add feature grid and card shortcodes
* feat: add markdown content to hextra home
* chore: add button for hextra home
* chore: add heading and subtitle
* chore: finish moving hextra home to shortcodes
* chore: regenerate css
* chore: improve hextra home layout shortcodes
* chore: update css
* chore: decrease button size
2023-09-26 08:15:31 +01:00
Xin
01f7e3a425
docs: add showcase page ( #86 )
...
* docs: add showcase page
* chore: update compiled CSS
* chore: add showcase to navbar
* chore: reorder show case on navbar
* chore: update card image style
* chore: update showcase images
* chore: update showcase card image
2023-09-24 15:30:17 +01:00
Xin
79883dc7cc
fix: process static image url correctly
2023-09-24 11:03:34 +01:00
Xin
b283227046
feat: enhance image resolving ( #82 )
...
* feat: enhance image resolving
* chore: don't process image path that begins with relative link
* docs: add instruction for adding images
* chore: update docs
* chore: add filenames to images docs
2023-09-23 23:54:17 +01:00
Xin
0e9cf1a519
fix: add integrity attribute to styles css preload tag ( #83 )
2023-09-23 22:42:05 +01:00
Xin
fdc30c6cd5
fix: card image not displaying correctly ( #77 )
...
* fix: use relative URL for card images
* chore: update card image processing
* chore: add width and height for process image
* docs: update cards docs
2023-09-23 19:25:51 +01:00
Xin
3632294706
chore: update list page RSS template ( #75 )
...
* chore: update RSS feed template
* chore: use html instead of safeHTML
2023-09-22 23:41:53 +01:00
Xin
4e63aa4f14
feat: add google analytics support ( #70 )
...
* feat: support google analytics
* docs: add instruction for setting up ga
2023-09-21 08:03:35 +01:00
Xin
b51bfa3177
feat: support wide and full page modes ( #69 )
...
* feat: add page width config and partial
* feat: use page-width partial in layouts
* chore: revert changes in navbar and footer
* feat: customize footer width from site config
* chore: update styles
* docs: add page width
* feat: allow overriding navbar width
* fix: navbar width variable
* docs: add instruction for navbar and footer
2023-09-20 23:36:00 +01:00
Xin
e9ea9786e9
feat: enhance scrollbar style ( #56 )
...
* feat: enhance scrollbar style
* chore: set `color-scheme` for document element
2023-09-14 00:01:38 +01:00
Xin
a184cfd41e
fix: use relURL only for link starts with slash ( #54 )
2023-09-13 05:40:00 -04:00
Xin
76ac694542
feat: add backdrop blur for nav bar ( #53 )
2023-09-13 10:02:38 +01:00
Xin
f70ba59ca0
fix: use relative url for card link ( #52 )
...
* fix: cards links should not redirect to 404
* docs: update card links
* fix: use relURL for card link
2023-09-13 09:49:01 +01:00
Xin
4a9a2850fc
docs: add instruction for using markdown in tabs ( #47 )
2023-09-13 07:54:44 +01:00
Xin
4553a8eda2
docs: add more instruction for favicon ( #44 )
2023-09-11 17:15:24 -04:00
Xin
237d890f67
ci: use dynamic repo and username for baseURL
2023-09-10 15:20:17 +01:00
Xin
04e131f93a
chore: normalize headings ( #42 )
...
* chore: minor update to card component
* chore: normalize headings of blog and single page
2023-09-10 14:54:30 +01:00
Xin
61e41f247b
chore: add contributing guide
...
[skip ci]
2023-09-10 12:07:04 +01:00
Xin
4381f31085
chore: make index page container wider ( #30 )
...
* chore: enable footer by default
* chore: make index container wider
2023-09-03 16:12:53 +01:00
Xin
171399889d
docs: add instruction to update theme
2023-09-02 16:02:28 +01:00
Xin
3bcdf84ad4
feat: details shortcode ( #28 )
...
* feat: details shortcode
* docs: add details shortcode page
* chore: update shortcodes page
* docs: update
* Revert "chore: update shortcodes page"
This reverts commit c005ad4cb15a868ed7552b628fff025c1c5b0700.
2023-09-02 16:01:34 +01:00
Xin
8e8f7f23c9
chore: increase home heading text line height
2023-09-02 00:10:51 +00:00
Xin
5b71912ab2
feat: support markdown for copyright text ( #25 )
...
* feat: support markdown for copyright text
* docs: add info about supporting markdown in copyright
2023-09-01 22:38:49 +01:00
Xin
8a4e093f12
fix: toc should display headings as is ( #20 )
2023-09-01 00:34:50 +01:00
Xin
ed14cf01c3
chore: update local dev config
...
[skip ci]
2023-08-31 20:49:28 +01:00
Xin
b709452d16
chore(i18n): improve translations of zh-cn ( #14 )
2023-08-30 21:35:04 +01:00
Xin
b96eb01af3
docs: enchance pages navigation
2023-08-28 22:45:29 +01:00
Xin
e1fa9e73d2
chore: replace space with nbsp
2023-08-28 22:32:50 +01:00
Xin
c0d15f89e8
chore: proper dev and prod styles handling
2023-08-28 22:32:07 +01:00
Xin
283c7daaf2
chore: add github actions and netlify badges
...
[skip ci]
2023-08-28 21:47:06 +01:00
Xin
49e1e01c6d
chore: add netlify.toml
2023-08-28 21:33:54 +01:00
Xin
2d62e74e97
fix: missing integrity value in head css ( #6 )
2023-08-28 20:59:06 +01:00
Xin
1a8d881a2e
chore: add screenshots
...
[skip ci]
2023-08-28 00:41:05 +01:00
Xin
dd4c09070a
chore: update theme meta
...
[skip ci]
2023-08-28 00:16:38 +01:00
Xin
6727ef01aa
fix: [html] does not have [lang] attribute
2023-08-27 23:50:51 +01:00
Xin
0a0202657a
fix: urls in site.webmanifest
2023-08-27 23:49:09 +01:00
Xin
cc099724a0
fix: add alt to home page images
2023-08-27 23:45:41 +01:00
Xin
a1f2859944
chore: updated page description partial
2023-08-27 23:44:43 +01:00
Xin
259b050dfb
chore: update README.md
...
[skip ci]
2023-08-27 20:57:39 +01:00
Xin
5cf72e9764
Update README.md
...
[skip ci]
2023-08-27 20:51:07 +01:00
Xin
19c95e9bd8
docs: minor update to the features section
2023-08-27 20:00:07 +01:00
Xin
6a2f0766f8
chore: update README.md
2023-08-27 19:50:09 +01:00
Xin
5186f2988e
fix: site.webmanifest should use relative url
2023-08-27 19:49:51 +01:00
Xin
c8b1d764e0
chore: add more i18n options and update templates
2023-08-27 17:32:44 +01:00
Xin
d9c44bc503
docs: add content to about page
2023-08-27 16:20:25 +01:00