-
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.
Merge pull request #17 from ohmykreee/migrate-theme-v4
Migrate bilberry-hugo-theme to v4
- Loading branch information
Showing
15 changed files
with
95 additions
and
74 deletions.
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
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 |
---|---|---|
|
@@ -18,10 +18,11 @@ jobs: | |
with: | ||
hugo-version: 'latest' | ||
extended: true | ||
|
||
- name: Build | ||
run: hugo --minify | ||
|
||
run: | | ||
hugo --minify | ||
- name: Upload Build Artifact | ||
if: success() | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -30,7 +31,7 @@ jobs: | |
path: public | ||
if-no-files-found: error | ||
|
||
- name: Deploy to Cloudflare Pages | ||
- name: Deploy dev page to Cloudflare Pages | ||
if: success() | ||
uses: cloudflare/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ public | |
rafts | ||
build-res | ||
resources | ||
.hugo_build.lock | ||
.hugo_build.lock | ||
_vendor |
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
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,6 +1,12 @@ | ||
title = "Kreee's Blog" | ||
baseURL = "https://blog.ohmykreee.top" | ||
theme = "bilberry-hugo-theme" | ||
|
||
# Option 1 (recommended): adding the theme as a Hugo module | ||
# theme = "github.com/Lednerb/bilberry-hugo-theme/v4" | ||
|
||
|
||
# Options 2 and 3: cloning/copying the theme files | ||
theme = "bilberry-hugo-theme/v4" | ||
|
||
# Generate the robots.txt file for SEO | ||
enableRobotsTXT = true | ||
|
@@ -9,17 +15,15 @@ enableRobotsTXT = true | |
DefaultContentLanguage = "zh-cn" | ||
|
||
# Enable / Disable Google Analytics statistics for your site | ||
# googleAnalytics = "UA-198973792-1" | ||
# googleAnalytics = "" | ||
|
||
# Enable / Disable comments on the articles via Disqus. | ||
# disqusShortname = "" | ||
|
||
# Enable / Disable open link with a new tab. | ||
[blackfriday] | ||
hrefTargetBlank = true | ||
disqusShortname = "" | ||
|
||
[params] | ||
# Custom CSS / JS modules that will be imported by the template. | ||
enableLightDarkTheme = true | ||
|
||
# Custom CSS/JS modules that will be imported by the template. | ||
# Files are relative to the static/ directory or a URL. | ||
# Files are imported in the order they appear here, after | ||
# theme.css and theme.js, respectively. | ||
|
@@ -29,7 +33,7 @@ DefaultContentLanguage = "zh-cn" | |
# Description and meta data for the search engines | ||
author = "Kreee" | ||
description = "A Kreee's Blog, powered by GitHub Pages, Hugo and Bilberry Premium Theme for Hugo." | ||
keywords = "kreee,blog,personal,responsive,font awesome,pages,posts,highlight.js,syntax highlighting,hugo" | ||
keywords = "kreee,blog,personal,responsive,search,font awesome,pages,posts,syntax highlighting,shortcuts" | ||
|
||
# How many articles should be displayed at once? | ||
paginate = 7 | ||
|
@@ -42,7 +46,7 @@ DefaultContentLanguage = "zh-cn" | |
algolia_appId = "BYCFQKEA4W" | ||
algolia_apiKey = "5b8f1a1d7557fc3b1bc0d99efbaa22ce" | ||
algolia_indexName = "kreee-blog" | ||
# Set this option to false if you want to search within all articles in all languages at once | ||
# Set this option to false if you want to search within all articles in all languages at once | ||
algolia_currentLanguageOnly = false | ||
|
||
# Enable / Disable comments on the articles via commento | ||
|
@@ -62,13 +66,13 @@ DefaultContentLanguage = "zh-cn" | |
giscusLanguage = "zh-CN" | ||
giscusCrossOrigin = "anonymous" | ||
|
||
# Enable / Disable Utterances comments | ||
utterances = false | ||
utterancesJsUrl = "https://utteranc.es/client.js" | ||
utterancesRepository = "ohmykreee/kreee-blog" | ||
utterancesIssueTerm = "og:title" | ||
utterancesLabel = "Comment" | ||
utterancesTheme = "github-light" | ||
# Enable / Disable Utterances comments | ||
utterances = false | ||
utterancesJsUrl = "https://utteranc.es/client.js" | ||
utterancesRepository = "[ENTER REPO HERE]" | ||
utterancesIssueTerm = "pathname" | ||
utterancesLabel = "Comment" | ||
utterancesTheme = "github-light" | ||
utterancesCrossOrigin = "anonymous" | ||
|
||
# Media configuration | ||
|
@@ -82,7 +86,7 @@ DefaultContentLanguage = "zh-cn" | |
subtitle = "Code with love ❤ and paws 🐾!" | ||
|
||
# if you want to use libravatar or gravatar for the header image | ||
# avatarEmail = "[email protected]" | ||
avatarEmail = "" | ||
|
||
# set an path to the image file you want to use | overwrites avatar by email | ||
customImage = "https://avatars.githubusercontent.com/u/76862878" | ||
|
@@ -106,10 +110,10 @@ DefaultContentLanguage = "zh-cn" | |
# Set to true to pin only to the first page, false to all pages | ||
pinOnlyToFirstPage = true | ||
|
||
# enable automatic localization of the article's PublishedDate with momentjs | ||
# enable automatic localization of the article's published date using Moment.js | ||
enableMomentJs = true | ||
|
||
# customize the date format | only works if momentjs is disabled | only works with English month names | ||
# customize the date format | only works if Moment.js is disabled | only works with English month names | ||
# you can customize it with the options you find here: | ||
# https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference | ||
dateFormat = "2006-01-02" | ||
|
@@ -137,22 +141,22 @@ DefaultContentLanguage = "zh-cn" | |
# social media profile urls for the footer links | ||
showSocialMedia = true | ||
|
||
# show an archive link in the footer | ||
showArchive = false | ||
|
||
# archive grouping: "2006" by year, "2006-01" by month | ||
archiveDateGrouping = "2006年01月" | ||
|
||
# define your links with FontAwesome 5 (only free icons are supported) | ||
# all icons https://fontawesome.com/icons?d=gallery&m=free | ||
# brand icons https://fontawesome.com/icons?d=gallery&s=brands&m=free | ||
socialMediaLinks = [ | ||
{ link = "https://github.com/ohmykreee", icon = "fab fa-github", rel = "me" }, | ||
{ link = "https://twitter.com/kre_pow3", icon = "fab fa-twitter", rel = "me" }, | ||
{ link = "https://space.bilibili.com/361507684", icon = "fas fa-video", rel = "me" }, | ||
{ link = "https://www.ohmykreee.top", icon = "fas fa-book", rel = "me" }, | ||
{ link = "https://space.bilibili.com/361507684", icon = "fab fa-bilibili", rel = "me" }, | ||
{ link = "https://www.ohmykreee.top", icon = "fas fa-globe", rel = "me" }, | ||
] | ||
|
||
# show an archive link in the footer | ||
showArchive = false | ||
|
||
# archive grouping: "2006" by year, "2006-01" by month | ||
archiveDateGrouping = "2006-01" | ||
|
||
# credits line configuration | ||
copyrightBy = "by Kreee" | ||
copyrightUseCurrentYear = false # set to true to always display the current year in the copyright | ||
|
@@ -163,36 +167,47 @@ DefaultContentLanguage = "zh-cn" | |
|
||
|
||
# customize your available languages for your multi-lingual site | ||
# or delete the [Languages] blog to use the theme with only one supported language | ||
#[Languages] | ||
# [Languages.en] | ||
# weight = 1 | ||
# [Languages.de] | ||
# weight = 2 | ||
# title = "Mein cooler neuer Blog" | ||
# subtitle = "Hallo Welt! Dies ist der epischste Untertitel aller Zeiten." | ||
|
||
# don't change anything below | ||
[taxonomies] | ||
author = "author" | ||
tag = "tags" | ||
category = "categories" | ||
series = "series" | ||
|
||
[outputs] | ||
home = [ "HTML", "JSON", "RSS" ] | ||
page = [ "HTML" ] | ||
# or delete one of the [Languages.xx] blocks to use the theme with only one supported language | ||
[Languages] | ||
[Languages.zh-cn] | ||
weight = 1 | ||
# [Languages.de] | ||
# weight = 2 | ||
# title = "Mein cooler neuer Blog" | ||
# subtitle = "Hallo Welt! Dies ist der epischste Untertitel aller Zeiten." | ||
|
||
[markup] | ||
defaultMarkdownHandler = "goldmark" | ||
[markup.goldmark] | ||
defaultMarkdownHandler = 'goldmark' | ||
[markup.goldmark] | ||
[markup.goldmark.renderer] | ||
# Change to 'true' if you need to render raw HTML whithin your markdown content | ||
hardWraps = false | ||
# change to 'true' if you need to render raw HTML within your markdown content | ||
unsafe = true | ||
xhtml = false | ||
|
||
[markup.highlight] | ||
anchorLineNos = false | ||
codeFences = true | ||
guessSyntax = false | ||
# hl_Lines = '' | ||
# hl_inline = false | ||
lineAnchors = '' | ||
lineNoStart = 1 | ||
lineNos = false | ||
lineNumbersInTable = true | ||
noClasses = true | ||
noHl = false | ||
style = 'monokai' | ||
tabWidth = 4 | ||
[markup.tableOfContents] | ||
endLevel = 5 | ||
ordered = false | ||
startLevel = 2 | ||
|
||
# do NOT change anything below | ||
[taxonomies] | ||
author = "author" | ||
tag = "tags" | ||
category = "categories" | ||
series = "series" | ||
|
||
[outputs] | ||
home = [ "HTML", "JSON", "RSS" ] | ||
page = [ "HTML" ] |
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,5 +1,4 @@ | ||
--- | ||
title: "文章列表" | ||
type: archive | ||
excludeFromIndex: true | ||
--- |
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
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
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
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
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
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
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
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
Submodule bilberry-hugo-theme
updated
17 files
+9 −0 | v4/README.md | |
+10 −0 | v4/assets/js/check-theme-prefer.js | |
+23 −0 | v4/assets/js/theme.js | |
+15 −10 | v4/assets/sass/_articles.scss | |
+9 −0 | v4/assets/sass/_bilberry-hugo-theme.scss | |
+11 −6 | v4/assets/sass/_footer.scss | |
+41 −13 | v4/assets/sass/_header.scss | |
+2 −2 | v4/assets/sass/_main.scss | |
+2 −2 | v4/assets/sass/_pagination.scss | |
+13 −8 | v4/assets/sass/_topnav.scss | |
+72 −1 | v4/assets/sass/theme.scss | |
+4 −0 | v4/layouts/_default/baseof.html | |
+7 −0 | v4/layouts/partials/check-theme-prefer.html | |
+3 −3 | v4/layouts/partials/css.html | |
+42 −0 | v4/layouts/partials/giscus.html | |
+8 −2 | v4/layouts/partials/header.html | |
+2 −0 | v4/tests/exampleSite/config.toml |