Skip to content

Commit 544cc57

Browse files
committed
Update fixit-bundle config
1 parent eae4460 commit 544cc57

12 files changed

Lines changed: 99 additions & 80 deletions

File tree

.github/workflows/update-theme.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@ jobs:
2828
git submodule update --remote --merge
2929
3030
- uses: actions/setup-node@v6
31-
- name: Fetch and split theme configuration
32-
run: |
33-
npx fixit-cli split https://raw.githubusercontent.com/hugo-fixit/FixIt/refs/heads/main/hugo.toml
34-
rm -f config/_default/mediaTypes.toml
35-
rm -f config/_default/outputFormats.toml
31+
32+
- name: Generate hugo-fixit component list
33+
id: action-component-list
34+
uses: hugo-fixit/action-component-list@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
comment_tag_name: HUGO_FIXIT_COMPONENTS
39+
readme_path: 'README.md'
40+
exclude_repos: 'fixit-bundle'
41+
template: "- [{$repo.name}]({$repo.html_url})\\\n {$repo.description}"
3642

3743
- name: Commit changes
3844
uses: stefanzweifel/git-auto-commit-action@v7

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
# hugo-fixit-gitmodule
1+
# hugo-fixit-bundle-gitmodule
2+
3+
<details>
4+
<summary>FixIt-bundle</summary>
5+
- [FixIt](https://github.com/hugo-fixit/FixIt)
6+
🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
7+
<!-- HUGO_FIXIT_COMPONENTS:START -->
8+
<!-- HUGO_FIXIT_COMPONENTS:END -->
9+
</details>

config/_default/hugo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# -------------------------------------------------------------------------------------
55

66
# website title
7-
title = "Hugo-FixIt"
7+
title = "Hugo FixIt-bundle"
88
# Hostname (and path) to the root
9-
baseURL = "https://example.org/"
9+
baseURL = "/hugo-fixit-bundle-gitmodule"
1010
# theme list
1111
# theme = ["FixIt"] # enable in your site config file
1212
# determines default content language ["en", "zh-cn", "fr", "pl", ...]
@@ -16,7 +16,7 @@ languageCode = "en"
1616
# language name ["English", "简体中文", "Français", "Polski", ...]
1717
languageName = "English"
1818
# whether to include Chinese/Japanese/Korean
19-
hasCJKLanguage = false
19+
hasCJKLanguage = true
2020
# copyright description used only for seo schema
2121
copyright = ""
2222
# whether to use robots.txt

config/_default/params.toml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ disableThemeInject = false
4747

4848
# Author Configuration
4949
[author]
50-
name = "Attajak Janrak"
51-
email = "https://github.com/attajak"
52-
link = "https://github.com/attajak"
50+
name = ""
51+
email = ""
52+
link = ""
5353
avatar = ""
5454

5555
# FixIt 0.3.0 | NEW public Git repository information only then enableGitInfo is true
@@ -143,7 +143,7 @@ mobileMode = "auto"
143143
# Header title config
144144
[header.title]
145145
# URL of the LOGO
146-
logo = "/images/fixit.min.svg"
146+
logo = ""
147147
# title name
148148
name = ""
149149
# you can add extra information before the name (HTML format is supported), such as icons
@@ -779,15 +779,29 @@ expand_file_tree = false
779779
# Custom partials must be stored in the /layouts/_partials/ directory.
780780
# Depends on open custom blocks https://fixit.lruihao.cn/references/blocks/
781781
[customPartials]
782-
head = []
783-
menuDesktop = []
784-
menuMobile = []
782+
head = [
783+
"inject/component-projects.html",
784+
"inject/fixit-docs-bookmark.html",
785+
"inject/shortcode-rewards.html",
786+
]
787+
menuDesktop = [
788+
"inject/translate-menu-desktop.html",
789+
]
790+
menuMobile = [
791+
"inject/translate-menu-mobile.html",
792+
]
785793
profile = []
786794
aside = []
787795
comment = []
788796
footer = []
789797
widgets = []
790-
assets = []
798+
assets = [
799+
"inject/cmpt-flyfish.html",
800+
"inject/cmpt-mdevtools.html",
801+
"inject/cmpt-translate.html",
802+
"inject/santa-hat.fixit.html",
803+
"inject/shortcode-caniuse.html",
804+
]
791805
postTocBefore = []
792806
postTocAfter = []
793807
postContentBefore = []

config/development/hugo.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

config/development/params.toml

Lines changed: 0 additions & 26 deletions
This file was deleted.

config/production/hugo.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

config/production/params.toml

Lines changed: 0 additions & 26 deletions
This file was deleted.

content/projects/_content.gotmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{- partial "adapters/projects.html" . -}}

content/projects/_index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: My Projects
3+
titleIcon: fa-solid fa-laptop-code
4+
subtitle: <https://github.com/Lruihao>
5+
sectionSlot: Some text to display in the section slot which is above the related articles list.
6+
hiddenAdapters: false
7+
layout: projects
8+
---

0 commit comments

Comments
 (0)