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

Fix error when running example site with latest hugo version 0.143.0 #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
### Hugo ###
# Generated files by hugo
/public/
/exampleSite/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json
Expand Down
6 changes: 3 additions & 3 deletions exampleSite/content/blogs/rich-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme



## Twitter Simple Shortcode
## X Simple Shortcode
```
{{</* tweet GoHugoIO 1315233626070503424 */>}}
{{</* x user="GoHugoIO" id="1315233626070503424" */>}}
```
<br>
{{< tweet GoHugoIO 1315233626070503424 >}}
{{< x user="GoHugoIO" id="1315233626070503424" >}}
<br>


Expand Down
18 changes: 12 additions & 6 deletions exampleSite/config.yaml → exampleSite/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ outputs:
- "HTML"
- "RSS"

Paginate: 3
enableRobotsTXT: true
# disqusShortname: your-disqus-shortname
# googleAnalytics: G-MEASUREMENT_ID

#services:
#googleAnalytics:
#id: G-MEASUREMENT_ID
#disqus:
#shortname: your-disqus-shortname

pagination:
pagerSize: 3

markup:
goldmark:
Expand Down Expand Up @@ -287,14 +293,14 @@ params:
- title: Google kickstart runner
content: I solved all problems with optimal solution.
url: https://example.com
image: /images/achievment.jpg
image: /images/achievement.jpg
- title: Facebook Hackathon Winner
content: Developed a product using Artificial Intelligence.
image: /images/achievment.jpg
image: /images/achievement.jpg
- title: Hugo Profile
content: Developed a theme and getting 1K+ downloads per month.
url: "https://github.com/gurusabarish/hugo-profile"
image: /images/achievment.jpg
image: /images/achievement.jpg
- title: Microsoft Imagine Runner
content: We are developed a product which can help others.
- title: Google Summer of Code
Expand Down
8 changes: 4 additions & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ publish = "exampleSite/public"
command = 'cd exampleSite && echo -e "\ngoogleAnalytics: $GOOGLE_ANALYTICS \ndisqusShortname: $DISQUS_SHORTNAME \n" >> config.yaml && hugo --gc --minify --themesDir ../..'

[context.production.environment]
HUGO_VERSION = "0.92.0"
HUGO_VERSION = "0.143.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
HUGO_THEME = "repo"
Expand All @@ -12,22 +12,22 @@ HUGO_THEME = "repo"
command = "cd exampleSite && hugo --gc --minify --enableGitInfo --themesDir ../.."

[context.split1.environment]
HUGO_VERSION = "0.92.0"
HUGO_VERSION = "0.143.0"
HUGO_ENV = "production"
HUGO_THEME = "repo"

[context.deploy-preview]
command = "cd exampleSite && hugo --gc --minify --buildFuture --themesDir ../.. -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.92.0"
HUGO_VERSION = "0.143.0"
HUGO_THEME = "repo"

[context.branch-deploy]
command = "cd exampleSite && hugo --gc --minify --themesDir ../.. -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.92.0"
HUGO_VERSION = "0.143.0"

[context.next.environment]
HUGO_ENABLEGITINFO = "true"