Add replace symbol and top bar label #42
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
English
I add a key
has-menuandtime_format. If you need insert a time when this website builds, you can use tag{#buildtime}.You must set
"has_symbol": truebefore use it.Like this (in
config.json):{ "locale": "en", "navbar": { "items": [ { "label": "Last Build: {#buildtime}", "position": "right", "has_symbol": true } ] } }It will display
Last Build: 2025-03-12 dd:mm:ssat right of top bar.Default value of
time_formatkey is%Y-%m-%d %X, it's for Chinese. If you want to set another format, please set it, for example%a %b %d %H:%M:%S %Y, then it will showWed Mar 12 dd:mm:ss 2025.Now, if a label without
urlon top bar and set itstypetolink, it won't be a<a></a>link button, it will become a text label.If you need more tag like
{#xxxxx}, please tell me.中文
我添加了
has-menu和time_format键,需要插入构建时间时使用{#buildtime}。你必须设置
"has_symbol": true来启用。例如 (在
config.json):{ "locale": "zh", "navbar": { "items": [ { "label": "上次构建:{#buildtime}", "position": "right", "has_symbol": true } ] } }将在标题栏右侧显示
上次构建:2025-03-12 时时:分分:秒秒。time_format的默认值为%Y-%m-%d %X。若要更改请设置此键,如%a %b %d %H:%M:%S %Y,将显示Wed Mar 12 dd:mm:ss 2025。现在标题栏的标签如果没有
url键并且设置type为link,将不会生成<a></a>的超链接按钮,而是普通标签。如果需要更多类似
{#xxxxx}的标签请提出。