10669 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
12c4491506 Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6' 2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen
cb998b3d6f Add page fragments support to Related
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`.

You can do this by:

* Configure one or more indices with type `fragments`
* The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link
page<->fragment and page<->page.
* This also will index all the fragments (heading identifiers) of the pages.

It's also possible to use type `fragments` indices in shortcode, e.g.:

```
{{ $related := site.RegularPages.Related .Page }}
```

But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts.

This commit also:

* Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with
index type `fragments` and `enableFilter` set to true.
* Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument.
* Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will
soon become usefil, e.g. in #9339.

Closes #10711
Updates #9339
Updates #10725
2023-02-21 17:56:41 +01:00
Joe Mooring
36dd5483fb
Clarify placement of 404 template 2023-02-20 17:57:24 -08:00
Joe Mooring
6f0a5f3f0f
Update urls.Parse.md 2023-02-19 13:34:08 -08:00
Joris Roovers
c8070e5787
Remove reference to Internet Explorer conditional comments (#1975)
The Internet Explorer conditional comments example was removed in 8e3f9ca64b48caffe39eba9469e9fc0daa57ca9e
2023-02-19 13:33:12 -08:00
Joe Mooring
3e3458f09d
Describe default source map behavior for js.build (#1974)
Closes #1973
2023-02-18 15:59:07 -08:00
Kiran Castellino
08c9ed09a9
Simplify ordinal abbreviation example... (#1970)
Simplify ordinal abbreviation example
2023-02-14 17:12:10 -08:00
Jakub Mikulas
b5aa8d598e
docs(markdownify): mention a context limitation (#1968) 2023-02-09 06:49:26 -08:00
Max Efremov
596af47f58
Fixing typo in configuration.md doc (#1966)
Co-authored-by: Joe Mooring <joe@mooring.com>
2023-02-07 20:46:31 -08:00
Olivér Falvai
c47cadfcbd
Fix hardWraps config spelling (#1964) 2023-02-03 13:03:47 -08:00
Joe Mooring
5739a174ee
Add detail to tabWidth highlighting option 2023-01-31 18:48:44 -08:00
Paolo Mainardi
73a4bcd1f4
doc: Add hugo-lyra search engine (#1959)
* doc: Add hugo-lyra search engine
* Fix capitalization
2023-01-31 14:11:08 -08:00
Joe Mooring
6cc9ebdfd8
Update uniq function example (#1963) 2023-01-30 11:50:25 -08:00
Joe Mooring
686a65cf69
Update uniq.md 2023-01-30 08:37:49 -08:00
Joe Mooring
096f794d0c
Update uniq.md 2023-01-30 08:37:20 -08:00
Christian Oliff
914ca0c387
remove version from SVG example (#1957)
version is deprecated and is not needed

REF: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/version
2023-01-29 18:23:25 -08:00
Bjørn Erik Pedersen
58347d41f3
Update theme 2023-01-24 14:58:17 +01:00
aaron
7c806371f6
Fix 404 error for CloudCannon community learn docs (#1955) 2023-01-21 10:02:30 -08:00
Bjørn Erik Pedersen
58e42b03dc
Update theme 2023-01-20 19:51:51 +01:00
Bjørn Erik Pedersen
fd0385ee20
Update theme 2023-01-19 11:36:03 +01:00
Bjørn Erik Pedersen
513b7a43aa
Update findRe.md 2023-01-18 09:36:25 +01:00
Bjørn Erik Pedersen
4d39137ef9
Update configuration.md 2023-01-18 09:29:46 +01:00
Bjørn Erik Pedersen
b1c3b58a74
Update configuration.md 2023-01-18 09:29:06 +01:00
Bjørn Erik Pedersen
f827cce8d8
Update configuration.md 2023-01-18 09:27:46 +01:00
Bjørn Erik Pedersen
3d72ed8fb8
netlify: Hugo 0.110.0 v0.110.0 2023-01-17 14:23:16 +01:00
Bjørn Erik Pedersen
e6f969c872
Merge branch 'feat/config-rename' 2023-01-17 14:22:28 +01:00
Bjørn Erik Pedersen
4c0b5a0b53 dos: Regen CLI docs 2023-01-17 12:52:53 +01:00
Bjørn Erik Pedersen
05d9db7055 docs: Regen docshelper 2023-01-17 12:52:08 +01:00
Bjørn Erik Pedersen
f73bdb6e58 Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382' 2023-01-17 12:51:46 +01:00
Bjørn Erik Pedersen
e83141f88d
Format config 2023-01-17 12:12:37 +01:00
Bjørn Erik Pedersen
4cadf795ef
Rename config.toml -> hugo.toml 2023-01-17 12:11:34 +01:00
Bjørn Erik Pedersen
c8aa8617f1
Move config/_default/config.toml -> config.toml
I will do a new rename in a minute, but my take on this now is that:

* Every site should have a hugo.toml (or yaml,json) file.
* In most simple setups, I would limit the use of the /config folder to environment specific things.
2023-01-17 12:09:45 +01:00
Bjørn Erik Pedersen
2943c031ab Add fill HTTP Response info into .Data in resources.GetRemote
See #10604
2023-01-16 14:44:15 +01:00
Regis Philibert
1214f6ffbf
Document cleanDestinationDir configuration setting 2023-01-14 12:21:03 -05:00
Joe Mooring
27ca65463c
Clarify .Page.Param method (#1953) 2023-01-11 13:06:41 -08:00
Jacob Zhong
3fa1792d24
Document the usage of hardWrap option for markdown rendering (#1951) 2023-01-10 17:29:39 -08:00
Bjørn Erik Pedersen
8b5afdfb47
Update theme 2023-01-09 13:05:31 +01:00
Oliver Kamer
207e7f0a05 fix docs for getting remote font
Doesn't work with `resources.Get`, need to use `.GetRemote`
2023-01-09 12:44:07 +01:00
Josh Payne
1f7094b9e6
Correct typo
Updates usage.md to correct a small typo on line 123. Changing "When are ready to deploy your site, run:" to "When you are ready to deploy your site, run:".
2023-01-06 08:35:56 -08:00
Arun Mani J
f9d6445c4d
Added missing / in URL generator (#1946)
* Added missing `/` in URL generator

In the example to render tags and topics, we use:
```html
<a href="{{ "tags" | absURL }}{{ . | urlize }}">
```
But this will produce links like `www.example.com/tagsTerm`  where `Term` is a tag. So added the missing `/`.

* Updated the tags and topics listing code

The example previously used the old `with .Params.tags` style. Updated it to use `.GetTerms "tags"` style.
2023-01-01 23:29:31 -08:00
Joe Mooring
3a22ee7d6e Remove translations
The english content remains in content/en.
2022-12-30 14:45:10 +01:00
Bjørn Erik Pedersen
b3b900f3fc
Update introduction.md 2022-12-24 15:46:41 +01:00
Karl Keefer
aca440052e
rm Forestry - facing end-of-life shortly (#1944) 2022-12-24 22:56:26 +09:00
Bjørn Erik Pedersen
af0014e146
Update scss-sass.md v0.109.0 2022-12-23 12:20:04 +01:00
Bjørn Erik Pedersen
1c43bbbc91
Merge branch 'docs/goworkspace' 2022-12-23 12:12:44 +01:00
Bjørn Erik Pedersen
d034175ca6
netlify: Hugo 0.109.0 2022-12-23 12:12:19 +01:00
Bjørn Erik Pedersen
d3a6a5c3fa
Merge branch 'tempv0.109.0' 2022-12-23 12:11:36 +01:00
Bjørn Erik Pedersen
e033dbeadc docs: Regen docs helper JSON 2022-12-23 10:15:48 +01:00
Septs
452bf675ce resource/page: Add Page.Ancestors
Fixes #10567
2022-12-23 10:14:53 +01:00
Bjørn Erik Pedersen
12edd7363c
Add some docs for workspaces 2022-12-23 09:31:36 +01:00