-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from welpo/docs/markdown-examples
📝 docs: use markdown to showcase theme's capabilities
- Loading branch information
Showing
5 changed files
with
36 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
+++ | ||
title = "Almost no JavaScript" | ||
date = "2021-04-02" | ||
date = "2022-12-03" | ||
[taxonomies] | ||
tags = ["test"] | ||
+++ | ||
|
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 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,32 @@ | ||
+++ | ||
title = "Custom shortcodes" | ||
date = "2023-02-19" | ||
[taxonomies] | ||
tags = ["test", "shortcodes"] | ||
+++ | ||
|
||
## Image shortcodes | ||
|
||
### Invertible image | ||
|
||
You can use this shortcode for graphs, line drawings, diagrams… | ||
|
||
{{ invertible_image(src="$BASE_URL/img/graph.webp", alt="Invertible graph") }} | ||
|
||
Usage: | ||
|
||
``` | ||
{{/* invertible_image(src="img/graph.webp", alt="Invertible graph") */}} | ||
``` | ||
|
||
### Dimmable image | ||
|
||
Images with too much brightness or contrast can be jarring against a dark background. Here's an example of a photograph that dims when the dark theme is active. | ||
|
||
{{ dimmable_image(src="$BASE_URL/img/desert_by_oskerwyld.webp", alt="Photograph of a desert, heavenly sky") }} | ||
|
||
Usage: | ||
|
||
``` | ||
{{/* dimmable_image(src="img/desert_by_oskerwyld.webp", alt="Photograph of a desert, heavenly sky") */}} | ||
``` |
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