Hugo Templates
Variables
Custom Variables
Site Title: Acme Corporation
Page Title: Template Page
Data Types
Integer: 2
Float: 3.14
Boolean: false
String: hello
Slice: [foo bar buzz]
Dict: map[h:20 key1:val1 w:10]
Time: 2020-01-01 00:00:00 +0800 +0800
Scratch: {map[message:Hello] {{0 0} 0 0 0 0}}
Getter: Hello
Updated: Hello World
Dict: map[english:Hello World french:Bonjour le monde]
Functions
Boolean Functions
5 < 3 : false
5 > 3 : true
5 ≥ 3 : true
5 ≤ 3 : false
5 = 3 : false
5 ≠ 3 : true
Logical Functions
true and false : false
true or false : true
not true : false
Arithmetic Functions
2 + 3 : 5
2 - 3 : -1
2 x 3 : 6
2 ÷ 3 : 0
2 ÷ 3 : 0.6666666666666666
2 % 3 : 2
2 % 3? : false
Nested Functions
5/(2 + (3 x 2.0)) : 0.625
Piped Functions
5/(2 + (3 x 2.0)) : 0.625
Nested + Piped Hybrid
5/(2 + (3 x 2.0)) : 0.625
Conditionals
If
false is false.
With
test is the value of the condition
Cond
page
Loops
All website pages:
- About Us
- manufacturing
- Our Manufacturing Process Part IV
- Series
- circle
- manufacturing
- manufacturing
- Our Manufacturing Process Part III
- Tags
- Our Manufacturing Process Part II
- square
- line
- Our Manufacturing Process Part I
-
-
-
-
-
-
- 1d
- 2d
- Acme Corporation
- Building Squares
- Categories
- Circle
- Circle
- circle
- Contact Us
- Curve
- Design
- general
- Line
- line
- Our Store
- Privacy Policy
- product
- public
- quadrilateral
- Rectangle
- Rhombus
- shape
- shape
- Shaper
- Square
- square
- Square License
- style
- Template Page
- Terms of Use
- triangle
- Tropical triangles
Range context
- About Us @ Acme Corporation
- manufacturing @ Acme Corporation
- Our Manufacturing Process Part IV @ Acme Corporation
- Series @ Acme Corporation
- circle @ Acme Corporation
- manufacturing @ Acme Corporation
- manufacturing @ Acme Corporation
- Our Manufacturing Process Part III @ Acme Corporation
- Tags @ Acme Corporation
- Our Manufacturing Process Part II @ Acme Corporation
- square @ Acme Corporation
- line @ Acme Corporation
- Our Manufacturing Process Part I @ Acme Corporation
- @ Acme Corporation
- @ Acme Corporation
- @ Acme Corporation
- @ Acme Corporation
- @ Acme Corporation
- @ Acme Corporation
- 1d @ Acme Corporation
- 2d @ Acme Corporation
- Acme Corporation @ Acme Corporation
- Building Squares @ Acme Corporation
- Categories @ Acme Corporation
- Circle @ Acme Corporation
- Circle @ Acme Corporation
- circle @ Acme Corporation
- Contact Us @ Acme Corporation
- Curve @ Acme Corporation
- Design @ Acme Corporation
- general @ Acme Corporation
- Line @ Acme Corporation
- line @ Acme Corporation
- Our Store @ Acme Corporation
- Privacy Policy @ Acme Corporation
- product @ Acme Corporation
- public @ Acme Corporation
- quadrilateral @ Acme Corporation
- Rectangle @ Acme Corporation
- Rhombus @ Acme Corporation
- shape @ Acme Corporation
- shape @ Acme Corporation
- Shaper @ Acme Corporation
- Square @ Acme Corporation
- square @ Acme Corporation
- Square License @ Acme Corporation
- style @ Acme Corporation
- Template Page @ Acme Corporation
- Terms of Use @ Acme Corporation
- triangle @ Acme Corporation
- Tropical triangles @ Acme Corporation
Debugging
&hugolib.SiteInfo{Authors:page.AuthorList(nil), Social:hugolib.SiteSocial(nil), hugoInfo:hugo.Info{CommitHash:"1798bd3f", BuildDate:"2021-12-23T15:33:34Z", Environment:"production"}, title:"Acme Corporation", RSSLink:"", Author:map[string]interface {}{"email":"contact@example.org", "facebook":"https://facebook.com/example", "hours":"**Mon-Fri:** 9:00AM - 6:00PM, ET", "location":"New York", "name":"Acme Corporation", "phone":"(999) 999-9999", "twitter":"https://twitter.com/example"}, LanguageCode:"en-us", Copyright:"", permalinks:map[string]string{}, LanguagePrefix:"", Languages:langs.Languages{(*langs.Language)(0xc000869ee0), (*langs.Language)(0xc000876340)}, BuildDrafts:false, canonifyURLs:false, relativeURLs:false, uglyURLs:(func(page.Page) bool)(0x163ea20), owner:(*hugolib.HugoSites)(0xc0006f9ef0), s:(*hugolib.Site)(0xc00083b680), language:(*langs.Language)(0xc000869ee0), defaultContentLanguageInSubdir:false, sectionPagesMenu:""}
Image Processing & Manipulation