From 88439859d9f3798a24a4aed3c68ac329a036386a Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Tue, 1 Oct 2024 22:04:18 -0400 Subject: [PATCH] More hugo conversion, deploy script --- .gitignore | 2 + .gitmodules | 6 ++ hugo.toml | 211 ++++++++++++++++++++++++++++++++++++++- posts.org | 53 ++++++++++ scripts/deploy | 4 + scripts/hugo | 3 + themes/dark-theme-editor | 1 + 7 files changed, 278 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 100644 posts.org create mode 100755 scripts/deploy create mode 100755 scripts/hugo create mode 160000 themes/dark-theme-editor diff --git a/.gitignore b/.gitignore index a48cf0d..3f5b4b7 100755 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ public +resources/_gen +.hugo_build.lock diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..302979f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "themes/ananke"] + path = themes/ananke + url = https://github.com/theNewDynamic/gohugo-theme-ananke.git +[submodule "themes/dark-theme-editor"] + path = themes/dark-theme-editor + url = https://github.com/JingWangTW/dark-theme-editor.git diff --git a/hugo.toml b/hugo.toml index 04ca08f..03a59c3 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,3 +1,210 @@ -baseURL = 'https://jamesbrechtel.com/' +baseURL = 'https://drafts.jamesbrechtel.com/' languageCode = 'en-us' -title = 'Excessively verbose' +title = 'james brechtel' +theme = 'dark-theme-editor' + +# Support Taxonomies +[taxonomies] + autor = "James brechtel" + tag = "tags" + category = "categories" + _merge = "deep" + +# Theme parameters +[params] + + # Parameters applied in HTML + [params.site] + # Website ICON + faviconUrl = "" + + # Do you have any CSS in local? List them in an array. + # They should be placed inside "/assets" dir. + # Please list your files relative to the /assets directory. + # Glob pattern is acceptable + # If only a few pages need the extra style files, list them in the page metadata. + localCss = [] + + # Do you need to add any external CSS? List their URL in an array. + # If only a few pages need the extra style files, list them in the page metadata. + # These URLs will be inserted into tags directly without any check. + externalCss = [] + + # Like the one above, but this will download a local copy and combine it with + # other CSS files into a single file while in production mode. + externalCssDownload = [] + + # Do you have any script in local? List them in an array. + # They should be placed inside "/assets" dir. + # Please list your files relative to the /assets directory. + # Glob pattern is acceptable + # If only a few pages need the extra script files, list them in the page metadata. + localJs = [] + + # Do you have any external Script need to add on? List their URL in an array. + # If only a few pages need the extra script files, list them in the page metadata. + # These URLs will be inserted into