From 17175c7af667f6f9da625ba35c0c3832dfeae34e Mon Sep 17 00:00:00 2001 From: Florentin Date: Thu, 16 Apr 2020 22:43:58 +0200 Subject: [PATCH 01/18] Trying ghost's responsive images --- package.json | 22 +++++++++++++++++++++- partials/post-card.hbs | 2 +- partials/top-story.hbs | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8fa2e7e..4255125 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,26 @@ "sass": "^1.26.3" }, "config": { - "posts_per_page": 6 + "posts_per_page": 6, + "image_sizes": { + "xxs": { + "width": 30 + }, + "xs": { + "width": 100 + }, + "s": { + "width": 400 + }, + "m": { + "width": 600 + }, + "l": { + "width": 1000 + }, + "xl": { + "width": 1920 + } + } } } \ No newline at end of file diff --git a/partials/post-card.hbs b/partials/post-card.hbs index 8981de7..602b4b5 100644 --- a/partials/post-card.hbs +++ b/partials/post-card.hbs @@ -1,7 +1,7 @@
{{#if feature_image}} - {{title}} + {{title}} {{/if}}
{{primary_tag.name}} diff --git a/partials/top-story.hbs b/partials/top-story.hbs index 1ce5927..f95aeea 100644 --- a/partials/top-story.hbs +++ b/partials/top-story.hbs @@ -1,5 +1,5 @@
+ style="background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url({{img_url feature_image size="xl"}}) no-repeat center / cover, #111111">

{{title}}

Lesen From 913e19b4c640beee92203c460e3be978bf4e8481 Mon Sep 17 00:00:00 2001 From: Florentin Date: Thu, 16 Apr 2020 22:47:20 +0200 Subject: [PATCH 02/18] push version number cause flo's code worked and now we can smash into production --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6bd6070..d440a48 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ingenious", "description": "The theme that powers the ingenious german tech blog ShortTech.", "demo": "https://shorttech.de", - "version": "1.2.0", + "version": "1.2.1", "scripts": { "start": "gulp && gulp develop", "build": "gulp", From d44b2fd92db41f267ad316f55875916da92a0a12 Mon Sep 17 00:00:00 2001 From: Florentin Date: Thu, 16 Apr 2020 22:50:25 +0200 Subject: [PATCH 03/18] forgot footer version number xd --- partials/footer.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partials/footer.hbs b/partials/footer.hbs index 87cb962..c48966c 100644 --- a/partials/footer.hbs +++ b/partials/footer.hbs @@ -57,7 +57,7 @@ Copyright © ShortTech.de 2016 - {{date format="YYYY"}}
  • - Version 1.2.0 + Version 1.2.1
  • Mit ❀️ & From c26f1d8a8546214e18fc1c25a24950fce3aa1217 Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 19:37:34 +0200 Subject: [PATCH 04/18] fit footer --- partials/footer.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partials/footer.hbs b/partials/footer.hbs index c48966c..6f97637 100644 --- a/partials/footer.hbs +++ b/partials/footer.hbs @@ -14,7 +14,7 @@ Impressum
  • - Datenschutz + Datenschutz
  • @@ -67,7 +67,7 @@ πŸ³οΈβ€πŸŒˆ aus Greifswald πŸ³οΈβ€πŸŒˆ aus Groß-Umstadt πŸ³οΈβ€πŸŒˆ aus Frankfurt - πŸ³οΈβ€πŸŒˆ aus Europa + πŸ³οΈβ€πŸŒˆ aus Trebsen
    From 068e2993d36f4e86beaaf96ab7a72e664b186029 Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:09:39 +0200 Subject: [PATCH 05/18] next post --- assets/scss/style.scss | 43 ++++++++++++++++++++++++++++++++++++++++++ partials/next-post.hbs | 13 +++++++++++++ post.hbs | 20 +++++++++++++++++--- 3 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 partials/next-post.hbs diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 5b65721..370ef00 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1072,6 +1072,49 @@ section.page-template { } } +aside.post-suggestions { + width: 100%; + margin-bottom: 150px; + margin-top: -30px; + + div.container { + display: flex; + flex-direction: row; + + article { + padding: 30px; + display: flex; + flex-basis: 0; + flex-grow: 1; + border-radius: 10px; + margin: 0 20px; + @include shadow(); + transition: all $default-transition-time; + + @media (prefers-color-scheme: dark) { + @include dark-shadow(); + } + + &:hover { + transform: translate(0, -0.3em); + } + + a { + text-decoration: none; + color: currentColor; + } + span { + color: #FFF; + text-transform: uppercase; + font-size: 12px; + display: block; + text-decoration: none; + font-weight: 600; + } + } + } +} + /* Error */ section.error { padding-top: 100px; diff --git a/partials/next-post.hbs b/partials/next-post.hbs new file mode 100644 index 0000000..fe53827 --- /dev/null +++ b/partials/next-post.hbs @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/post.hbs b/post.hbs index 63c39fe..35c4881 100644 --- a/post.hbs +++ b/post.hbs @@ -1,7 +1,6 @@ {{!< default}}
    - {{#post}}
    @@ -32,6 +31,21 @@ {{content}} - {{/post}} +
    + +{{/post}} - \ No newline at end of file + + \ No newline at end of file From 2c3bf69df595f1c97dc066b14ecb9afc13fcce1e Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:11:39 +0200 Subject: [PATCH 06/18] fix galleries --- assets/scss/style.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 370ef00..bf0fd34 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -873,6 +873,7 @@ section.page-template { } div.kg-gallery-row { + margin-top: 10px; display: flex; flex-direction: row; justify-content: center; @@ -900,6 +901,7 @@ section.page-template { display: block; width: 100%; height: 100%; + object-fit: cover; border-radius: 10px; @include lighter-shadow(); From 0d62d0116e4fec9b214fa683ad4048d2c97793b0 Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:12:42 +0200 Subject: [PATCH 07/18] fix auto image scaling for next posts --- partials/next-post.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partials/next-post.hbs b/partials/next-post.hbs index fe53827..d8ee02a 100644 --- a/partials/next-post.hbs +++ b/partials/next-post.hbs @@ -1,5 +1,5 @@
    From 74e5a1d5580c4397caa51db1ae2133266ee47e73 Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:13:22 +0200 Subject: [PATCH 08/18] fix galleries again --- assets/scss/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index bf0fd34..caf6301 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -883,7 +883,7 @@ section.page-template { } div.kg-gallery-image { - margin: 0 10px; + margin: 0 20px; &:first-child { margin-left: 0; From 2e19f571ea385e199da2cb27d3f3803c01eb60dc Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:16:57 +0200 Subject: [PATCH 09/18] fix galleries in the right rule --- assets/scss/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index caf6301..23aacc8 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -873,7 +873,7 @@ section.page-template { } div.kg-gallery-row { - margin-top: 10px; + margin-top: 20px; display: flex; flex-direction: row; justify-content: center; @@ -883,7 +883,7 @@ section.page-template { } div.kg-gallery-image { - margin: 0 20px; + margin: 0 10px; &:first-child { margin-left: 0; From 3d74a9c6521548d555ba4bb6057944e76562501a Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:19:05 +0200 Subject: [PATCH 10/18] remove text preview from next posts --- partials/next-post.hbs | 3 --- 1 file changed, 3 deletions(-) diff --git a/partials/next-post.hbs b/partials/next-post.hbs index d8ee02a..8fae5a5 100644 --- a/partials/next-post.hbs +++ b/partials/next-post.hbs @@ -5,9 +5,6 @@
    {{primary_tag.name}}

    {{title}}

    -

    - {{excerpt}} -

    \ No newline at end of file From 97604cb46bcb785bbf4658036cd479da0072b739 Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:20:58 +0200 Subject: [PATCH 11/18] change gradient on next posts --- partials/next-post.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partials/next-post.hbs b/partials/next-post.hbs index 8fae5a5..2bb8af2 100644 --- a/partials/next-post.hbs +++ b/partials/next-post.hbs @@ -1,5 +1,5 @@
    From 18b6d0ae2e49ca19a19f626f7b6806d45c8da5f1 Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:29:11 +0200 Subject: [PATCH 12/18] help --- assets/scss/style.scss | 27 ++++++++++++++------------- partials/next-post.hbs | 12 ++++++------ 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 23aacc8..e90c6ca 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1083,28 +1083,29 @@ aside.post-suggestions { display: flex; flex-direction: row; + + a { + text-decoration: none; + color: currentColor; + display: flex; + flex: 1; + transition: all $default-transition-time; + + &:hover { + transform: translate(0, -0.3em); + } + } + article { padding: 30px; - display: flex; - flex-basis: 0; - flex-grow: 1; border-radius: 10px; margin: 0 20px; @include shadow(); - transition: all $default-transition-time; - + @media (prefers-color-scheme: dark) { @include dark-shadow(); } - &:hover { - transform: translate(0, -0.3em); - } - - a { - text-decoration: none; - color: currentColor; - } span { color: #FFF; text-transform: uppercase; diff --git a/partials/next-post.hbs b/partials/next-post.hbs index 2bb8af2..4bc8f2a 100644 --- a/partials/next-post.hbs +++ b/partials/next-post.hbs @@ -1,10 +1,10 @@ - + \ No newline at end of file From 94df846018afe053f79dd918b6457801217012ec Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:30:21 +0200 Subject: [PATCH 13/18] fixed --- assets/scss/style.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index e90c6ca..c928d2e 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1100,6 +1100,7 @@ aside.post-suggestions { padding: 30px; border-radius: 10px; margin: 0 20px; + width: 100%; @include shadow(); @media (prefers-color-scheme: dark) { From ed63e49e34991b9fbcfab590a14cd90b003f90aa Mon Sep 17 00:00:00 2001 From: tobimori Date: Sat, 18 Apr 2020 21:34:18 +0200 Subject: [PATCH 14/18] flex flex flex --- assets/scss/style.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index c928d2e..af6cb88 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1097,6 +1097,8 @@ aside.post-suggestions { } article { + display: flex; + align-items: center; padding: 30px; border-radius: 10px; margin: 0 20px; From e8e757722dc1526ce90dee8fa4e0cbea12d887a8 Mon Sep 17 00:00:00 2001 From: thilo Date: Sat, 18 Apr 2020 21:39:42 +0200 Subject: [PATCH 15/18] fix tail hashtag on infinite scroll --- default.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.hbs b/default.hbs index b81ddc8..0d9b986 100644 --- a/default.hbs +++ b/default.hbs @@ -58,7 +58,7 @@