28 Commits

Author SHA1 Message Date
Christian Oliff
d86e10b1e7 HTTPS links in Docs
I didn't touch old release notes and some code examples.
All links were tested and in some cases updated to prevent redirects where URLs have changed.
2019-07-30 10:31:12 -04:00
Jaime Martínez Rincón
d451e7362a Update documentation on page variables
* Update documentation on page variables

* Add resources variable

* Add aliases variable
2019-06-13 17:41:46 +02:00
Bogdan Guna
7145e29e24 Fixes bad URL in menus.md for .hasChildren
* part of issue #814
2019-06-13 17:24:51 +02:00
Victor Massé
0edbd59c48 add warning about .Hugo variable being deprecated 2019-06-12 13:55:36 -04:00
Yihui Xie
fb5f75e9aa Remove the space in . RelPermalink
The same fix as 3b86b4a9f5ce010c9714d813d5b8ecddda22c69f, applied to doc.
2019-04-10 22:45:20 +02:00
Jim McDonald
86a190c920 docs: Add information about summary front matter variable 2019-04-06 00:17:54 +02:00
Bjørn Erik Pedersen
8cb775be22 Merge commit 'c2037f0c9a3a35b9db9c404f6b5f94ec8b690a53' 2019-03-26 18:41:36 +01:00
Bjørn Erik Pedersen
5bc64bf440 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
357bfca431
Update files.md
Closes https://github.com/gohugoio/hugo/issues/5741
2019-03-07 22:28:17 +01:00
Bjørn Erik Pedersen
2d6246bcd3
Remove some deprecated site variables 2019-01-28 10:40:11 +01:00
Regis Philibert
b922ae7d55
This adds documentation to the new configDir/Environment logic from .53 (#729)
Adds a config entry to Directory Structure
Adds a Hugo.Environment entry to variables/hugo
Edit the configuration page to wrap first part under a Configuration File heading and introduce a second heading, Configuration Directory to present the feature.
2019-01-22 14:27:14 -05:00
Kaushal Modi
b73dcb9adc Consistently use "posts" as section name in examples
While Hugo does not care if the section is named "post" or "posts",
this commit normalizes the whole Hugo documentation to use "posts"
when used as an example for a section name to prevent user confusion.

Fixes https://github.com/gohugoio/hugoDocs/issues/720.

Also highlight the use of `site.Params.mainSections`.
2019-01-14 13:23:53 -05:00
Bjørn Erik Pedersen
2abd031ae7
Update page.md 2019-01-04 17:37:41 +01:00
Bjørn Erik Pedersen
b332f7b94a
Update page.md 2019-01-04 17:35:02 +01:00
Bjørn Erik Pedersen
b8f84ac594 hugolib: Add .Name as a shortcode variable
Fixes #5546
2018-12-21 09:51:15 +01:00
Bjørn Erik Pedersen
0305e3c6b7
Document .File.ContentBaseName 2018-11-29 21:14:50 +01:00
Bjørn Erik Pedersen
158df174ad
Document .Sites and .Sites.First
Fixes #657
2018-11-29 10:21:52 +01:00
Bjørn Erik Pedersen
3b2b172b98 docs: Document shortcode error handling
Closes https://github.com/gohugoio/hugoDocs/issues/660
2018-11-07 10:38:58 +01:00
Ricardo N Feliciano
d758ef94a7 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
069828db89
Update git.md 2018-08-24 18:57:13 +02:00
Bjørn Erik Pedersen
fd378e66aa
Fix alias redirect loop 2018-08-04 14:08:52 +02:00
Regis Philibert
cb88c3185b
Added .Site.Home to Site Variiables (#541)
https://github.com/gohugoio/hugoDocs/issues/539
2018-07-23 12:16:11 -04:00
Kaushal Modi
a28255bf32 Clarify the meaning of .Pages vs .Site.Pages
Fixes https://github.com/gohugoio/hugoDocs/issues/398.
2018-07-20 11:05:03 -04:00
Kaushal Modi
50df8bfb83 Replace .Data.Pages with .Pages 2018-07-16 22:58:22 +02:00
Kaushal Modi
c0430f8f97 Update MenuEntry properties documentation
Fixes https://github.com/gohugoio/hugoDocs/issues/423
2018-07-11 17:36:37 -04:00
Bjørn Erik Pedersen
034fa62a73
Update shortcodes.md 2018-05-27 21:36:53 +02:00
Bjørn Erik Pedersen
10ea793355
Document .Ordinal on shortcode 2018-05-27 21:35:14 +02:00
Anthony Fok
77578f5bfc
Move content/ into new contentDir content/en/
in preparation for adding new translations such as Chinese.

Paths for "readfile" shortcode are adjusted accordingly.

See #461
2018-05-01 11:23:28 -06:00