Commit graph

24 commits

Author SHA1 Message Date
Septs
3a216186b2 resource/page: Add Page.Ancestors
Fixes #10567
2022-12-23 10:14:53 +01:00
Bjørn Erik Pedersen
9a215d6950
Merge commit '41bc6f702a' 2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
f04cc581e1
Merge commit '00c4484c70' 2022-11-17 16:16:19 +01:00
Bjørn Erik Pedersen
4852a37653
Merge commit '3902f9a476' 2022-04-28 11:52:15 +02:00
Bjørn Erik Pedersen
c707b71cdf
Merge commit '230a495941' 2022-02-14 12:58:42 +01:00
Bjørn Erik Pedersen
098254f175
Merge commit 'a8e9fc699a' 2022-01-12 08:16:35 +01:00
Bjørn Erik Pedersen
162f41d0ef
Merge commit '32ba623541' 2021-06-08 18:47:53 +02:00
Bjørn Erik Pedersen
a1a9f088b1
Merge commit 'e48ffb7635' 2021-01-20 12:48:39 +01:00
Bjørn Erik Pedersen
3553fc533a
Merge commit '9cabb46f68' 2020-10-30 09:50:15 +01:00
Bjørn Erik Pedersen
b9e4f5898b
Merge commit '7d7771b673' 2020-09-07 21:37:51 +02:00
Bjørn Erik Pedersen
e4621446ce
Merge commit '89044b8f87' 2020-05-06 12:12:57 +02:00
Bjørn Erik Pedersen
27aef3f1fb Merge commit 'b9bd35d72e' as 'docs' 2019-10-21 10:22:28 +02:00
Bjørn Erik Pedersen
39121de4d9
docs: Replace /docs 2019-10-21 10:21:51 +02:00
Bjørn Erik Pedersen
05d0eddd2b
Merge commit '35febb2e2a' 2019-07-15 23:50:56 +02:00
Yihui Xie
7966c0b5b7 Remove the space in . RelPermalink
The same fix as 3b86b4a9f5, applied to doc.
2019-04-10 22:45:20 +02:00
Jim McDonald
ed65bda3b4 docs: Add information about summary front matter variable 2019-04-06 00:17:54 +02:00
Bjørn Erik Pedersen
597e418cb0
Make Page an interface
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct.
This is all a preparation step for issue  #5074, "pages from other data sources".

But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes.

Most notable changes:

* The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday.
  This means that any markdown will partake in the global ToC and footnote context etc.
* The Custom Output formats are now "fully virtualized". This removes many of the current limitations.
* The taxonomy list type now has a reference to the `Page` object.
  This improves the taxonomy template `.Title` situation and make common template constructs much simpler.

See #5074
Fixes #5763
Fixes #5758
Fixes #5090
Fixes #5204
Fixes #4695
Fixes #5607
Fixes #5707
Fixes #5719
Fixes #3113
Fixes #5706
Fixes #5767
Fixes #5723
Fixes #5769
Fixes #5770
Fixes #5771
Fixes #5759
Fixes #5776
Fixes #5777
Fixes #5778
2019-03-23 18:51:22 +01:00
Bjørn Erik Pedersen
ddc15ed41b
Merge commit '5e078383a7' 2019-02-01 09:01:04 +01:00
Bjørn Erik Pedersen
b17a61a605
Merge commit 'eb16165694' 2018-12-12 09:06:42 +01:00
Ricardo N Feliciano
ad705aac06 hugolib: Introduce Page.NextPage and Page.PrevPage
Introduce new page position variables in order to fix the ordering issue
of `.Next` and `.Prev` while also allowing an upgrade path via
deprecation.

`.NextInSection` becomes `.NextPageInSection`.
`.PrevInSection` becomes `.PrevPageInSection`.

`.Next` becomes a function returning `.PrevPage`.
`.Prev` becomes a function returning `.NextPage`.

Fixes #1061
2018-09-26 09:22:43 +02:00
Bjørn Erik Pedersen
1639fd20d8
Merge commit '3a44bf182f' 2018-08-08 13:54:42 +02:00
Bjørn Erik Pedersen
e6dd54943f
Merge commit '766085c2dc' 2018-08-01 10:01:49 +02:00
Bjørn Erik Pedersen
59ebc83d72
Merge commit 'b6b37a1f00' 2018-07-18 11:05:58 +02:00
Bjørn Erik Pedersen
914cc85e22
Merge commit '83bef6955e' 2018-05-04 09:44:59 +02:00