Modifications to use Socials in the hugo.toml and add to the side bar
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{{ with .Params.hide_example }}
|
||||
<!-- No data here! -->
|
||||
{{ else }}
|
||||
<div>
|
||||
In the config.yaml or config.toml file you would have something like
|
||||
<p>
|
||||
[params]
|
||||
name = 'Simba'
|
||||
|
||||
Then in the partial you use the variables with brackets like this
|
||||
{{ .Site.Params.name }} or like {{ now.Year }}
|
||||
|
||||
Check out this guide
|
||||
https://cloudcannon.com/tutorials/hugo-beginner-tutorial/hugo-templating-basics/
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user