.Site.Data.Tags - Data dump
range $tag, $options := .Site.Data.tags
about
{
"Active": true,
"Description": [
"Pages that give sidewide a bit more info"
],
"Instagram": "https://www.instagram.com/about/",
"Title": "About",
"Website": null,
"Weight": 1
}
data
{
"Active": true,
"Description": [
"Data fron JSON, YAML, ..."
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Data",
"Website": "https://www.google.com/search?q=gohugo+data+json+yaml",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
}
empty
{}
goal
{
"Active": true,
"Description": [
"If this works, I will be happy !"
],
"Title": "Goal of this test",
"Website": "https://www.google.com/search?q=goal",
"Weight": 20,
"icon": "/fontawesomeicons/1687991394642.png"
}
nok
{
"Active": true,
"Description": [
"not ok - a bit like draft",
"in production this tag shoukd not be visible"
],
"Facebook": "https://www.facebook.com/nok",
"Instagram": null,
"Title": "NOK",
"Website": "https://www.google.com/search?q=nok",
"Weight": 5
}
notused
{
"Active": true,
"Description": [
"For this tag there is a data yaml file, but the tag is not used on the site",
"This is the inverse of the tag thistagwillnothaveadatayamlfile"
],
"Facebook": "https://www.facebook.com/notused",
"Instagram": null,
"Title": "NotUsed",
"Website": "https://www.google.com/search?q=not+used",
"Weight": 5
}
overview
{
"Active": true,
"Description": [
"Let's start here"
],
"Title": "Overview",
"Weight": 100
}
sitedatatags
{
"Active": true,
"Description": [
"you are looking at it = extra Tag info fron data files"
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Site Data Tags",
"Website": "https://www.google.com/search?q=gohugo+taxonomy+data",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
}
test
{
"Active": true,
"Description": [
"Test test test and more tests"
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Test",
"Website": "https://www.google.com/search?q=test",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
}
uniq
{
"Active": true,
"Description": [
"hugo has an uniq function, but no uniq+count"
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Uniq and count",
"Website": "https://www.google.com/search?q=gohugo+uniq+count",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
}
or as one dump of .Site.Data.tags
{
"about": {
"Active": true,
"Description": [
"Pages that give sidewide a bit more info"
],
"Instagram": "https://www.instagram.com/about/",
"Title": "About",
"Website": null,
"Weight": 1
},
"data": {
"Active": true,
"Description": [
"Data fron JSON, YAML, ..."
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Data",
"Website": "https://www.google.com/search?q=gohugo+data+json+yaml",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
},
"empty": {},
"goal": {
"Active": true,
"Description": [
"If this works, I will be happy !"
],
"Title": "Goal of this test",
"Website": "https://www.google.com/search?q=goal",
"Weight": 20,
"icon": "/fontawesomeicons/1687991394642.png"
},
"nok": {
"Active": true,
"Description": [
"not ok - a bit like draft",
"in production this tag shoukd not be visible"
],
"Facebook": "https://www.facebook.com/nok",
"Instagram": null,
"Title": "NOK",
"Website": "https://www.google.com/search?q=nok",
"Weight": 5
},
"notused": {
"Active": true,
"Description": [
"For this tag there is a data yaml file, but the tag is not used on the site",
"This is the inverse of the tag thistagwillnothaveadatayamlfile"
],
"Facebook": "https://www.facebook.com/notused",
"Instagram": null,
"Title": "NotUsed",
"Website": "https://www.google.com/search?q=not+used",
"Weight": 5
},
"overview": {
"Active": true,
"Description": [
"Let's start here"
],
"Title": "Overview",
"Weight": 100
},
"sitedatatags": {
"Active": true,
"Description": [
"you are looking at it = extra Tag info fron data files"
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Site Data Tags",
"Website": "https://www.google.com/search?q=gohugo+taxonomy+data",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
},
"test": {
"Active": true,
"Description": [
"Test test test and more tests"
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Test",
"Website": "https://www.google.com/search?q=test",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
},
"uniq": {
"Active": true,
"Description": [
"hugo has an uniq function, but no uniq+count"
],
"Facebook": "https://www.facebook.com/test",
"Instagram": null,
"Title": "Uniq and count",
"Website": "https://www.google.com/search?q=gohugo+uniq+count",
"Weight": 10,
"icon": "/fontawesomeicons/1687991370258.png"
}
}