Page メソッド
これらのメソッドは Page オブジェクトにおいて利用します。
これらのメソッドは Page オブジェクトにおいて利用します。
PAGE.AllTranslations ⟼ page.PagesReturns all translations of the given page, including the current language. 詳しく見る »
PAGE.AlternativeOutputFormats ⟼ page.OutputFormatsReturns a slice of OutputFormat objects, excluding the current output format, each representing one of the output formats enabled for the given page. 詳しく見る »
PAGE.BundleType ⟼ stringReturns the bundle type of the given page, or an empty string if the page is not a page bundle. 詳しく見る »
PAGE.CodeOwners ⟼ []stringReturns of slice of code owners for the given page, derived from the CODEOWNERS file in the root of the project directory. 詳しく見る »
PAGE.ContentWithoutSummary ⟼ template.HTMLReturns the rendered content of the given page, excluding the content summary. 詳しく見る »
PAGE.CurrentSection ⟼ page.PageReturns the Page object of the section in which the given page resides. 詳しく見る »
PAGE.Description ⟼ stringReturns the description of the given page as defined in front matter. 詳しく見る »
PAGE.ExpiryDate ⟼ time.TimeReturns the expiry date of the given page. 詳しく見る »
PAGE.FirstSection ⟼ page.PageReturns the Page object of the top level section of which the given page is a descendant. 詳しく見る »
PAGE.FuzzyWordCount ⟼ intReturns the number of words in the content of the given page, rounded up to the nearest multiple of 100. 詳しく見る »
PAGE.HasMenuCurrent MENU MENUENTRY ⟼ boolReports whether the given Page object matches the Page object associated with one of the child menu entries under the given menu entry in the given menu. 詳しく見る »
PAGE.HasShortcode NAME ⟼ boolReports whether the given shortcode is called by the given page. 詳しく見る »
PAGE.HeadingsFiltered ⟼ tableofcontents.HeadingsReturns a slice of headings for each page related to the given page. 詳しく見る »
PAGE1.IsAncestor PAGE2 ⟼ boolPAGE1 が PAGE2 の親ページであるかどうかを返します。 詳しく見る »
PAGE1.IsDescendant PAGE2 ⟼ boolPAGE1 が PAGE2 の子ページであるかどうかを返します。 詳しく見る »
PAGE.IsMenuCurrent MENU MENUENTRY ⟼ boolReports whether the given Page object matches the Page object associated with the given menu entry in the given menu. 詳しく見る »
PAGE.IsTranslated ⟼ boolReports whether the given page has one or more translations. 詳しく見る »
PAGE.NextInSection ⟼ page.PageReturns the next regular page in a section, relative to the given page. 詳しく見る »
PAGE.OutputFormats ⟼ []OutputFormatReturns a slice of OutputFormat objects, each representing one of the output formats enabled for the given page. 詳しく見る »
PAGE.PlainWords ⟼ []stringCalls the Plain method, splits the result into a slice of words, and returns the slice. 詳しく見る »
PAGE.PrevInSection ⟼ page.PageReturns the previous regular page in a section, relative to the given page. 詳しく見る »
PAGE.PublishDate ⟼ time.TimeReturns the publish date of the given page. 詳しく見る »
PAGE.RawContent ⟼ stringReturns the raw content of the given page. 詳しく見る »
PAGE.ReadingTime ⟼ intReturns the estimated reading time, in minutes, for the given page. 詳しく見る »
PAGE.RegularPages ⟼ page.PagesReturns a collection of regular pages within the current section. 詳しく見る »
PAGE.RegularPagesRecursive ⟼ page.PagesReturns a collection of regular pages within the current section, and regular pages within all descendant sections. 詳しく見る »
PAGE.RelPermalink ⟼ stringReturns the relative permalink of the given page. 詳しく見る »
PAGE.RenderShortcodes ⟼ template.HTMLRenders all shortcodes in the content of the given page, preserving the surrounding markup. 詳しく見る »
PAGE.RenderString [OPTIONS] MARKUP ⟼ template.HTMLRenders markup to HTML. 詳しく見る »
PAGE.TableOfContents ⟼ template.HTMLReturns a table of contents for the given page. 詳しく見る »
PAGE.TranslationKey ⟼ stringReturns the translation key of the given page. 詳しく見る »
PAGE.Translations ⟼ page.PagesReturns all translations of the given page, excluding the current language. 詳しく見る »