You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exampleSite/content/basics/migration/_index.en.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,12 @@ This document shows you what's new in the latest release. For a detailed list of
20
20
21
21
## 5.15.0 (2023-05-25)
22
22
23
+
- {{% badge style="note" title=" " %}}Change{{% /badge %}} Now also compatible with Hugo {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.112.0{{% /badge %}} or higher. This does not change the minimum required Hugo version.
24
+
25
+
The [`attachments` shortcode]({{% relref "shortcodes/attachments" %}}) has compatiblity issues with newer Hugo versions. You must switch to leaf bundles or are locked to Hugo < `0.112.0` for now.
26
+
27
+
It is [planned to refactor](https://github.com/McShelby/hugo-theme-relearn/issues/22) the `attchments` shortcode in the future. This will make it possible to use the shortcode in branch bundles again but not in simple pages anymore. Sadly this most likely will come with a breaking change which requires you to make changes to your project.
28
+
23
29
- {{% badge style="note" title=" " %}}Change{{% /badge %}} The [`tabs` shortcode]({{% relref "shortcodes/tabs" %}}) has changed behavior if you haven't set the `groupid` parameter.
24
30
25
31
Formerly all tab views without a `groupid` were treated as so they belong to the same group. Now, each tab view is treated as it was given a unique id.
@@ -28,8 +34,6 @@ This document shows you what's new in the latest release. For a detailed list of
28
34
29
35
Additionally for such a use case, the whitespace between a tab outline and the code is removed if only a single code block is contained.
30
36
31
-
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Now also compatible with {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.112.0{{% /badge %}} or higher. This does not change the minimum required Hugo version.
32
-
33
37
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Besides the _tag_[taxonomy]({{% relref "cont/taxonomy" %}}) the theme now also provides the _category_ taxonomy out of the box and shows them in the content footer of each page.
Copy file name to clipboardExpand all lines: exampleSite/content/shortcodes/attachments/index.en.md
+29-22Lines changed: 29 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ The `attachments` shortcode displays a list of files attached to a page with adj
7
7
8
8
{{% attachments sort="asc" /%}}
9
9
10
+
{{% notice warning %}}
11
+
Since Hugo {{% badge color="fuchsia" icon="fab fa-hackerrank" title=" " %}}0.112.0{{% /badge %}} this only works for leaf bundles. Branch bundles and simple pages must be switched to leaf bundles or you are currently locked to a Hugo version < `0.112.0`.
12
+
{{% /notice %}}
13
+
10
14
## Usage
11
15
12
16
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
@@ -48,33 +52,35 @@ While the examples are using shortcodes with named parameter you are free to als
48
52
49
53
The shortcode lists files found in a specific folder. The name of the folder depends on your page type (either branch bundle, leaf bundle or page).
50
54
51
-
1.For simple pages, attachments must be placed in a folder named like your page and ending with `.files`.
55
+
1.If your page is a leaf bundle, attachments must be placed in a nested `index.files` folder, accordingly.
52
56
53
57
> * content
54
58
> *_index.md
55
-
> ***page.files**
56
-
> * attachment.pdf
57
-
> * page.md
59
+
> * page
60
+
> *_index.md
61
+
> ***_index.files**
62
+
> * attachment.pdf
58
63
59
-
2. If your page is a branch or leaf bundle, attachments must be placed in a nested `_index.files` or `index.files` folder, accordingly.
64
+
2. If your page is a branch bundle, attachments must be placed in a nested `_index.files` folder, accordingly.
60
65
61
-
For branch bundles:
66
+
{{% badge style="warning" title=" " %}}Warning{{% /badge %}} This is only available for Hugo < `0.112.0`
62
67
63
68
> * content
64
69
> *_index.md
65
70
> * page
66
-
> * index.md
67
-
> ***index.files**
68
-
> * attachment.pdf
71
+
> * index.md
72
+
> ***index.files**
73
+
> * attachment.pdf
69
74
70
-
For leaf bundles:
75
+
3. For simple pages, attachments must be placed in a folder named like your page and ending with `.files`.
76
+
77
+
{{% badge style="warning" title=" " %}}Warning{{% /badge %}} This is only available for Hugo < `0.112.0`
71
78
72
79
> * content
73
80
> *_index.md
74
-
> * page
75
-
> *_index.md
76
-
> ***_index.files**
77
-
> * attachment.pdf
81
+
> ***page.files**
82
+
> * attachment.pdf
83
+
> * page.md
78
84
79
85
### Multilingual
80
86
@@ -83,14 +89,15 @@ Be aware that if you use a multilingual website, you will need to have as many f
0 commit comments