diff options
author | mms <michal@sapka.me> | 2023-11-28 16:30:46 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2023-11-28 16:30:46 +0100 |
commit | cb8bfa914161a5d3043fc8325ac0b7e9de858e52 (patch) | |
tree | 00aecb62ab87c8ab4cddd2caa7803cc52cfeb999 | |
parent | 8272b0ce655fcb445fa4c8c106d1f38c32590ee5 (diff) |
feat: add section class to body
-rw-r--r-- | layouts/_default/baseof.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b5305ab..c34bf8f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -40,7 +40,12 @@ <link rel="webmention" href="https://webmention.io/d-s.sh/webmention"> <link rel="pingback" href="https://webmention.io/d-s.sh/xmlrpc"> </head> - <body> + + {{ $section_class := "mms"}} + {{ if in .Page.Params.category "star-trek" }} + {{ $section_class = "star-trek" }} + {{ end }} + <body class="{{ $section_class }}"> <header> <div class="logo"> </div> |