This commit is contained in:
parent
f237551193
commit
0321812a29
57 changed files with 25676 additions and 4089 deletions
|
@ -1,4 +1,4 @@
|
|||
baseURL = "https://example.com"
|
||||
baseURL = "https://codeit.suntprogramator.dev"
|
||||
# [en, zh-cn, fr, pl, ...] determines default content language
|
||||
defaultContentLanguage = "en"
|
||||
# theme
|
||||
|
@ -16,8 +16,8 @@ enableGitInfo = true
|
|||
# whether to use emoji code
|
||||
enableEmoji = true
|
||||
|
||||
# Ignore get JSON errors.
|
||||
ignoreErrors = ["error-remote-getjson"]
|
||||
# Ignore build errors.
|
||||
ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
|
@ -138,9 +138,12 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
@ -218,6 +221,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true
|
||||
Orcid = ""
|
||||
[languages.en.params.social.Mastodon]
|
||||
id = "@xxxx"
|
||||
prefix = "https://mastodon.technology/"
|
||||
|
@ -338,6 +342,8 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
gravatarEmail = ""
|
||||
# 主页显示头像的 URL
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# 主页显示的网站标题 (支持 HTML 格式)
|
||||
title = ""
|
||||
# 主页显示的网站副标题
|
||||
|
@ -419,6 +425,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Bilibili = "xxxx"
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true
|
||||
Orcid = ""
|
||||
|
||||
[languages.fr]
|
||||
weight = 3
|
||||
|
@ -534,6 +541,8 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
|
@ -615,6 +624,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true
|
||||
Orcid = ""
|
||||
|
||||
[params]
|
||||
# CodeIT theme version
|
||||
|
@ -624,7 +634,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
# public git repo url only then enableGitInfo is true
|
||||
gitRepo = "https://github.com/sunt-programator/CodeIT"
|
||||
# which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5")
|
||||
fingerprint = ""
|
||||
fingerprint = "sha256"
|
||||
# date format
|
||||
dateFormat = "2006-01-02"
|
||||
# website images for Open Graph and Twitter Cards
|
||||
|
@ -778,6 +788,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
Telegram = false
|
||||
# Comment config
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -843,6 +854,15 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.app"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.app"
|
||||
|
||||
# Third-party library config
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
@ -902,7 +922,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
id = ""
|
||||
# server url for your tracker if you're self hosting
|
||||
server = ""
|
||||
# Plausible Analytics
|
||||
# {{< version 0.1.0 >}} Plausible Analytics
|
||||
[params.analytics.plausible]
|
||||
domain = ""
|
||||
|
||||
|
@ -961,7 +981,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
|
||||
# Author config
|
||||
[author]
|
||||
name = "xxxx"
|
||||
name = "CodeIT"
|
||||
email = ""
|
||||
link = ""
|
||||
|
||||
|
|
|
@ -312,9 +312,12 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
subtitle = "This is My New Hugo Site"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
@ -396,7 +399,9 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Matrix = ""
|
||||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true #
|
||||
RSS = true
|
||||
# {{< version 0.1.2 >}} Open Researcher and Contributor ID
|
||||
Orcid = ""
|
||||
|
||||
# Page config
|
||||
[params.page]
|
||||
|
@ -491,6 +496,8 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
# {{< version 0.1.2 >}}
|
||||
Telegram = false
|
||||
# Comment config
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -556,6 +563,17 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
# {{< version 0.2.0 >}} {{< link "https://waline.js.org/en/" "Waline" >}} comment config
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.com"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
# {{< version 0.2.0 >}} {{< link "https://twikoo.js.org" "Twikoo" >}} comment config
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.com"
|
||||
|
||||
# Third-party library config
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
|
|
@ -317,9 +317,12 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
subtitle = "This is My New Hugo Site"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
@ -401,7 +404,9 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Matrix = ""
|
||||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true #
|
||||
RSS = true
|
||||
# {{< version 0.1.2 >}} Open Researcher and Contributor ID
|
||||
Orcid = ""
|
||||
|
||||
# Page config
|
||||
[params.page]
|
||||
|
@ -496,6 +501,8 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
# {{< version 0.1.2 >}}
|
||||
Telegram = false
|
||||
# Comment config
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -561,6 +568,16 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
# {{< version 0.2.0 >}} {{< link "https://waline.js.org/en/" "Waline" >}} comment config
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.com"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
# {{< version 0.2.0 >}} {{< link "https://twikoo.js.org" "Twikoo" >}} comment config
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.com"
|
||||
# Third-party library config
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
|
|
@ -319,6 +319,7 @@ hugo
|
|||
title = ""
|
||||
# 主页显示的网站副标题
|
||||
subtitle = "这是我的全新 Hugo 网站"
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
# 是否为副标题显示打字机动画
|
||||
typeit = true
|
||||
# 是否显示社交账号
|
||||
|
@ -399,7 +400,9 @@ hugo
|
|||
Matrix = ""
|
||||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true #
|
||||
RSS = true
|
||||
# {{< version 0.1.2 >}} Open Researcher and Contributor ID
|
||||
Orcid = ""
|
||||
|
||||
# 文章页面配置
|
||||
[params.page]
|
||||
|
@ -494,6 +497,8 @@ hugo
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
# {{< version 0.1.2 >}}
|
||||
Telegram = false
|
||||
# 评论系统设置
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -559,6 +564,17 @@ hugo
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
# {{< version 0.2.0 >}} {{< link "https://waline.js.org/" "Waline" >}} 评论系统设置
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.com"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
# {{< version 0.2.0 >}} {{< link "https://twikoo.js.org" "Twikoo" >}} 评论系统设置
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.com"
|
||||
|
||||
# 第三方库配置
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
|
|
@ -959,6 +959,10 @@ The `mapbox` shortcode has the following named parameters to use Mapbox GL JS:
|
|||
|
||||
Height of the map, default value is `20rem`.
|
||||
|
||||
- **properties** _[optional]_
|
||||
|
||||
GeoJSON sources and the layers of the map.
|
||||
|
||||
Example simple `mapbox` input:
|
||||
|
||||
```markdown
|
||||
|
@ -983,6 +987,16 @@ The rendered output looks like this:
|
|||
|
||||
{{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/navigation-preview-day-v4?optimize=true" "mapbox://styles/mapbox/navigation-preview-night-v4?optimize=true" >}}
|
||||
|
||||
Example `mapbox` input with the GetJSON data:
|
||||
|
||||
```markdown
|
||||
{{</* mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" */>}}
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
{{< mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" >}}
|
||||
|
||||
## 8 music
|
||||
|
||||
The `music` shortcode embeds a responsive music player based on [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS).
|
||||
|
|
|
@ -964,6 +964,10 @@ The `mapbox` shortcode has the following named parameters to use Mapbox GL JS:
|
|||
|
||||
Height of the map, default value is `20rem`.
|
||||
|
||||
- **properties** _[optional]_
|
||||
|
||||
GeoJSON sources and the layers of the map.
|
||||
|
||||
Example simple `mapbox` input:
|
||||
|
||||
```markdown
|
||||
|
@ -988,6 +992,16 @@ The rendered output looks like this:
|
|||
|
||||
{{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/navigation-preview-day-v4?optimize=true" "mapbox://styles/mapbox/navigation-preview-night-v4?optimize=true" >}}
|
||||
|
||||
Example `mapbox` input with the GetJSON data:
|
||||
|
||||
```markdown
|
||||
{{</* mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" */>}}
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
{{< mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" >}}
|
||||
|
||||
## 8 music
|
||||
|
||||
The `music` shortcode embeds a responsive music player based on [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS).
|
||||
|
|
|
@ -962,6 +962,10 @@ data = [
|
|||
|
||||
地图的高度, 默认值是 `20rem`.
|
||||
|
||||
- **properties** _[optional]_
|
||||
|
||||
GeoJSON sources and the layers of the map.
|
||||
|
||||
一个简单的 `mapbox` 示例:
|
||||
|
||||
```markdown
|
||||
|
@ -986,6 +990,16 @@ data = [
|
|||
|
||||
{{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/streets-zh-v1?optimize=true" >}}
|
||||
|
||||
Example `mapbox` input with the GetJSON data:
|
||||
|
||||
```markdown
|
||||
{{</* mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" */>}}
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
{{< mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" >}}
|
||||
|
||||
## 8 music
|
||||
|
||||
`music` shortcode 基于 [APlayer](https://github.com/MoePlayer/APlayer) 和 [MetingJS](https://github.com/metowolf/MetingJS) 提供了一个内嵌的响应式音乐播放器.
|
||||
|
|
22
themes/CodeIT/exampleSite/static/features-layers.json
Normal file
22
themes/CodeIT/exampleSite/static/features-layers.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "logo",
|
||||
"properties": {
|
||||
"type": "geojson",
|
||||
"data": "/features.geojson"
|
||||
}
|
||||
}
|
||||
],
|
||||
"layers": [
|
||||
{
|
||||
"id": "logo-layer",
|
||||
"type": "fill",
|
||||
"source": "logo",
|
||||
"paint": {
|
||||
"fill-color": ["coalesce", ["get", "fill"], "#005c7c"],
|
||||
"fill-opacity": 0.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
9212
themes/CodeIT/exampleSite/static/features.geojson
Normal file
9212
themes/CodeIT/exampleSite/static/features.geojson
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue