Debian Codegraph @

docs/additional.md

raw
1 (special)=
2
3 # Additional
4
5 These are additional components that are not part of the standard Materials Design or Bootstrap systems.
6
7 ## `article-info`
8
9 This directive is used to display a block of information about an article,
10 normally positioned just below the title of the article (shown below with non-standard outline).
11
12 ```{article-info}
13 :avatar: images/ebp-logo.png
14 :avatar-link: https://executablebooks.org/
15 :avatar-outline: muted
16 :author: Executable Books
17 :date: "Jul 24, 2021"
18 :read-time: "5 min read"
19 :class-container: sd-p-2 sd-outline-muted sd-rounded-1
20 ```
21
22 `````{dropdown-syntax}
23
24 ````{tab-set-code}
25 ```{literalinclude} ./snippets/myst/article-info.txt
26 :language: markdown
27 ```
28 ```{literalinclude} ./snippets/rst/article-info.txt
29 :language: rst
30 ```
31 ````
32 `````
33
34 The `author`, `date`, and `read-time` options are parsed as syntax,
35 so you can use substitutions like:
36
37 - `date`
38 - MyST: `` :date: "{sub-ref}`today`" ``
39 - RST: `:data: |today|`
40 - `read-time`
41 - MyST: `` :read-time: "{sub-ref}`wordcount-minutes` min read" ``
42
43 ### options
44
45 avatar
46 : A URI (relative file path or URL) to an image for use as the avatar (a user portrait, logo or branded graphic).
47
48 avatar-alt
49 : Alternative text for the avatar.
50
51 avatar-link
52 : A URL to link to if the avatar icon is clicked.
53
54 avatar-outline
55 : A semantic color to use for the outline of the avatar.
56
57 author
58 : Text to display in the author of of the article.
59
60 date
61 : Text to display in the date of the article.
62
63 read-time
64 : Text to indicate the time to read the article.
65
66 class-container
67 : Additional CSS classes for the container element.
68
69 class-avatar
70 : Additional CSS classes for the avatar element.