Horizontal Rule
To separate sections of text, you can inject an HR widget.
Options
The following options are supported by this widget.
- size
Specify the size in pixels of the horizontal rule.
ex: 3px
- color
Specify the color of the horizontal rule.
ex: cornflowerblue
- opacity
Specify the opacity of the horizontal rule.
ex: 75%
- config
(OPTIONAL) A copy of the config hash. See the snippet that follows. This option reduces the number of times the site configuration values are queried, speding up the process of building the site.
Usage
There are several ways to incorporate this widget into your pages.
Inline
If you have more than one countdown target datetime, you can specify each directly on the widget.
Page Metadata
If you want to have multiple hr widgets on the same page, you can set the style values in the page's metadata.
Site Config
If you want to have multiple hr widgets on the same page, you can set the style values in the page's metadata. If the countdown widget is used across the site in multiple places, you can store the target datetime in the site config.
In the 'config.yml' file:
In the 'my-page.md' file:
In the 'config.yml' file:
In the 'my-page.md' file: