Skip to content

Commit

Permalink
docs: PSJekyll.Template.IncludeMarginFont ( Fixes #69 )
Browse files Browse the repository at this point in the history
Renaming, allowing page margins, adding docs
  • Loading branch information
James Brundage committed Oct 9, 2024
1 parent f842a5e commit 75d0ad6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
This will add a style tag with the margin. It should be located in the head of the site.
If the margin parameter is provided, it will be used. Otherwise, the site.margin will be used.
If the margin parameter is provided, it will be used.
Otherwise, the `page.margin` or `site.margin` will be used.
If neither margin exists, it will default to a margin of `1em` for all elements,
and `0.5em` for all elements when the screen is less than `960px`.
#>
param(
# The margin to include.
Expand All @@ -18,6 +23,8 @@ if ($margin) {
"<style type='text/css' id='globalMargin'>$margin</style>"
} else {
@(
"{% if page.margin %}"
"<style id='globalMargin' type='text/css'>{{page.margin}}</style>"
"{% if site.margin %}"
"<style id='globalMargin' type='text/css'>{{site.margin}}</style>"
"{% else %}"
Expand Down

0 comments on commit 75d0ad6

Please sign in to comment.