diff options
-rw-r--r-- | assets/sass/_markdown.scss | 23 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 20 insertions, 5 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 diff --git a/layouts/index.html b/layouts/index.html index 0373851..3561075 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -13,7 +13,7 @@ <div id="post-meta"> {{ partial "post-meta.html" . }} </div> - <div id="post-summary"> + <div class="markdown-body" id="post-summary"> {{ .Summary }} </div> <div id="post-exlink"> |