Choose the timeline
or timeline-labeled
tag
-
Requires
+
at the beginning of each line:-
each event has 3
+
s in total: 1 for time, 1 for title and 1 for content -
you can separate them with empty lines if it's easier for you to write
-
-
-
- each event has a corresponding label (
date
,title
andcontent
) that starts the line - you can separate them with empty lines if it's easier for you to write
- Example
- each event has a corresponding label (
You can use []
at the beginning of the code-block to add pre-written classes or your own classes to the wrapper.
Example: [spaced-paragraph, your-class, even-more]
Can be used for timeline
and timeline-labeled
tag
Example:
```timeline-labeled
[line-5, body-3, active-color-interactive-accent-hover]
date: 13th April 1969
title: Enim sit amet venenatis urna
content:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
```
Use this file as a snippet using this template!
Using pre-written classes for line
, body
and the active color
:
-
- preview (soon, for now test it in obsidian)
- classes:
- line-2
- line-3
- line-4
- line-5
-
- preview (soon, for now test it in obsidian)
- classes:
- body-2
- body-3
- body-4
-
- it uses obsidian's css variables as active colors, so it matches the theme
- default active color is background-modifier-success
- if you want your own color use
--timeline-active-color
css variable attached to.timeline
class.timeline --timeline-active-color: #00c137
- preview (soon, for now test it in obsidian)
- classes:
- active-color-background-modifier-success
- active-color-background-modifier-error
- active-color-background-modifier-error-hover
- active-color-text-accent
- active-color-text-accent-hover
- active-color-text-error
- active-color-text-error-hover
- active-color-text-selection
- active-color-interactive-accent
- active-color-interactive-accent-hover
- active-color-interactive-success