Skip to content

Commit

Permalink
Feat: GitHub 项目支持排序
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Dec 13, 2024
1 parent 6a795ba commit 35d3811
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions data/projects.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
description: "The FixIt theme balances **simplicity** and **extensibility** with extra Hugo theme components for customization."
collections:
- Components
# Order by, optional values: ['default', 'name', 'star', 'fork']
orderby: star
# Order of repos, optional values: ['asc', 'desc']
order: desc
repos:
- hugo-fixit/component-projects
- hugo-fixit/hugo-atom-feed
Expand Down Expand Up @@ -38,5 +42,7 @@
contentAdapters: true
collections:
- TP Components
orderby: star
order: desc
repos:
- fixit-theme/hugo-shortcode-plugins-live2d
6 changes: 6 additions & 0 deletions data/projects.zh-cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
description: "FixIt 主题旨在 **简洁性** 和 **可扩展性** 之间取得平衡。为此,我们开发了一系列额外的 Hugo 主题组件供用户选择。"
collections:
- Components
# Order by, optional values: ['default', 'name', 'star', 'fork']
orderby: star
# Order of repos, optional values: ['asc', 'desc']
order: desc
repos:
- hugo-fixit/component-projects
- hugo-fixit/hugo-atom-feed
Expand Down Expand Up @@ -38,5 +42,7 @@
contentAdapters: true
collections:
- TP Components
orderby: star
order: desc
repos:
- fixit-theme/hugo-shortcode-plugins-live2d
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/hugo-fixit/FixIt v0.3.16 // indirect
github.com/hugo-fixit/cmpt-translate v1.3.0 // indirect
github.com/hugo-fixit/component-projects v1.4.1 // indirect
github.com/hugo-fixit/component-projects v1.5.0 // indirect
github.com/hugo-fixit/shortcode-caniuse v1.2.2 // indirect
github.com/hugo-fixit/shortcode-rewards v1.0.5 // indirect
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/hugo-fixit/FixIt v0.3.16 h1:ZffekHaqk/fJyuiagCdj1IjPczh5Dd57nnPZKSFWT
github.com/hugo-fixit/FixIt v0.3.16/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/cmpt-translate v1.3.0 h1:gvG2BbhWocQzOumyEIWvgJwr39ZrUm0FGh4M7Hk0uD0=
github.com/hugo-fixit/cmpt-translate v1.3.0/go.mod h1:JZ0STubquTlRgyyGhGPlt2s0KJ1gCa99+P8ltTwQRM4=
github.com/hugo-fixit/component-projects v1.4.1 h1:aSDOf9A8Z2AH8jBq/Xgaw5esm6OMFGDTZ/p2FDG9V1E=
github.com/hugo-fixit/component-projects v1.4.1/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c=
github.com/hugo-fixit/component-projects v1.5.0 h1:1FVgdGWm2GeJhJUfY20flelkH2a8+PyRGAFJHD385RU=
github.com/hugo-fixit/component-projects v1.5.0/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c=
github.com/hugo-fixit/shortcode-caniuse v1.2.2 h1:cuJVdJ1A0IgJnMQjifCDeRSRxIY0plTgs+wthCbrIls=
github.com/hugo-fixit/shortcode-caniuse v1.2.2/go.mod h1:RoPLFt+7uLui5rjvkC/qFGeo4nly5AzzwIID9SoDKNc=
github.com/hugo-fixit/shortcode-rewards v1.0.5 h1:Fudm/FoKt/K5rhTvOpHyvniAQFOAoQ1V/Z33TpReGkA=
Expand Down

0 comments on commit 35d3811

Please sign in to comment.