From cbcbf3c50ab0cde985b60d53c8ad393a2a8f57dc Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Tue, 3 Jan 2023 12:55:06 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=82=B9=E3=83=86=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=83=B3=E3=82=B0=E7=92=B0=E5=A2=83=E7=94=A8=E3=81=AE=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/staging/config.toml | 35 ++++++++ config/staging/languages.ja.toml | 24 ++++++ config/staging/markup.toml | 13 +++ config/staging/menus.ja.toml | 37 +++++++++ config/staging/params.toml | 133 +++++++++++++++++++++++++++++++ config/staging/taxonomies.toml | 2 + 6 files changed, 244 insertions(+) create mode 100644 config/staging/config.toml create mode 100644 config/staging/languages.ja.toml create mode 100644 config/staging/markup.toml create mode 100644 config/staging/menus.ja.toml create mode 100644 config/staging/params.toml create mode 100644 config/staging/taxonomies.toml diff --git a/config/staging/config.toml b/config/staging/config.toml new file mode 100644 index 0000000..4f56fa9 --- /dev/null +++ b/config/staging/config.toml @@ -0,0 +1,35 @@ +# -- Site Configuration -- +# Refer to the theme docs for more details about each of these parameters. +# https://blowfish.page/docs/getting-started/ + +theme = "blowfish" +baseURL = "https://staging.everun.club/" +defaultContentLanguage = "ja" +hasCJKLanguage = true + +enableRobotsTXT = true +paginate = 20 +summaryLength = 80 + +buildDrafts = false +buildFuture = false + +# googleAnalytics = "G-XXXXXXXXX" + +[imaging] + anchor = 'Center' + +[taxonomies] + author = "authors" + series = "series" + +[sitemap] + changefreq = 'daily' + filename = 'sitemap.xml' + priority = 0.5 + +[outputs] + home = ["HTML", "RSS", "JSON"] + +[permalinks] + posts = '/:year/:month/:filename/' diff --git a/config/staging/languages.ja.toml b/config/staging/languages.ja.toml new file mode 100644 index 0000000..22a2cc7 --- /dev/null +++ b/config/staging/languages.ja.toml @@ -0,0 +1,24 @@ +languageCode = "ja" +languageName = "Japanese" +displayName = "日本語" +isoCode = "ja" +weight = 1 +rtl = false + +title = "EveRun since 1989" +logo = "img/logo.jpg" +description = "東北大学のランニングサークル・イブランのホームページです" +# copyright = "Copy, _right?_ :thinking_face:" + +dateFormat = "2006-01-02" + +[author] + name = "東北大学ランニングサークル・イブラン" + image = "img/logo.jpg" + headline = "現役メンバーを募集中!我こそはという人はご連絡ください!" + bio = "東北大学の有志によるランニングサークルです。陸上部とは違い、そこまで本気にならずに、好きなペースで、好きな距離を走るサークルです。" + links = [ + { twitter = "https://twitter.com/everun1989" }, + { facebook = "https://www.facebook.com/groups/everun/" }, + { instagram = "https://instagram.com/everun1982" }, + ] diff --git a/config/staging/markup.toml b/config/staging/markup.toml new file mode 100644 index 0000000..c5449fc --- /dev/null +++ b/config/staging/markup.toml @@ -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 diff --git a/config/staging/menus.ja.toml b/config/staging/menus.ja.toml new file mode 100644 index 0000000..5509500 --- /dev/null +++ b/config/staging/menus.ja.toml @@ -0,0 +1,37 @@ +# -- Main Menu -- +# The main menu is displayed in the header at the top of the page. +# Acceptable parameters are name, pageRef, page, url, title, weight. +# +# The simplest menu configuration is to provide: +# name = The name to be displayed for this menu link +# pageRef = The identifier of the page or section to link to +# +# By default the menu is ordered alphabetically. This can be +# overridden by providing a weight value. The menu will then be +# ordered by weight from lowest to highest. + +[[main]] + name = "イブランについて" + pageRef = "about" + weight = 10 + +[[main]] + name = "スケジュール" + pageRef = "schedule" + weight = 20 + +[[main]] + name = "活動の記録" + pageRef = "posts" + weight = 30 + +[[main]] + name = "トピック" + pageRef = "topics" + weight = 40 + +# -- 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. + + diff --git a/config/staging/params.toml b/config/staging/params.toml new file mode 100644 index 0000000..9019513 --- /dev/null +++ b/config/staging/params.toml @@ -0,0 +1,133 @@ +# -- Theme Options -- +# These options control how the theme functions and allow you to +# customise the display of your website. +# +# Refer to the theme docs for more details about each of these parameters. +# https://blowfish.page/docs/configuration/#theme-parameters + +colorScheme = "blowfish" +defaultAppearance = "light" # valid options: light or dark +autoSwitchAppearance = true + +enableSearch = true +enableCodeCopy = false + +mainSections = ["posts"] +# robots = "" + +# disableImageOptimization = false + +# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images + +[header] + layout = "basic" # valid options: basic, fixed + +[footer] + # showMenu = true + showCopyright = true + showThemeAttribution = true + showAppearanceSwitcher = true + showScrollToTop = true + +[homepage] + layout = "profile" # valid options: page, profile, hero, card, background, custom + #homepageImage = "IMAGE.jpg" # used in: hero, and card + showRecent = true + showRecentItems = 5 + showMoreLink = true + showMoreLinkDest = "/posts" + cardView = false + cardViewScreenWidth = false + layoutBackgroundBlur = false # only used when layout equals background + +[article] + showDate = true + #showViews = true + #showLikes = true + showDateUpdated = false + showAuthor = false + showHero = true + heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + layoutBackgroundHeaderSpace = true # only used when heroStyle equals background + showBreadcrumbs = true + showDraftLabel = true + showEdit = false + # editURL = "https://github.com/username/repo/" + editAppendPath = false + seriesOpened = true + showHeadingAnchors = true + showPagination = true + invertPagination = false + showReadingTime = true + showTableOfContents = true + showTaxonomies = true + showAuthorsBadges = true + showWordCount = true + showSummary = true + sharingLinks = false + +[list] + #showHero = true + #heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + #layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + #layoutBackgroundHeaderSpace = true # only used when heroStyle equals background + showBreadcrumbs = true + showSummary = true + #showViews = true + #showLikes = true + showTableOfContents = false + showCards = true + groupByYear = true + cardView = true + cardViewScreenWidth = true + +[sitemap] + excludedKinds = [] + +[taxonomy] + showTermCount = true + #showHero = true + #heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = true + #showViews = false + #showLikes = false + #showTableOfContents = true + cardView = true + +[term] + #showHero = true + #heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = true + #showViews = false + #showLikes = false + #showTableOfContents = true + groupByYear = true + cardViewScreenWidth = true + cardView = true + +[firebase] + # apiKey = "XXXXXX" + # authDomain = "XXXXXX" + # projectId = "XXXXXX" + # storageBucket = "XXXXXX" + # messagingSenderId = "XXXXXX" + # appId = "XXXXXX" + # measurementId = "XXXXXX" + +[fathomAnalytics] + # site = "ABC12345" + # domain = "llama.yoursite.com" + +[buymeacoffee] + # identifier = "" + # globalWidget = true + # globalWidgetMessage = "Hello" + # globalWidgetColor = "#FFDD00" + # globalWidgetPosition = "Right" + +[verification] + # google = "" + # bing = "" + # pinterest = "" + # yandex = "" diff --git a/config/staging/taxonomies.toml b/config/staging/taxonomies.toml new file mode 100644 index 0000000..f8f5ff8 --- /dev/null +++ b/config/staging/taxonomies.toml @@ -0,0 +1,2 @@ +topic = "topics" +author = "authors" From 79258829b20a6d1ac4351579cdc8db3ef1b35288 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Tue, 3 Jan 2023 12:55:28 +0900 Subject: [PATCH 2/3] =?UTF-8?q?`Drone`=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..197789a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,100 @@ +kind: pipeline +type: docker +name: production + +steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive + + - name: hugo + image: cibuilds/hugo:0.106 + commands: + - sudo hugo -e production --minify -v -s . + + - name: Compress-the-Assets + image: alpine:3.9 + commands: + - find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %' + + - name: housekeep + image: appleboy/drone-ssh + settings: + host: 10.0.1.166 + username: webadm + port: 10022 + key: + from_secret: ssh_key + script: + - rm -rf /var/www/everun/* + - rm -rf /home/webadm/works/public/* + + - name: scp + image: appleboy/drone-scp + settings: + host: 10.0.1.166 + username: webadm + port: 10022 + target: + - /var/www/everun + - /home/webadm/works/public + source: public/ + key: + from_secret: ssh_key + overwrite: true + strip_components: 1 + +trigger: + branch: + - master + +--- +kind: pipeline +type: docker +name: staging + +steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive + + - name: hugo + image: cibuilds/hugo:0.106 + commands: + - sudo hugo -e staging --minify -v -s . + + - name: Compress-the-Assets + image: alpine:3.9 + commands: + - find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %' + + - name: housekeep + image: appleboy/drone-ssh + settings: + host: 10.0.1.166 + username: webadm + port: 10022 + key: + from_secret: ssh_key + script: + - rm -rf /var/www/test-everun/* + + - name: scp + image: appleboy/drone-scp + settings: + host: 10.0.1.166 + username: webadm + port: 10022 + target: /var/www/test-everun + source: public/ + key: + from_secret: ssh_key + overwrite: true + strip_components: 1 + +trigger: + branch: + exclude: + - master From 983c8c26e69fd261d7792313c176587943918a1d Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Tue, 3 Jan 2023 13:01:52 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Git=20LFS=E3=81=AE=E3=83=87=E3=83=BC?= =?UTF-8?q?=E3=82=BF=E3=82=92=E5=8F=96=E5=BE=97=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index 197789a..c82469b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,9 @@ steps: - name: submodules image: alpine/git commands: + - apk add git-lfs - git submodule update --init --recursive + - git lfs pull - name: hugo image: cibuilds/hugo:0.106 @@ -58,7 +60,9 @@ steps: - name: submodules image: alpine/git commands: + - apk add git-lfs - git submodule update --init --recursive + - git lfs pull - name: hugo image: cibuilds/hugo:0.106