Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo server settings by type #203

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,10 @@ jobs:
- name: Build
run: |
if [[ '${{github.ref}}' == 'refs/heads/main' ]]; then
hugo --enableGitInfo --minify \
--environment production \
-d ${{ env.hugobd }}
hugo -d ${{ env.hugobd }}
else
hugo --enableGitInfo --minify \
-d ${{ env.hugobd }} \
-b https://${{ env.netalias }}--rladies-dev.netlify.app/
hugo -d ${{ env.hugobd }} \
-b https://${{ env.netalias }}--rladies-dev.netlify.app/
fi

- name: Archive Build Artifact
Expand Down
16 changes: 0 additions & 16 deletions config/_default/hugo.toml

This file was deleted.

20 changes: 12 additions & 8 deletions config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ baseURL: "."
title: "R-Ladies Global"
theme: "hugo-rladies"
publishDir: "build"

languageCode: "en"
defaultContentLanguage: "en"
summaryLength: 30

pygmentsUseClasses: true
enableGitInfo: true
enableRobotsTXT: true
enableGitInfo: true
minify:
minifyOutput: true

ignoreFiles:
- "\\.Rmd$"
- "\\.qmd$"
Expand All @@ -12,13 +24,5 @@ ignoreFiles:
- "_cache$"
- "README"
- "README_img/"

pygmentsUseClasses: true
enableGitInfo: true
enableRobotsTXT: true

languageCode: "en"
defaultContentLanguage: "en"
summaryLength: 30
#[outputs]
# home = ["HTML", "RSS", "JSON"]
3 changes: 3 additions & 0 deletions config/development/hugo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
baseURL: "."
buildFuture: true
buildDrafts: true
2 changes: 0 additions & 2 deletions config/production/hugo.toml

This file was deleted.

2 changes: 2 additions & 0 deletions config/production/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ disableLanguages:
- "fr"
- "pt"
- "es"
buildFuture: false
buildDrafts: false