Commit Graph

10 Commits

Author SHA1 Message Date
Joe Mooring 0c8857e8f9 Adjust code and code-toggle shortcodes 2023-11-10 21:17:28 -08:00
Joe Mooring 8657804ba4 Update theme 2023-11-05 17:43:27 -08:00
Joe Mooring 723a827fdc Namespace functions and methods 2023-11-04 21:01:42 -07:00
Bjørn Erik Pedersen 420f7aa698 Add all config to docshelper.json
Also consolidate so the mediaTypes and outputFormats are listed once only.

Fixes #11328
2023-08-07 13:42:54 +02:00
Joe Mooring 73197046fb Change config.xxx to hugo.xxx throughout the documentation (#2090)
- Updates copy
- Updates code-toggle shortcode
2023-05-23 20:53:44 -07:00
Joe Mooring fb33bf59bd Update code-toggle shortcode
Simplify bool param logic
2023-03-27 15:05:07 -07:00
Joe Mooring 8f8bcdefc0 Add frontmatter param to code-toggle shortcode (#1601)
Closes #1598
2021-12-08 18:51:26 -08:00
Joe Mooring 2d0f38978b Remove blank lines from code-toggle output (#1564) 2021-11-04 07:10:53 -07:00
Bjørn Erik Pedersen ef73ffc3bc Misc config loading fixes
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster:

```
BenchmarkDefaultConfigProvider/Viper-16         	  252418	      4546 ns/op	    2720 B/op	      30 allocs/op
BenchmarkDefaultConfigProvider/Custom-16        	  450756	      2651 ns/op	    1008 B/op	       6 allocs/op
```

Fixes #8633
Fixes #8618
Fixes #8630
Updates #8591
Closes #6680
Closes #5192
2021-06-14 17:00:32 +02:00
Bjørn Erik Pedersen ded74f0982 Add Goldmark as the new default markdown handler
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo.

If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration:

```toml
[markup]
defaultMarkdownHandler="blackfriday"
```

Fixes #5963
Fixes #1778
Fixes #6355
2019-11-23 14:12:24 +01:00