<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hugo-book/layouts/partials/docs/title.html, branch tweaks</title>
<subtitle>Tweaked fork of hugo-book</subtitle>
<id>https://git.marx.cafe/hugo-book/atom?h=tweaks</id>
<link rel='self' href='https://git.marx.cafe/hugo-book/atom?h=tweaks'/>
<link rel='alternate' type='text/html' href='https://git.marx.cafe/hugo-book/'/>
<updated>2022-10-05T08:01:03+00:00</updated>
<entry>
<title>(MAINT) Respect LinkTitle in page metadata (#483)</title>
<updated>2022-10-05T08:01:03+00:00</updated>
<author>
<name>Mikey Lombardi (He/Him)</name>
<email>mlombardi@microsoft.com</email>
</author>
<published>2022-10-05T08:01:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.marx.cafe/hugo-book/commit/?id=6090fddebdf7272995c9cef36edf0cff61e261b9'/>
<id>urn:sha1:6090fddebdf7272995c9cef36edf0cff61e261b9</id>
<content type='text'>
Prior to this commit, the partial for determining a page title used the
`Title` property of a page, if present, or humanized and titleized the
file name if not.

It did not use the `LinkTitle` property at all (defined in the
[front matter][01]). According to the [menu documentation][02]:

&gt; The following order is used to determine an Identifier:
&gt;
&gt; `.Name &gt; .LinkTitle &gt; .Title`
&gt;
&gt; This means that `.Title` will be used unless `.LinkTitle is present,
&gt; etc.

Similar, the documentation for [menu entry variables][03] states:

&gt; The `name` key, if set for the menu entry, sets this value. If that
&gt; key is not set, and if the menu entry is set in a page front-matter,
&gt; this value defaults to the page's `.LinkTitle`.

Together, these imply that if `.LinkTitle` is specified, it should be
preferred over `.Title` for the generated nav menu.

[01]: https://gohugo.io/content-management/front-matter/
[02]: https://gohugo.io/content-management/menus/#nesting
[03]: https://gohugo.io/variables/menus/#menu-entry-variables</content>
</entry>
<entry>
<title>#186, Make title generation cross-platform</title>
<updated>2020-03-31T21:29:21+00:00</updated>
<author>
<name>Alex Shpak</name>
<email>alex-shpak@users.noreply.github.com</email>
</author>
<published>2020-03-31T21:29:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.marx.cafe/hugo-book/commit/?id=b91e9eaea764c478b9c4e188a2711525a242efb6'/>
<id>urn:sha1:b91e9eaea764c478b9c4e188a2711525a242efb6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for hugo menus</title>
<updated>2020-02-12T21:12:41+00:00</updated>
<author>
<name>Alex Shpak</name>
<email>alex-shpak@users.noreply.github.com</email>
</author>
<published>2020-02-12T21:12:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.marx.cafe/hugo-book/commit/?id=2088c9a0cb5e41554ad450a464b54f4c628e712b'/>
<id>urn:sha1:2088c9a0cb5e41554ad450a464b54f4c628e712b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix title partial, frontmatter title was ignored</title>
<updated>2019-08-06T09:33:42+00:00</updated>
<author>
<name>Alex Shpak</name>
<email>alex-shpak@users.noreply.github.com</email>
</author>
<published>2019-07-16T14:36:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.marx.cafe/hugo-book/commit/?id=c78c67ffeda5948d701566fb21fffbd8cccdbfb2'/>
<id>urn:sha1:c78c67ffeda5948d701566fb21fffbd8cccdbfb2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Start work on search feature with lunr</title>
<updated>2019-08-06T09:33:42+00:00</updated>
<author>
<name>Alex Shpak</name>
<email>alex-shpak@users.noreply.github.com</email>
</author>
<published>2019-07-15T16:25:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.marx.cafe/hugo-book/commit/?id=dda0a0eab19457598b71f2b2b2f978b09d3f95c7'/>
<id>urn:sha1:dda0a0eab19457598b71f2b2b2f978b09d3f95c7</id>
<content type='text'>
</content>
</entry>
</feed>
