Alex Shpak
7c78a39c53
Align spacings and colors in titles and buttons
2024-10-09 23:27:54 +02:00
Alex Shpak
2b7a0e87c3
Deprecate section shortcode
2024-10-08 15:50:46 +02:00
Alex Shpak
f8a0e8976b
Rewrite tabs shortcode to make them simpler
2024-10-08 15:49:39 +02:00
Alex Shpak
1bda9fb34d
Introduce i18n shortcode to add translated strings to markdown pages
2024-10-08 13:57:33 +02:00
Alex Shpak
a5fdf88017
let numbered plugin count nested headings
2024-10-04 15:35:02 +02:00
Alex Shpak
9cc0b0225d
#422 , add support for column ratios in shortcode
2024-10-04 13:36:14 +02:00
Alex Shpak
925dbd3b9f
Breaking change: switch to '{{%' decorators in shortcodes to better support shortcode-in-shortcode
2024-10-04 11:29:44 +02:00
Alex Shpak
69886cc74b
Update favicon, move to separate shortcode for customization
2024-10-04 10:59:28 +02:00
Alex Shpak
3f56e60b6d
#414 , Move commit and edit links to separate pertials to allow overwrites
2024-10-02 23:16:25 +02:00
Alex Shpak
a424a062ca
#489 : use Rel or Permalink depending on if site is multihost
2024-10-02 16:34:48 +02:00
Alex Shpak
31662538df
Remove deprecated bundle/leaf menu type
2024-10-02 16:14:53 +02:00
Alex Shpak
2f64607bc9
Update pos list styles, remove self link from post
2024-10-02 13:25:16 +02:00
Alex Shpak
35bf672b70
Use .InnerDeindent in inline shortcodes
2024-10-02 12:02:41 +02:00
anatawa12
657807f879
fix: hreflang for link rel=alternate uses site language code ( #654 )
2024-10-01 23:37:54 +02:00
Alex Shpak
55c4c45c74
Remove 'expand' shortcode, use 'details' instead
2024-10-01 23:28:57 +02:00
FuadEfendi
94edf47a12
Fix for spaces being removed during "minify" build for "mermaid" snippet ( #613 )
...
"mindmap" style is not rendered correctly with "--minify" because spaces are removed from final HTML
2024-10-01 22:24:24 +02:00
Rojax
8d56f3fe84
fix: Fixed edit page support for multilang books ( #630 )
2024-10-01 22:17:03 +02:00
Gram
460d44479b
Auto-generate ID for tabs ( #649 )
2024-10-01 22:14:16 +02:00
Andreas Deininger
e54cf3e6d1
Fix deprecation warnings, upgrade to hugo 0.134 ( #653 )
2024-10-01 21:52:34 +02:00
Alex Shpak
e104a11f42
#582 , use time.Format for date formatting
2024-05-18 12:48:43 +02:00
Alex Shpak
90eab4a917
#591 , hide search field if JS is not enabled
2024-05-18 12:44:13 +02:00
Eitan Adler
1c78b920b0
replace .Site.IsMultiLingual with hugo.IsMultilingual ( #609 )
...
# 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
2024-05-18 12:31:58 +02:00
wenbingzhang
1c42a96572
Replace flexsearch with fusejs ( #600 )
...
Co-authored-by: 张文兵 <wenbing@mgtv.com>
2024-05-18 12:29:55 +02:00
Leo Heitmann Ruiz
0baec34596
Use null alt text when icon is next to action ( #610 )
2024-04-13 11:18:14 +02:00
Alex Shpak
a111041867
#583 , fix katex and mermaid examples with raw html
2024-02-17 18:57:02 +01:00
Alex Shpak
01645fc56d
#521 : add canonical url to the header
2024-02-17 18:04:57 +01:00
Andreas Deininger
5e15ddb4f4
Fix typos ( #575 )
2024-01-10 12:40:24 +01:00
Andreas Deininger
2d7ce27f77
Fix: make use of .Site.Params.BookFavicon ( #576 )
2024-01-10 12:39:18 +01:00
Alex Shpak
118997fa92
#524 : Disable numbered plugin for non-article pages
2023-12-05 00:33:41 +01:00
Alex Shpak
3f1bcccbfb
#543 , Add summary param for section shortcode
2023-08-08 13:39:20 +02:00
Alex Shpak
16f6203f90
#455 , add BookFavicon parameter
2023-08-08 12:40:46 +02:00
nobu1308
1cebd589f6
Update meta theme-color in html-head.html ( #527 )
...
theme-color that works in both light and dark mode
2023-08-08 12:10:07 +02:00
Alex Shpak
1318a717ed
#441 , add menu.params.class support
2022-11-02 23:42:10 +01:00
Mikey Lombardi (He/Him)
6090fddebd
(MAINT) Respect LinkTitle in page metadata ( #483 )
...
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
2022-10-05 10:01:03 +02:00
Alex Shpak
1852b16d93
#440L Adjust bookHref, check .Content again, add redirect
2022-04-26 13:14:22 +02:00
Horea Christian
c2014a08a5
Add BookHref, set explicit URL for the menu ( #440 )
2022-04-26 13:10:39 +02:00
Giuseppe Masino
98d19b8e95
Make menu entries' link relative ( #421 )
...
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.
2022-02-18 17:35:02 +01:00
Alex Shpak
3a65df3a76
#408 , #410 : Use LanguageCode in templates if specified
2022-01-13 19:20:02 +01:00
Alex Shpak
8bb6d7ebec
#369 , switch to google_analytics.html internal template
2021-10-19 22:05:41 +02:00
Nikolay Raspopov
6c3d1e942a
Removed extra Google Analitics include ( #389 )
...
It's already included via "docs/html-head" partial.
2021-10-19 21:56:36 +02:00
Jack Morgan
9d4916fcc2
Allow site title to be customised via parital ( #384 )
...
* Allow site title to be customised via parital
* Modify readme to highlight available partials
* Rename template for consistency
* Move title tags to head partial
2021-09-27 09:36:02 +02:00
xhdix
f2fb37b1ad
add color-scheme to head-html ( #387 )
2021-09-26 21:47:58 +02:00
Alex Shpak
0cde2e461d
#370 : Allow markdown in details shortcode, also change markdownify to RenderString in other shortcodes
2021-08-30 14:32:11 +02:00
Alex Shpak
26de844a19
#343 , #165 : Move lang selector to left menu
2021-08-18 11:12:58 +02:00
逊狼
92d97049cf
issues 362 ( #364 )
...
* 🐞 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 58f8935d1e
.
* Revert "Revert "🐞 fix issues 352""
This reverts commit fa0d46ccf5
.
* fix issues 362
* Update columns.html
* Revert "Revert "Revert "🐞 fix issues 352"""
This reverts commit 79777a9e84
.
Co-authored-by: Alex Shpak <alex-shpak@users.noreply.github.com>
2021-07-20 16:20:43 +02:00
Alex Shpak
fde10f1319
#285 , skip integrity attribute if site is built without hostname
2021-05-21 00:50:38 +02:00
Alex Shpak
f6e8d1b693
Add deprecation notice for menu bundle
2021-05-21 00:46:53 +02:00
Nikolay Raspopov
345cb5d947
Prefer existing and translated variant of home page ( #342 )
...
* Prefer existing and translated variant of home page as the site link in the menu header.
* More compact "cond"-version of fix.
2021-05-20 22:02:31 +02:00
Alex Shpak
553d378db3
Fix lighthouse remarks: icon sizes, noopener
2021-05-20 19:00:15 +02:00
Alex Shpak
d7c644f0e7
Refactor search, prepare for pre-built indexing
2021-05-19 20:26:21 +02:00