diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 384cedb..6bf1bc6 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -4,7 +4,7 @@ name: Deploy Hugo site to Pages on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: ["master"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -44,14 +44,11 @@ jobs: id: pages uses: actions/configure-pages@v1 - name: Build with Hugo - run: | - hugo \ - --minify \ - --baseURL ${{ steps.pages.outputs.base_url }} + run: cd website && ls && hugo --minify --baseURL ${{ steps.pages.outputs.base_url }} - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: - path: ./public + path: ./website/public # Deployment job deploy: diff --git a/website/config.toml b/website/config.toml new file mode 100644 index 0000000..e8464ce --- /dev/null +++ b/website/config.toml @@ -0,0 +1,42 @@ +baseURL = "https://ljvmiranda921.github.io/calamancy" +languageCode = "en-us" +title = "calamanCy" +theme = "xmin" + +ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_cache$"] +footnotereturnlinkcontents = "↩" + +[permalinks] +note = "/note/:year/:month/:day/:slug/" +post = "/post/:year/:month/:day/:slug/" + +[menu] +[[menu.main]] +name = "Home" +url = "" +weight = 1 +[[menu.main]] +name = "News" +url = "news/" +weight = 2 +[[menu.main]] +name = "Tutorials" +url = "tutorials/" +weight = 3 +[[menu.main]] +name = "Who uses calamanCy" +url = "users/" +weight = 4 + +[params] +description = "A website built through Hugo and blogdown." +footer = "© [Lj V. Miranda](https://ljvmiranda921.github.io) 2023 -- {Year} | [Github](https://github.com/ljvmiranda921/) | [Twitter](https://twitter.com/ljvmiranda)" + +[markup.goldmark.renderer] +unsafe = true + +[markup.highlight] +codeFences = false + +[markup.goldmark.extensions.passthrough] +enable = true diff --git a/website/hugo.yaml b/website/hugo.yaml deleted file mode 100644 index cee92a2..0000000 --- a/website/hugo.yaml +++ /dev/null @@ -1,49 +0,0 @@ -baseURL: "https://ljvmiranda921.github.io/calamancy" -languageCode: "en-us" -title: "calamanCy" -theme: "xmin" - -ignoreFiles: ["\\.Rmd$", "\\.Rmarkdown$", "_cache$"] -footnotereturnlinkcontents: "↩" - -permalinks: - note: "/note/:year/:month/:day/:slug/" - post: "/post/:year/:month/:day/:slug/" - -menu: - main: - - name: Home - url: "" - weight: 1 - - name: News - url: "news/" - weight: 2 - - name: Tutorials - url: "tutorials/" - weight: 3 - - name: "Who uses calamanCy" - url: "users/" - weight: 4 - -params: - description: "A website built through Hugo and blogdown." - footer: "© [Lj V. Miranda](https://ljvmiranda921.github.io) 2023 -- {Year} | [Github](https://github.com/ljvmiranda921/) | [Twitter](https://twitter.com/ljvmiranda)" - -markup: - highlight: - codeFences: false - goldmark: - renderer: - unsafe: true - extensions: - passthrough: - enable: true - delimiters: - block: - - - \[ - - \] - - - $$ - - $$ - inline: - - - \( - - \)