File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 25
25
You can provide the relative path to the file, like ` subfolder/example-page.md `
26
26
and Jekyll will handle parsing it. For example:
27
27
28
- - [ here is that link] ( subfolder/example-page.md )
28
+ - [ here is that link] ( subfolder/example-page )
29
29
30
30
And {% include doc.html name="here" path="subfolder/example-page" %} is the same link,
31
31
but generated with the include statement:
Original file line number Diff line number Diff line change @@ -77,14 +77,20 @@ getting started page for sherlock:
77
77
{% raw %}[example](clusters/sherlock/getting-started.md){% endraw %}
78
78
```
79
79
80
- [ Here] ( example-page.md ) is an example link to a relative path of a file (` example-page.md ` )
80
+ [ Here] ( example-page ) is an example link to a relative path of a file (` example-page.md ` )
81
81
in the same directory, and from that page you can test linking to a subfoldr.
82
82
In the case of not having a subfolder, we could write the link out directly:
83
83
84
84
```
85
85
{% raw %}[example]({{ site.baseurl }}/docs/clusters/sherlock/getting-started.md){% endraw %}
86
86
```
87
87
88
+ or just put the relative path:
89
+
90
+ ```
91
+ {% raw %}[Here](example-page){% endraw %}
92
+ ```
93
+
88
94
or better, there is a shortand trick! We can use the provided "includes"
89
95
template to do the same based on the path to create a link:
90
96
You can’t perform that action at this time.
0 commit comments