From bfdf8ac96adecb7b64fa9b505448fe1f8558b8c3 Mon Sep 17 00:00:00 2001 From: Morgan Date: Wed, 8 Nov 2023 16:24:31 +0900 Subject: [PATCH] Fix --- config.yml | 2 +- config.yml.old | 70 +++++++++++++++++++++++++++++++++++++++++++++-- scripts/build.sh | 4 +-- scripts/update.sh | 3 +- 4 files changed, 73 insertions(+), 6 deletions(-) diff --git a/config.yml b/config.yml index 016b1f4..593b805 100644 --- a/config.yml +++ b/config.yml @@ -23,7 +23,7 @@ params: icon: /favicon.png icon_inv: /favicon-inv.png iconHeight: 24 - buildDate: 1101_2207 + buildDate: 11081623 ####################################### diff --git a/config.yml.old b/config.yml.old index 4453fa9..fcc6ae6 100644 --- a/config.yml.old +++ b/config.yml.old @@ -1,6 +1,6 @@ baseURL: "http://blog.morgan.kr" title: Morgan's Blog -theme: "mytheme" +theme: "oldtheme" buildDrafts: false buildFuture: false @@ -17,11 +17,77 @@ params: favicon: "https://blog.morgan.kr/favicon.ico" apple_touch_icon: "https://blog.morgan.kr/favicon.ico" safari_pinned_tab: "https://blog.morgan.kr/favicon.ico" + mainSections: + - posts label: icon: /favicon.png icon_inv: /favicon-inv.png iconHeight: 24 - buildDate: 2000-00-00_00:00:00 + buildDate: 11012207 +####################################### + + defaultTheme: dark + disableThemeToggle: false + ShowReadingTime: false + ShowShareButtons: true + ShowPostNavLinks: true + ShowBreadCrumbs: false + ShowCodeCopyButtons: true + ShowWordCount: false + ShowRssButtonInSectionTermList: false + UseHugoToc: true + disableSpecial1stPost: false + disableScrollToTop: false + comments: false + hidemeta: false + hideSummary: false + showtoc: false + tocopen: false + homeInfoParams: + Title: Hi, I'm Morgan. + Content: Student Developer + + socialIcons: + - name: github + url: "https://github.com/morgan9e" + - name: email + url: "mailto:me@morgan.kr" + - name: git + url: "https://git.morgan.kr" + - name: twitter + url: "https://twitter.com/morgan8w" + - name: telegram + url: "https://t.me/morgan9e" + cover: + hidden: true + hiddenInList: true + hiddenInSingle: true + fuseOpts: + isCaseSensitive: false + shouldSort: true + location: 0 + distance: 1000 + threshold: 0.4 + minMatchCharLength: 0 + keys: ["title", "permalink", "summary", "content"] + +paginate: 100 +menus: + main: + - identifier: posts + name: Posts + url: /posts/ + weight: 30 + +pygmentsUseClasses: true +markup: + highlight: + noClasses: false + codeFences: true + guessSyntax: true + +############################# + permalinks: posts: /:year/:month/:title/ diff --git a/scripts/build.sh b/scripts/build.sh index 8cb9adc..fb9062a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,3 +1,3 @@ -sed -i.old "s/buildDate: [0-9]\+-[0-9]\+/buildDate: $(date +%m%d-%H%M)/" config.yml -echo buildDate: $(date +%m%d-%H%M) +sed -i.old "s/buildDate: [0-9]\+/buildDate: $(date +%m%d%H%M)/" config.yml +echo buildDate: $(date +%m%d%H%M) hugo diff --git a/scripts/update.sh b/scripts/update.sh index c5204e8..9fc373a 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,4 +1,5 @@ #!/bin/bash cd /srv/blog -git pull +git fetch +git reset --hard origin/master ./scripts/build.sh