forked from jekyll/minima
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9ae461
commit c1e0c84
Showing
11 changed files
with
209 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
layout: post | ||
categories: link syntax | ||
title: demonstrate links to image file | ||
--- | ||
|
||
1. `{% raw %}![link demo]({{ site.baseurl }}{% link assets/images/dolphin.jpg %}){% endraw %}` | ||
|
||
mixed with jekyll liquid syntax. | ||
|
||
![link demo]({{ site.baseurl }}{% link assets/images/dolphin.jpg %}) | ||
|
||
1. `![](../assets/images/dolphin.jpg)` | ||
|
||
markdown syntax. relative reference | ||
![](../assets/images/dolphin.jpg) | ||
|
||
1. `![](../assets/images/dolphin.jpg){: width="250"}` | ||
|
||
markdown relative link syntax with jekyll liquid for size definition. | ||
![](../assets/images/dolphin.jpg){: width="250"} | ||
|
||
1. {% raw %} <img src="{{ site.baseurl }}{% link assets/images/dolphin.jpg %}" width=225/>{% endraw %} | ||
|
||
html image syntax with jekyll liquid variables. | ||
absolute link reference | ||
<img src="{{ site.baseurl }}{% link assets/images/dolphin.jpg %}" width=225/> | ||
<img src="{{ site.baseurl }}{% link assets/images/dolphin.jpg %}" width=225/> | ||
<img src="{{ site.baseurl }}{% link assets/images/dolphin.jpg %}" width=225/> | ||
<img src="{{ site.baseurl }}{% link assets/images/dolphin.jpg %}" width=225/> | ||
|
||
[another demo in root folder](../demonstrate-links-in-root-folder.md.md) | ||
|
||
|
||
> ⚠️ **Do not put the images and files in `_posts` folder.** | ||
> **The relative links to static files (other than markdown file) do not works in github pages!** |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,75 @@ | ||
--- | ||
layout: post | ||
title: "link demo in post folder" | ||
title: "demonstrate links to markdown file in post folder" | ||
categories: link syntax | ||
author: | ||
- jeffatoptics | ||
--- | ||
|
||
Recommend to use the relative link markdown syntax | ||
>📝 Recommend to use the relative link markdown syntax | ||
## Relative link markdown syntax | ||
|
||
- [home](../index.md) | ||
- [next](2022-03-27-image-link-demo.md) | ||
- link to the file in root: [home](../index.md) | ||
|
||
``` | ||
- [home](../index_image.md) | ||
- [next](2002-04-21-test-date.md) | ||
``` | ||
``` | ||
[home](../index.md) | ||
``` | ||
- link to the file in _poster: [next](2022-03-27-image-link.md) | ||
``` | ||
[next](2002-04-21-test-date.md) | ||
``` | ||
## jeklly link also works | ||
## jekyll link syntax | ||
- [home url]({{ site.url }}) | ||
{% raw %} | ||
[home url]({{ site.url }}) | ||
{% endraw %} | ||
- [home base url]({{ site.baseurl }}) | ||
- [post link demo]({{ site.baseurl }}{% post_url 2022-03-26-markdown-content-styles %}) | ||
{% draw %} | ||
[home base url]({{ site.baseurl }}) | ||
{% endraw %} | ||
- [post link demo]({{ site.baseurl }}{% post_url 2022-03-26-markdown-content-styles %}): link to file in _posts | ||
{% endraw %} | ||
[post link demo]({{ site.baseurl }}{% post_url 2022-03-26-markdown-content-styles %}) | ||
{% endraw %} | ||
- baseurl value:{{ site.baseurl }} | ||
- [link to root file ]({{ site.baseurl }}{% link header1 %}): link to file in root | ||
{% endraw %} | ||
[link to root file ]({{ site.baseurl }}{% link header1 %}) | ||
{% endraw %} | ||
## jekyll variable values | ||
- baseurl value: {{ site.baseurl }} | ||
{% endraw %} | ||
baseurl value: {{ site.baseurl }} | ||
{% endraw %} | ||
- url value: {{ site.url }} | ||
- [back](2022-03-26-markdown-content-styles.md) | ||
- [next](./2022-04-27-example2%20.md) | ||
{% endraw %} | ||
url value: {{ site.url }} | ||
{% endraw %} | ||
[image link demo](2022-03-27-image-link.md) | ||
Oops, something went wrong.