diff --git a/index.hbs b/index.hbs index 246f0734f..201531f8d 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 7158aab92..e0a22396c 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 f08191b45..0cbf6ea7c 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 d343fcbc4..42850cb37 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 8cdeb79ec..15a34314b 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 812825c92..8dcfdc3ea 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 35114f93c..3a7019e25 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 a51c18198..fd07da77a 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 fd1bf1773..4fd5e5a32 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 be72ccaa5..499542447 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 5259989a6..199e217ba 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; } }