From 1718a73d1124a3310396992025a8af2acdfbe735 Mon Sep 17 00:00:00 2001 From: David Landry Date: Tue, 16 Jul 2024 11:19:18 +0200 Subject: [PATCH] Fix bold bug --- .eleventy.js | 7 ++++++- _includes/base.njk | 1 + _static/fonts.css | 2 +- _static/photography.css | 9 +++++++++ _static/post.css | 1 + 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 _static/photography.css diff --git a/.eleventy.js b/.eleventy.js index 6af9971..d90af24 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -22,7 +22,12 @@ module.exports = function (eleventyConfig) { }); - eleventyConfig.addPassthroughCopy({ "_static/": "/" }); + eleventyConfig.addPassthroughCopy({ + "_static/": "/", + "node_modules/photoswipe/dist/photoswipe-lightbox.esm.min.js": "assets/photoswipe-lightbox.esm.min.js", + "node_modules/photoswipe/dist/photoswipe.esm.min.js": "assets/photoswipe.esm.min.js", + "node_modules/photoswipe/dist/photoswipe.css": "assets/photoswipe.css" + }); return { dir: { diff --git a/_includes/base.njk b/_includes/base.njk index 8b3cf64..5e5c860 100644 --- a/_includes/base.njk +++ b/_includes/base.njk @@ -41,6 +41,7 @@ footer: true + {% if post_title %} diff --git a/_static/fonts.css b/_static/fonts.css index b7273b0..c0e00e8 100644 --- a/_static/fonts.css +++ b/_static/fonts.css @@ -32,7 +32,7 @@ @font-face { font-family: 'Courier Prime'; src: url('fonts/CourierPrime-Bold.ttf'); - font-style: normal; + font-style: bold; font-weight: 700; } diff --git a/_static/photography.css b/_static/photography.css new file mode 100644 index 0000000..5f8c90c --- /dev/null +++ b/_static/photography.css @@ -0,0 +1,9 @@ + +#photoswipe-container { + position: relative; +} + + +.pswp { + position: absolute!important; +} \ No newline at end of file diff --git a/_static/post.css b/_static/post.css index d20335f..17efd8b 100644 --- a/_static/post.css +++ b/_static/post.css @@ -146,6 +146,7 @@ a.to-filter { font-size: 1.3em; font-weight: bold; margin-top: 3em; + color: black; } .post-content h2:not(:first-child) {