mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 04:18:46 +00:00
content: Consolidate configuration documentation
This commit is contained in:
1 parent
727ef6f665
commit
b6cae5cbc6
911 files changed
+10902
-11171
No files matched your search
@@ -3,10 +3,11 @@ title: Page
|
||||
description: Returns the Page object from which the shortcode was called.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related: []
|
||||
returnType: hugolib.pageForShortcode
|
||||
signatures: [SHORTCODE.Page]
|
||||
params:
|
||||
functions_and_methods:
|
||||
related: []
|
||||
returnType: hugolib.pageForShortcode
|
||||
signatures: [SHORTCODE.Page]
|
||||
---
|
||||
|
||||
With this content:
|
||||
@@ -26,7 +27,7 @@ Calling this shortcode:
|
||||
|
||||
We can access the front matter values using the `Page` method:
|
||||
|
||||
{{< code file=layouts/shortcodes/book-details.html >}}
|
||||
{{< code file=layouts/shortcodes/book-details.html >}}
|
||||
<ul>
|
||||
<li>Title: {{ .Page.Title }}</li>
|
||||
<li>Author: {{ .Page.Params.author }}</li>
|
||||
|
||||
Reference in new issue
Block a user