hugo/resources/page
Bjørn Erik Pedersen 5185fb065b hugolib: Allow relative URLs in front matter
Before this commit you would have to do this in multilingual setups:

```
---
title: "Custom!"
url: "/jp/custom/foo"
---
```

This commit allows for relative URLs, e.g:

```
---
title: "Custom!"
url: "custom/foo"
---
```

Which is obviously easier and more portable.

The meaning of relative may change to include more in the future (e.g. role based access).

Fixes #5704
2019-04-02 10:33:15 +02:00
..
page_generate Avoid nilpointer on no File on Page 2019-03-26 10:20:40 +01:00
pagemeta Make Page an interface 2019-03-23 18:51:22 +01:00
page.go resources/page: Re-introduce .Page.Page 2019-03-25 07:55:46 +01:00
page_author.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_data.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_data_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_kinds.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_kinds_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_marshaljson.autogen.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_nop.go resources/page: Re-introduce .Page.Page 2019-03-25 07:55:46 +01:00
page_outputformat.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_paths.go hugolib: Allow relative URLs in front matter 2019-04-02 10:33:15 +02:00
page_paths_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
page_wrappers.autogen.go Make Page an interface 2019-03-23 18:51:22 +01:00
pagegroup.go Make Page an interface 2019-03-23 18:51:22 +01:00
pagegroup_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_cache.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_cache_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_language_merge.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_prev_next.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_prev_next_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_related.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_related_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
pages_sort.go Avoid nilpointer on no File on Page 2019-03-26 10:20:40 +01:00
pages_sort_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
pagination.go Make Page an interface 2019-03-23 18:51:22 +01:00
pagination_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
permalinks.go Make Page an interface 2019-03-23 18:51:22 +01:00
permalinks_test.go Make Page an interface 2019-03-23 18:51:22 +01:00
site.go Make Page an interface 2019-03-23 18:51:22 +01:00
testhelpers_test.go resources/page: Re-introduce .Page.Page 2019-03-25 07:55:46 +01:00
weighted.go Make Page an interface 2019-03-23 18:51:22 +01:00
zero_file.autogen.go Avoid nilpointer on no File on Page 2019-03-26 10:20:40 +01:00