Merge pull request 'Create the config for `staging`' (#73) from change-themes-LoveIt into master
Reviewed-on: #73
This commit is contained in:
commit
b1baaa7b80
14
.drone.yml
14
.drone.yml
|
@ -19,8 +19,13 @@ steps:
|
||||||
- find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null
|
- find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null
|
||||||
- find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm
|
- find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm
|
||||||
|
|
||||||
|
- name: submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: hugo
|
- name: hugo
|
||||||
image: cibuilds/hugo:0.83.0
|
image: cibuilds/hugo:0.89.2
|
||||||
commands:
|
commands:
|
||||||
- sudo hugo -e production --minify -v -s .
|
- sudo hugo -e production --minify -v -s .
|
||||||
|
|
||||||
|
@ -72,8 +77,13 @@ steps:
|
||||||
- grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
|
- grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
|
||||||
- grep -l -r "http://www.amazon.co.jp/exec" content/ | sort | uniq | xargs -t --no-run-if-empty sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"
|
- grep -l -r "http://www.amazon.co.jp/exec" content/ | sort | uniq | xargs -t --no-run-if-empty sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"
|
||||||
|
|
||||||
|
- name: submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: hugo
|
- name: hugo
|
||||||
image: cibuilds/hugo:0.83.0
|
image: cibuilds/hugo:0.89.2
|
||||||
commands:
|
commands:
|
||||||
- sudo hugo -e staging --minify -v -s .
|
- sudo hugo -e staging --minify -v -s .
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "themes/LoveIt"]
|
||||||
|
path = themes/LoveIt
|
||||||
|
url = https://github.com/dillonzq/LoveIt.git
|
|
@ -1,29 +1,263 @@
|
||||||
baseURL = "http://test.kazu634.com/"
|
baseURL = "http://test.kazu634.com/"
|
||||||
title = "His greatness lies in his sense of responsibility"
|
# [en, zh-cn, fr, ...] determines default content language
|
||||||
DefaultContentLanguage = "jp"
|
defaultContentLanguage = "en"
|
||||||
languageCode = "ja"
|
# language code
|
||||||
theme = "angels-ladder"
|
languageCode = "jp"
|
||||||
HasCJKLanguage = true
|
title = "His greatness lies in his sense of responsibilities."
|
||||||
|
|
||||||
|
# Change the default theme to be use when building the site with Hugo
|
||||||
|
theme = "LoveIt"
|
||||||
|
|
||||||
|
# Author config
|
||||||
|
[author]
|
||||||
|
name = "kazu634"
|
||||||
|
email = "simoom634@yahoo.co.jp"
|
||||||
|
link = ""
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
subtitle = "named after the quotation from Wind, Sand, and Stars by Saint Exupery."
|
author = "kazu634"
|
||||||
facebook = "https://www.facebook.com/kazu634"
|
# LoveIt theme version
|
||||||
twitter = "https://twitter.com/MusashiKazuhiro"
|
version = "0.2.X"
|
||||||
github = "https://github.com/kazu634"
|
# site description
|
||||||
profile = "/images/profile.png"
|
description = "@kazu634のブログです"
|
||||||
analytics = "UA-57665492-1"
|
# site keywords
|
||||||
copyright = "Written by Kazuhiro MUSASHI"
|
keywords = ["Blog", "Hugo", "Tech"]
|
||||||
|
# site default theme ("light", "dark", "auto")
|
||||||
|
defaultTheme = "auto"
|
||||||
|
# LoveIt NEW | 0.2.0 date format
|
||||||
|
dateFormat = "2006-01-02"
|
||||||
|
|
||||||
description = "the blog written by @MusashiKazuhiro"
|
[params.page.seo]
|
||||||
title = "His greatness lies in his sense of responsibility"
|
# image URL
|
||||||
images = ["/images/profile.png"]
|
images = []
|
||||||
|
# Publisher info
|
||||||
|
[params.page.seo.publisher]
|
||||||
|
name = "kazu634"
|
||||||
|
logoUrl = ""
|
||||||
|
|
||||||
[taxonomies]
|
# Header config
|
||||||
category = "categories"
|
[params.header]
|
||||||
series = "series"
|
# desktop header mode ("fixed", "normal", "auto")
|
||||||
tag = "tags"
|
desktopMode = "fixed"
|
||||||
|
# mobile header mode ("fixed", "normal", "auto")
|
||||||
|
mobileMode = "auto"
|
||||||
|
|
||||||
|
# LoveIt NEW | 0.2.0 Header title config
|
||||||
|
[params.header.title]
|
||||||
|
# title name
|
||||||
|
name = "His greatness lies in his sense of responsibilities"
|
||||||
|
# you can add extra information before the name (HTML format is supported), such as icons
|
||||||
|
pre = ""
|
||||||
|
# you can add extra information after the name (HTML format is supported), such as icons
|
||||||
|
post = ""
|
||||||
|
# LoveIt NEW | 0.2.5 whether to use typeit animation for title name
|
||||||
|
typeit = false
|
||||||
|
|
||||||
|
[params.footer]
|
||||||
|
enable = true
|
||||||
|
# LoveIt NEW | 0.2.0 Custom content (HTML format is supported)
|
||||||
|
custom = ''
|
||||||
|
# LoveIt NEW | 0.2.0 whether to show Hugo and theme info
|
||||||
|
hugo = true
|
||||||
|
# LoveIt NEW | 0.2.0 whether to show copyright info
|
||||||
|
copyright = true
|
||||||
|
# LoveIt NEW | 0.2.0 whether to show the author
|
||||||
|
author = true
|
||||||
|
# Site creation time
|
||||||
|
since = 2005
|
||||||
|
|
||||||
|
# LoveIt NEW | 0.2.0 Section (all posts) page config
|
||||||
|
[params.section]
|
||||||
|
# special amount of posts in each section page
|
||||||
|
paginate = 15
|
||||||
|
# date format (month and day)
|
||||||
|
dateFormat = "01-02"
|
||||||
|
# amount of RSS pages
|
||||||
|
rss = 10
|
||||||
|
|
||||||
|
# LoveIt NEW | 0.2.0 List (category or tag) page config
|
||||||
|
[params.list]
|
||||||
|
# special amount of posts in each list page
|
||||||
|
paginate = 15
|
||||||
|
# date format (month and day)
|
||||||
|
dateFormat = "01-02"
|
||||||
|
# amount of RSS pages
|
||||||
|
rss = 10
|
||||||
|
|
||||||
|
# Home page config
|
||||||
|
[params.home]
|
||||||
|
# LoveIt NEW | 0.2.0 amount of RSS pages
|
||||||
|
rss = 10
|
||||||
|
# Home page profile
|
||||||
|
[params.home.profile]
|
||||||
|
enable = true
|
||||||
|
# URL of avatar shown in home page
|
||||||
|
avatarURL = "/images/profile.png"
|
||||||
|
# LoveIt CHANGED | 0.2.7 title shown in home page (HTML format is supported)
|
||||||
|
title = "Kazuhiro MUSASHI"
|
||||||
|
# subtitle shown in home page
|
||||||
|
subtitle = "ITエンジニアです。本当は手を動かしたいけど、いまはプレセールスやっています。"
|
||||||
|
# whether to use typeit animation for subtitle
|
||||||
|
typeit = true
|
||||||
|
# whether to show social links
|
||||||
|
social = true
|
||||||
|
# LoveIt NEW | 0.2.0 disclaimer (HTML format is supported)
|
||||||
|
disclaimer = "Opinions are my own."
|
||||||
|
# Home page posts
|
||||||
|
[params.home.posts]
|
||||||
|
enable = true
|
||||||
|
# special amount of posts in each home posts page
|
||||||
|
paginate = 5
|
||||||
|
# LoveIt DELETED | 0.2.0 replaced with hiddenFromHomePage in params.page
|
||||||
|
# default behavior when you don't set "hiddenFromHomePage" in front matter
|
||||||
|
defaultHiddenFromHomePage = false
|
||||||
|
|
||||||
|
# Social config about the author
|
||||||
|
[params.social]
|
||||||
|
Gitea = "https://gitea.kazu634.com/kazu634"
|
||||||
|
Twitter = "MusashiKazuhiro"
|
||||||
|
Facebook = "kazu634"
|
||||||
|
Linkedin = "一弘-武蔵-b90bba54"
|
||||||
|
Flickr = "42332031@N02"
|
||||||
|
RSS = true # LoveIt NEW | 0.2.0
|
||||||
|
|
||||||
|
# LoveIt CHANGED | 0.2.0 Page config
|
||||||
|
[params.page]
|
||||||
|
# LoveIt NEW | 0.2.0 whether to hide a page from home page
|
||||||
|
hiddenFromHomePage = false
|
||||||
|
# LoveIt NEW | 0.2.0 whether to hide a page from search results
|
||||||
|
hiddenFromSearch = false
|
||||||
|
# LoveIt NEW | 0.2.0 whether to enable twemoji
|
||||||
|
twemoji = true
|
||||||
|
# whether to enable lightgallery
|
||||||
|
lightgallery = true
|
||||||
|
# LoveIt NEW | 0.2.0 whether to enable the ruby extended syntax
|
||||||
|
ruby = true
|
||||||
|
# LoveIt NEW | 0.2.0 whether to enable the fraction extended syntax
|
||||||
|
fraction = true
|
||||||
|
# LoveIt NEW | 0.2.0 whether to enable the fontawesome extended syntax
|
||||||
|
fontawesome = true
|
||||||
|
# whether to show link to Raw Markdown content of the content
|
||||||
|
linkToMarkdown = true
|
||||||
|
# LoveIt NEW | 0.2.4 whether to show the full text content in RSS
|
||||||
|
rssFullText = false
|
||||||
|
# LoveIt NEW | 0.2.0 Table of the contents config
|
||||||
|
|
||||||
|
[params.page.toc]
|
||||||
|
# whether to enable the table of the contents
|
||||||
|
enable = true
|
||||||
|
# LoveIt NEW | 0.2.9 whether to keep the static table of the contents in front of the post
|
||||||
|
keepStatic = false
|
||||||
|
# whether to make the table of the contents in the sidebar automatically collapsed
|
||||||
|
auto = true
|
||||||
|
|
||||||
|
# LoveIt CHANGED | 0.2.0 KaTeX mathematical formulas
|
||||||
|
[params.page.math]
|
||||||
|
enable = true
|
||||||
|
# default block delimiter is $$ ... $$ and \\[ ... \\]
|
||||||
|
blockLeftDelimiter = ""
|
||||||
|
blockRightDelimiter = ""
|
||||||
|
# default inline delimiter is $ ... $ and \\( ... \\)
|
||||||
|
inlineLeftDelimiter = ""
|
||||||
|
inlineRightDelimiter = ""
|
||||||
|
# KaTeX extension copy_tex
|
||||||
|
copyTex = true
|
||||||
|
# KaTeX extension mhchem
|
||||||
|
mhchem = true
|
||||||
|
# LoveIt NEW | 0.2.0 Code config
|
||||||
|
|
||||||
|
[params.page.code]
|
||||||
|
# whether to show the copy button of the code block
|
||||||
|
copy = true
|
||||||
|
# the maximum number of lines of displayed code by default
|
||||||
|
maxShownLines = 10
|
||||||
|
|
||||||
|
# LoveIt NEW | 0.2.0 Mapbox GL JS config
|
||||||
|
[params.page.mapbox]
|
||||||
|
# access token of Mapbox GL JS
|
||||||
|
accessToken = ""
|
||||||
|
# style for the light theme
|
||||||
|
lightStyle = "mapbox://styles/mapbox/light-v9"
|
||||||
|
# style for the dark theme
|
||||||
|
darkStyle = "mapbox://styles/mapbox/dark-v9"
|
||||||
|
# whether to add NavigationControl
|
||||||
|
navigation = true
|
||||||
|
# whether to add GeolocateControl
|
||||||
|
geolocate = true
|
||||||
|
# whether to add ScaleControl
|
||||||
|
scale = true
|
||||||
|
# whether to add FullscreenControl
|
||||||
|
fullscreen = true
|
||||||
|
|
||||||
|
# LoveIt CHANGED | 0.2.0 social share links in post page
|
||||||
|
[params.page.share]
|
||||||
|
enable = true
|
||||||
|
Twitter = true
|
||||||
|
Facebook = true
|
||||||
|
Line = true
|
||||||
|
Pocket = true
|
||||||
|
|
||||||
|
# LoveIt NEW | 0.2.0 Analytics config
|
||||||
|
[params.analytics]
|
||||||
|
enable = true
|
||||||
|
# Google Analytics
|
||||||
|
[params.analytics.google]
|
||||||
|
id = "UA-57665492-1"
|
||||||
|
# whether to anonymize IP
|
||||||
|
anonymizeIP = true
|
||||||
|
|
||||||
|
[menu]
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "posts"
|
||||||
|
# you can add extra information before the name (HTML format is supported), such as icons
|
||||||
|
pre = ""
|
||||||
|
# you can add extra information after the name (HTML format is supported), such as icons
|
||||||
|
post = ""
|
||||||
|
name = "Posts"
|
||||||
|
url = "/posts/"
|
||||||
|
# title will be shown when you hover on this menu link
|
||||||
|
title = ""
|
||||||
|
weight = 1
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "tags"
|
||||||
|
pre = ""
|
||||||
|
post = ""
|
||||||
|
name = "Tags"
|
||||||
|
url = "/tags/"
|
||||||
|
title = ""
|
||||||
|
weight = 2
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "categories"
|
||||||
|
pre = ""
|
||||||
|
post = ""
|
||||||
|
name = "Categories"
|
||||||
|
url = "/categories/"
|
||||||
|
title = ""
|
||||||
|
weight = 3
|
||||||
|
|
||||||
[markup]
|
[markup]
|
||||||
|
# Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
|
||||||
|
[markup.highlight]
|
||||||
|
codeFences = true
|
||||||
|
guessSyntax = true
|
||||||
|
lineNos = true
|
||||||
|
lineNumbersInTable = true
|
||||||
|
# false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
|
||||||
|
noClasses = false
|
||||||
|
# Goldmark is from Hugo 0.60 the default library used for Markdown
|
||||||
[markup.goldmark]
|
[markup.goldmark]
|
||||||
|
[markup.goldmark.extensions]
|
||||||
|
definitionList = true
|
||||||
|
footnote = true
|
||||||
|
linkify = true
|
||||||
|
strikethrough = true
|
||||||
|
table = true
|
||||||
|
taskList = true
|
||||||
|
typographer = true
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe= true
|
# whether to use HTML tags directly in the document
|
||||||
|
unsafe = true
|
||||||
|
# Table Of Contents settings
|
||||||
|
[markup.tableOfContents]
|
||||||
|
startLevel = 2
|
||||||
|
endLevel = 6
|
||||||
|
|
Loading…
Reference in New Issue