diff --git a/assets/css/common/article.css b/assets/css/common/article.css index 8ec12db..639ba38 100644 --- a/assets/css/common/article.css +++ b/assets/css/common/article.css @@ -1,7 +1,3 @@ -.gh-article:not(.no-image) .gh-article-header>* { - grid-column: wide-start / wide-end; -} - .gh-article-meta { margin-top: 2rem; font-size: 1.2rem; @@ -16,7 +12,6 @@ } .gh-article-title { - font-size: 7.4rem; font-weight: 600; line-height: 1; } @@ -24,7 +19,6 @@ .gh-article-excerpt { max-width: 920px; margin-top: 1.6rem; - font-size: 2.8rem; line-height: 1.35; color: var(--color-darker-gray); } @@ -39,13 +33,3 @@ margin-top: 24px; border-top: 0; } - -@media (max-width: 767px) { - .gh-article-title { - font-size: 4.2rem; - } - - .gh-article-excerpt { - font-size: 2.2rem; - } -} diff --git a/assets/css/image/article.css b/assets/css/image/article.css new file mode 100644 index 0000000..34ff04d --- /dev/null +++ b/assets/css/image/article.css @@ -0,0 +1,12 @@ +.gh-article-image { + margin-top: 0; +} + +.gh-article-title { + font-size: 3.2rem; + margin-top: 64px; +} + +.gh-article-excerpt { + font-size: 1.8rem; +} diff --git a/assets/css/image/main.css b/assets/css/image/main.css index c28b3ec..23f2a2c 100644 --- a/assets/css/image/main.css +++ b/assets/css/image/main.css @@ -13,6 +13,7 @@ @import "../lib/commento.css"; @import "../lib/tocbot.css"; +@import "article.css"; @import "feed.css"; @import "masonry.css"; @import "pswp.css"; diff --git a/assets/css/text/article.css b/assets/css/text/article.css new file mode 100644 index 0000000..df14473 --- /dev/null +++ b/assets/css/text/article.css @@ -0,0 +1,21 @@ +.gh-article:not(.no-image) .gh-article-header>* { + grid-column: wide-start / wide-end; +} + +.gh-article-title { + font-size: 7.4rem; +} + +.gh-article-excerpt { + font-size: 2.8rem; +} + +@media (max-width: 767px) { + .gh-article-title { + font-size: 4.2rem; + } + + .gh-article-excerpt { + font-size: 2.2rem; + } +} diff --git a/assets/css/text/main.css b/assets/css/text/main.css index d145983..50f730c 100644 --- a/assets/css/text/main.css +++ b/assets/css/text/main.css @@ -13,5 +13,6 @@ @import "../lib/commento.css"; @import "../lib/tocbot.css"; +@import "article.css"; @import "card.css"; @import "navigation.css"; diff --git a/page.hbs b/page.hbs index bb21ee6..3ecd5a6 100644 --- a/page.hbs +++ b/page.hbs @@ -6,13 +6,19 @@ {{#match @page.show_title_and_feature_image}}
+ {{#match @custom.mode "Image-based"}} + {{> common/feature-image}} + {{/match}} +

{{title}}

{{#if custom_excerpt}}

{{custom_excerpt}}

{{/if}} + {{#match @custom.mode "Text-based"}} {{> common/feature-image}} + {{/match}}
{{/match}} diff --git a/post.hbs b/post.hbs index d50f86b..73944e4 100644 --- a/post.hbs +++ b/post.hbs @@ -5,6 +5,10 @@
+ {{#match @custom.mode "Image-based"}} + {{> common/feature-image}} + {{/match}} +

{{title}}

{{#if custom_excerpt}} @@ -16,10 +20,14 @@ — {{/if}} + {{reading_time}} + — + {{#match @custom.mode "Text-based"}} {{> common/feature-image}} + {{/match}}