mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-19 18:15:46 +00:00
Rework introduction to templating
This commit is contained in:
1 parent
64154fb8fa
commit
c4611eab52
17 files changed
+532
-651
No files matched your search
@@ -37,7 +37,7 @@ Place this in your baseof.html template:
|
||||
{{ $m := dict
|
||||
"hugo_version" hugo.Version
|
||||
"build_date" (now.Format $rfc3339)
|
||||
"last_modified" (site.LastChange.Format $rfc3339)
|
||||
"last_modified" (site.Lastmod.Format $rfc3339)
|
||||
}}
|
||||
{{ $json := jsonify $m }}
|
||||
{{ $r := resources.FromString "site.json" $json }}
|
||||
@@ -61,7 +61,7 @@ Combine `resources.FromString` with [`resources.ExecuteAsTemplate`] if your stri
|
||||
{{ $m := dict
|
||||
"hugo_version" hugo.Version
|
||||
"build_date" (now.Format $rfc3339)
|
||||
"last_modified" (site.LastChange.Format $rfc3339)
|
||||
"last_modified" (site.Lastmod.Format $rfc3339)
|
||||
}}
|
||||
{{ $json := jsonify $m }}
|
||||
`
|
||||
|
||||
Reference in new issue
Block a user