diff --git a/index.hbs b/index.hbs index 246f073..201531f 100644 --- a/index.hbs +++ b/index.hbs @@ -60,7 +60,9 @@ into the {body} of the default.hbs template --}} {{t "Featured"}} -

{{title}}

+

+ {{title}} +

{{date published_at timeago="true"}} diff --git a/package.json b/package.json index 7158aab..e0a2239 100644 --- a/package.json +++ b/package.json @@ -54,5 +54,5 @@ "desktop": "assets/screenshot-desktop.jpg", "mobile": "assets/screenshot-mobile.jpg" }, - "version": "0.6.1" + "version": "0.6.2" } diff --git a/page-authors.hbs b/page-authors.hbs index f08191b..0cbf6ea 100644 --- a/page-authors.hbs +++ b/page-authors.hbs @@ -38,7 +38,9 @@ into the {body} of the default.hbs template --}}
{{#if bio}} -

{{bio}}

+

+ {{bio}} +

{{/if}}
diff --git a/partials/header.hbs b/partials/header.hbs index d343fcb..42850cb 100644 --- a/partials/header.hbs +++ b/partials/header.hbs @@ -70,7 +70,9 @@ This header template is shared across all the pages.
{{/if}}
-

{{title}}

+

+ {{title}} +

diff --git a/partials/loop.hbs b/partials/loop.hbs index 8cdeb79..15a3431 100644 --- a/partials/loop.hbs +++ b/partials/loop.hbs @@ -33,7 +33,9 @@ {{/if}}
-

{{title}}

+

+ {{title}} +

{{date published_at timeago="true"}} diff --git a/src/js/app.js b/src/js/app.js index 812825c..8dcfdc3 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -4,6 +4,7 @@ import lozad from 'lozad' import Headroom from "headroom.js" import slick from 'slick-carousel' import tippy from 'tippy.js' +import shave from 'shave' import AOS from 'aos' import Fuse from 'fuse.js' import { @@ -213,6 +214,10 @@ $(document).ready(() => { } if ($recentArticles.length > 0) { + $recentArticles.on('init', function () { + shave('.js-recent-article-title', 50) + }) + $recentArticles.slick({ adaptiveHeight: true, arrows: false, @@ -241,5 +246,8 @@ $(document).ready(() => { tippy('.js-tooltip') + shave('.js-article-card-title', 100) + shave('.js-article-card-title-no-image', 250) + trySearchFeature() }) diff --git a/src/js/home.js b/src/js/home.js index 35114f9..3a7019e 100644 --- a/src/js/home.js +++ b/src/js/home.js @@ -1,11 +1,16 @@ import $ from 'jquery' import slick from 'slick-carousel' +import shave from 'shave' import { isRTL } from './helpers' $(document).ready(() => { const $featuredArticles = $('.js-featured-articles') if ($featuredArticles.length > 0) { + $featuredArticles.on('init', function () { + shave('.js-featured-article-title', 200) + }) + $featuredArticles.slick({ arrows: true, infinite: true, diff --git a/src/js/post.js b/src/js/post.js index a51c181..fd07da7 100644 --- a/src/js/post.js +++ b/src/js/post.js @@ -3,6 +3,7 @@ import slick from 'slick-carousel' import stickybits from 'stickybits' import mediumZoom from 'medium-zoom' import fitvids from 'fitvids' +import shave from 'shave' import { isRTL, isMobile @@ -128,6 +129,9 @@ $(document).ready(() => { if ($recommendedArticles.length > 0) { $recommendedArticles.on('init', function () { prepareProgressCircle() + + shave('.js-article-card-title', 100) + shave('.js-article-card-title-no-image', 250) }) $recommendedArticles.slick({ diff --git a/src/package-lock.json b/src/package-lock.json index fd1bf17..4fd5e5a 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -11843,6 +11843,11 @@ "sha.js": "~2.4.4" } }, + "shave": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/shave/-/shave-2.5.6.tgz", + "integrity": "sha512-cIeMhSuOEIyG79sCrMMcQqinM8FCmlJw1yjG0yYy+uufYnWmJSC0yZHxOcGmQwm2RgLlCCK/0cSGpMXAequbrw==" + }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", diff --git a/src/package.json b/src/package.json index be72cca..4995424 100644 --- a/src/package.json +++ b/src/package.json @@ -39,6 +39,7 @@ "jquery": "^3.3.1", "lozad": "^1.14.0", "medium-zoom": "^1.0.3", + "shave": "^2.5.6", "slick-carousel": "^1.8.1", "stickybits": "^3.6.1", "tippy.js": "^4.0.1" diff --git a/src/sass/components/articles/_article-card.scss b/src/sass/components/articles/_article-card.scss index 5259989..199e217 100644 --- a/src/sass/components/articles/_article-card.scss +++ b/src/sass/components/articles/_article-card.scss @@ -39,7 +39,7 @@ &.no-picture { .m-article-card__picture { - height: 85px; + height: 85px !important; } .m-article-card__info { @@ -48,7 +48,7 @@ .m-article-card__title { line-height: 1.4; - font-size: 1.750rem; + font-size: 1.625rem; } }