Skip to content
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
24 changes: 12 additions & 12 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ theme: hugo-theme-mini
# Default content language, support en (English) / zh (Chinese) / nl (Dutch) / fr (French) / es (Spanish) / da (Danish), default 'en'
defaultContentLanguage: en

# !!! exampleSite only, you may need to delete the line: `themesDir: ../../`
# !!! exampleSite only, you may need to delete the line: `themesDir: ../../`
themesDir: ../../

hasCJKLanguage: true
permalinks:
posts: /posts/:title/

paginate: 3
pagination:
pagerSize: 3

googleAnalytics: your-google-analytics-id
disqusShortname: your-disqus-shortname
Expand All @@ -33,15 +34,6 @@ markup:
renderer:
unsafe: true

# Social links in footer, support github,twitter,stackoverflow,facebook
social:
# e.g.
github: your-github-link
twitter: your-twitter-link
stackoverflow: your-stackoverflow-link
# facebook: your-facebook-link


# Site parameters
params:
# Site Author
Expand All @@ -51,6 +43,14 @@ params:
# Site Description, used in HTML meat
description: My Blog

# Social links in footer, support github,twitter,stackoverflow,facebook
social:
# e.g.
github: your-github-link
twitter: your-twitter-link
stackoverflow: your-stackoverflow-link
# facebook: your-facebook-link


###########################################
# Optional Configuration
Expand All @@ -71,7 +71,7 @@ params:
# To hidden post summary in home page, you could set `hiddenPostSummaryInHomePage: true`, default is `false`
hiddenPostSummaryInHomePage: false
# Website copyright, default: '© Copyright 2021 ❤️ {params.author}'
copyright: ''
copyright: ''

# Extra links in navigation
links:
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/posts/rich-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme

---

## Twitter Simple Shortcode
## X Shortcode

{{< twitter_simple 1085870671291310081 >}}
{{< x user="DesignReviewed" id="1085870671291310081" >}}

<br>

Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<footer id="footer">
{{ if .Site.Social }}
{{ if .Site.Params.Social }}
{{ partial "social.html" . }}
{{ end }}

<div class="copyright">
{{ with .Site.Params.copyright }}
{{ . | markdownify }}
{{ else }}
© Copyright
{{ now.Format "2006"}}
© Copyright
{{ now.Format "2006"}}
<span class="split">
{{ partial "svgs/heart.svg" (dict "fill" "#bbbbbb" "width" 15 "height" 15 ) }}
</span>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
{{ end }}

{{ if .Site.Params.enableRSS }}
<a class="button" href="{{ .Site.RSSLink }}">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}{{ i18n "subscribe" }}{{ end }}</a>
<a class="button" href="{{ "index.xml" | absURL }}">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}{{ i18n "subscribe" }}{{ end }}</a>
{{ end }}
</nav>
</nav>
2 changes: 1 addition & 1 deletion layouts/partials/social.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="social">

{{ range $key, $val := .Site.Social }}
{{ range $key, $val := .Site.Params.Social }}
<a class="symbol" href="{{ $val }}" rel="me" target="_blank">
{{ $svg := print "svgs/" $key ".svg" }}
{{ partial $svg (dict "fill" "#bbbbbb" "width" 28 "height" 28 ) }}
Expand Down