diff options
author | amzrk2 | 2020-04-13 22:52:22 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-13 22:52:22 +0800 |
commit | 7ab81f0fdc8d6eb56eb48b78b86a4b581101d9e2 (patch) | |
tree | e6abebdb5a2479e3a9935a3083a8d456cbe490b1 /assets | |
parent | b5145ea13b3927a49730674c93a8421220c7c1ca (diff) | |
download | hugo-theme-fuji-7ab81f0fdc8d6eb56eb48b78b86a4b581101d9e2.tar.gz hugo-theme-fuji-7ab81f0fdc8d6eb56eb48b78b86a4b581101d9e2.tar.bz2 hugo-theme-fuji-7ab81f0fdc8d6eb56eb48b78b86a4b581101d9e2.zip |
Apply primer CSS to post summary
Diffstat (limited to 'assets')
-rw-r--r-- | assets/sass/_markdown.scss | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/assets/sass/_markdown.scss b/assets/sass/_markdown.scss index c6deabb..5ca2b70 100644 --- a/assets/sass/_markdown.scss +++ b/assets/sass/_markdown.scss @@ -1,8 +1,6 @@ // primer CSS markdown color remap -#post-content { - &.markdown-body { - font-family: inherit !important; - } +@mixin markdown-remap { + font-family: inherit !important; h1, h2, h3, h4, h5, h6 { color: $color-primary; @@ -35,4 +33,21 @@ } @include link-secondary(); +} + +#post-content { + &.markdown-body { + @include markdown-remap(); + } +} + +#post-summary { + &.markdown-body { + @include markdown-remap(); + + // do not show heads in summary + h1, h2, h3, h4, h5, h6 { + display: none; + } + } }
\ No newline at end of file |