-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sineio
committed
May 14, 2024
1 parent
299291b
commit 0730ce1
Showing
17 changed files
with
424 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
# Default to bash | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUGO_VERSION: 0.125.4 | ||
steps: | ||
- name: Install Hugo CLI | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | ||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: Install Dart Sass | ||
run: sudo snap install dart-sass | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v4 | ||
- name: Install Node.js dependencies | ||
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" | ||
- name: Build with Hugo | ||
env: | ||
# For maximum backward compatibility with Hugo modules | ||
HUGO_ENVIRONMENT: production | ||
HUGO_ENV: production | ||
TZ: America/Los_Angeles | ||
run: | | ||
hugo \ | ||
--gc \ | ||
--minify \ | ||
--baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# sine-io.github.io | ||
# sine-io.github.io | ||
|
||
欢迎来到我的博客,我非常高兴你停留在这里! | ||
|
||
工作中,我用到了`COSBench`和`Vdbench`这两款工具,分别测试对象存储,文件存储的性能。通过研究官方手册和源码,结合使用心得,我编写了 [简明COSBench教程](https://sine-io.github.io/byte-of-cosbench) 和 [简明Vdbench教程](https://sine-io.github.io/byte-of-vdbench) ,希望可以给其他使用者一些参考,少走一些弯路。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -- Site Configuration -- | ||
# https://jpanther.github.io/congo/docs/getting-started/ | ||
|
||
# 网站根目录的 URL | ||
# baseURL = "https://sine-io.github.io/" | ||
|
||
# 主题组件和内容的默认语言 | ||
defaultContentLanguage = "zh-cn" | ||
|
||
# 启用时,在站点根目录将创建一个 robots.txt 文件,允许搜索引擎爬取整个站点。如果你更喜欢提供自己制作的 robots.txt,请设置为 false 并将文件放置在 static 目录中。 | ||
enableRobotsTXT = true | ||
|
||
# 在文章列表中每页列出的文章数 | ||
paginate = 10 | ||
|
||
# 在front matter中未提供摘要时,用于生成文章摘要的字数。值为 0 将使用第一句。当摘要被隐藏时,此值无效。 | ||
summaryLength = 0 | ||
|
||
# 生成站点的输出格式。Congo 需要 HTML、RSS 和 JSON 才能使所有主题组件正常工作。 | ||
[outputs] | ||
home = ["HTML", "RSS", "JSON"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# 此文件的 Hugo 语言代码。它可以是顶级语言(即 en)或子变体(即 en-AU),并应与文件名中的语言代码匹配。 | ||
languageCode = "zh-cn" | ||
|
||
# 语言的名称 | ||
languageName = "简体中文" | ||
|
||
# 这是否是 RTL 语言。设置为 "rtl" 以从右到左重新排列内容。Congo 完全支持同时使用 RTL 和 LTR 语言,并会动态调整到两者。 | ||
languageDirection = "ltr" | ||
|
||
# 构建多语言站点时语言的顺序的权重 | ||
weight = 1 | ||
|
||
# 网站的标题。这将显示在站点标题和页脚中。 | ||
title = "SineIO" | ||
|
||
# 包含要显示在站点页脚中的版权消息的 Markdown 字符串。如果未提供,则 Congo 将使用站点 title 自动生成版权字符串。 | ||
# copyright = "© 2024 SineIO" | ||
|
||
[params] | ||
# 此语言中日期的格式。有关可接受格式, | ||
dateFormat = "2006年1月2日" | ||
|
||
# 显示在最新文章列表中的部分。如果未提供,则使用文章数最多的部分。 | ||
mainSections = ["posts"] | ||
|
||
# 网站描述。这将用于站点元数据。 | ||
description = "重要的东西用眼睛是看不见的,只有用心才能看得清楚。" | ||
|
||
[params.author] | ||
# 作者的姓名。这将显示在文章页脚和使用配置文件布局时在主页上。 | ||
name = "SineCelia" | ||
# 作者的图像文件路径。图像应为1:1的宽高比,并放置在站点的 assets/ 文件夹中。 | ||
image = "img/author.jpg" | ||
# 包含作者头衔的 Markdown 字符串。它将显示在主页上作者姓名下方。 | ||
headline = "天行健,君子以自强不息。" | ||
# 包含作者简介的 Markdown 字符串。它将显示在文章页脚中。 | ||
bio = "工具拆解,使用教程,深入浅出,硬核,真男人!" | ||
|
||
# 要显示在作者详细信息旁边的链接。配置文件包含可以取消注释以启用的示例链接。显示链接的顺序由它们在数组中出现的顺序确定。可以通过在 assets/icons/ 中提供相应的 SVG 图标资产来添加自定义链接。 | ||
links = [ | ||
# { email = "[email protected]" }, | ||
# { link = "https://link-to-some-website.com/" }, | ||
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" }, | ||
# { apple = "https://www.apple.com" }, | ||
# { blogger = "https://username.blogspot.com/" }, | ||
# { codepen = "https://codepen.io/username" }, | ||
# { dev = "https://dev.to/username" }, | ||
# { discord = "https://discord.gg/invitecode" }, | ||
# { dribbble = "https://dribbble.com/username" }, | ||
# { facebook = "https://facebook.com/username" }, | ||
# { flickr = "https://www.flickr.com/photos/username/" }, | ||
# { foursquare = "https://foursquare.com/username" }, | ||
{ github = "https://github.com/sine-io" }, | ||
# { gitlab = "https://gitlab.com/username" }, | ||
# { google = "https://www.google.com/" }, | ||
# { google-scholar = "https://scholar.google.com/citations?user=user-id" }, | ||
# { hashnode = "https://username.hashnode.dev" }, | ||
# { instagram = "https://instagram.com/username" }, | ||
# { keybase = "https://keybase.io/username" }, | ||
# { kickstarter = "https://www.kickstarter.com/profile/username" }, | ||
# { lastfm = "https://lastfm.com/user/username" }, | ||
# { linkedin = "https://linkedin.com/in/username" }, | ||
# { mastodon = "https://mastodon.instance/@username" }, | ||
# { medium = "https://medium.com/username" }, | ||
# { mendeley = "https://www.mendeley.com/" }, | ||
# { microsoft = "https://www.microsoft.com/" }, | ||
# { orcid = "https://orcid.org/userid" }, | ||
# { patreon = "https://www.patreon.com/username" }, | ||
# { pinterest = "https://pinterest.com/username" }, | ||
# { reddit = "https://reddit.com/user/username" }, | ||
# { researchgate = "https://www.researchgate.net/profile/username" }, | ||
# { slack = "https://workspace.url/team/userid" }, | ||
# { snapchat = "https://snapchat.com/add/username" }, | ||
# { soundcloud = "https://soundcloud.com/username" }, | ||
# { stack-overflow = "https://stackoverflow.com/users/userid/username" }, | ||
# { steam = "https://steamcommunity.com/profiles/userid" }, | ||
# { telegram = "https://t.me/username" }, | ||
# { tiktok = "https://tiktok.com/@username" }, | ||
# { tumblr = "https://username.tumblr.com" }, | ||
# { twitch = "https://twitch.tv/username" }, | ||
# { whatsapp = "https://wa.me/phone-number" }, | ||
{ x-twitter = "https://twitter.com/SineCelia" }, | ||
# { youtube = "https://youtube.com/username" }, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -- Markup -- | ||
# These settings are required for the theme to function. | ||
|
||
[goldmark] | ||
[goldmark.renderer] | ||
unsafe = true | ||
|
||
[highlight] | ||
noClasses = false | ||
|
||
[tableOfContents] | ||
startLevel = 2 | ||
endLevel = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Congo有两个菜单,可以根据您站点的内容和布局进行自定义。main菜单显示在站点页眉中,而footer菜单显示在页面底部,正好在版权声明上方。 | ||
# 这两个菜单都在menus.en.toml文件中配置。与语言配置文件类似,如果您希望使用其他语言,请将此文件重命名并用所需的语言代码替换en。菜单链接将按weight从低到高排序,然后按name字母顺序排序。 | ||
|
||
[[main]] | ||
name = "简明COSBench教程" | ||
url = 'https://sine-io.github.io/byte-of-cosbench/' | ||
weight = 1 | ||
identifier = "byte-of-cosbench" | ||
parent = "" | ||
[main.params] | ||
rel = 'external' | ||
# 配置这个,会新窗口访问 | ||
target = "_blank" | ||
# 选择icon | ||
# icon = "github" | ||
# 是否显示名字 | ||
# showName = true | ||
|
||
[[main]] | ||
name = "简明Vdbench教程" | ||
url = 'https://sine-io.github.io/byte-of-vdbench/' | ||
weight = 1 | ||
identifier = "byte-of-vdbench" | ||
parent = "" | ||
[main.params] | ||
rel = 'external' | ||
target = "_blank" | ||
|
||
# [[main]] | ||
# name = "标签" | ||
# pageRef = "tags" | ||
# weight = 30 | ||
|
||
[[main]] | ||
identifier = "搜索" | ||
weight = 99 | ||
[main.params] | ||
action = "search" | ||
|
||
[[main]] | ||
identifier = "语言" | ||
weight = 100 | ||
[main.params] | ||
action = "locale" | ||
|
||
# -- Footer Menu -- | ||
# The footer menu is displayed at the bottom of the page, just before | ||
# the copyright notice. Configure as per the main menu above. | ||
|
||
# [[footer]] | ||
# name = "Tags" | ||
# pageRef = "tags" | ||
# weight = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[[imports]] | ||
path = "github.com/jpanther/congo/v2" |
Oops, something went wrong.