WIP: v10 #1

Draft
Soper wants to merge 0 commits from master into soper-book
Owner

Updating to hugo-book v10

Updating to hugo-book v10
Soper added 114 commits 2024-12-20 21:42:13 +00:00
Fixed issue #336. HUGO does not use `{{ hugo.Generator }}` placeholder anymore.
* Prefer existing and translated variant of home page as the site link in the menu header.
* More compact "cond"-version of fix.
Farsi/Parsi/Persian
* 🐞 fix issues 352

Solve this problem:
https://github.com/alex-shpak/hugo-book/issues/352

The Reason:
https://github.com/gohugoio/hugo/issues/8688

* fix issues 362

https://github.com/alex-shpak/hugo-book/issues/362

* Revert "🐞 fix issues 352"

This reverts commit 58f8935d1e2348d7c9aa03ca2fac8049f486ad3d.

* Revert "Revert "🐞 fix issues 352""

This reverts commit fa0d46ccf56f435a628af17798d36616a5c23d86.

* fix issues 362

* Update columns.html

* Revert "Revert "Revert "🐞 fix issues 352"""

This reverts commit 79777a9e846334b6043048b156d972212802931c.

Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
This commit does the minimal work to make the Book theme a functional
hugo module by adding the go.mod file and including instructions in
the project README for use.

Resolves #375
* Allow site title to be customised via parital
* Modify readme to highlight available partials
* Rename template for consistency
* Move title tags to head partial
It's already included via "docs/html-head" partial.
* Update README.md
* Update README.md

Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
Looks like the path `/book/` in the readme should be `/hugo-book/`.
This change allows hugo to build pages correcly when
`canonifyURLs = false` and `relativeURLs = true`.
Otherwise the links on the menu will be canonicalized regardless of
configuration.
This results in broken sites in a number of situations, such as sites
served behind a reverse-proxy that don't want to account for the prefix
they're served under.
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]:

> The following order is used to determine an Identifier:
>
> `.Name > .LinkTitle > .Title`
>
> This means that `.Title` will be used unless `.LinkTitle is present,
> etc.

Similar, the documentation for [menu entry variables][03] states:

> The `name` key, if set for the menu entry, sets this value. If that
> key is not set, and if the menu entry is set in a page front-matter,
> 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
Co-authored-by: parroty <parroty@users.noreply.github.com>
Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
Added translation for 'Expand'.
Should be 'Expandir' instead.
theme-color that works in both light and dark mode
* commit

* commit

* remove push to /public

---------

Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
* fix server worker is blocked

* Also use relURL in manifest

---------

Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
* Add direction ltr to pre > code and highlight
* Add unicode-bidi: embed;
Co-authored-by: 张文兵 <wenbing@mgtv.com>
# Problem

The warning
```
INFO  deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0
and will be removed in a future release. Use hugo.IsMultilingual
instead.``

shows up

# Solution

Follow the deprecation warning
"mindmap" style is not rendered correctly with "--minify"  because spaces are removed from final HTML
Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
This pull request has changes conflicting with the target branch.
  • README.md
  • archetypes/docs.md
  • archetypes/posts.md

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin master:master
git checkout master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Soper/hugo-book#1
No description provided.