From fbd41d395916176dde11bb0e417f1210f34eb4ab Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 23 Mar 2024 18:02:45 +0100 Subject: Add blog Site structure follows SEO tips from https://johnnyreilly.com/how-we-fixed-my-seo * The blog pages have as simple of an URL as possible. To this end, the home page of the site is actually the first index page of the blog. * Customize the blog index page BlogListPage component to show the landing page as the first index page. * Rename /archive to /blog to avoid a dated feel. * Remove the date from post URLs using the slug property. --- src/components/landing/sections/Blog.module.css | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/components/landing/sections/Blog.module.css (limited to 'src/components/landing/sections/Blog.module.css') diff --git a/src/components/landing/sections/Blog.module.css b/src/components/landing/sections/Blog.module.css new file mode 100644 index 0000000..6a38a97 --- /dev/null +++ b/src/components/landing/sections/Blog.module.css @@ -0,0 +1,28 @@ +/* + * SPDX-FileCopyrightText: 2024 Kristóf Marussy + * + * SPDX-License-Identifier: MIT + */ + +.row { + margin-bottom: var(--ifm-paragraph-margin-bottom); +} + +.recent-posts { + margin-bottom: 0; + font-size: var(--ifm-h3-font-size); + font-weight: var(--ifm-font-weight-bold); + --casl: 0.5; + letter-spacing: var(--marussy-heading-tracking); +} + +.date { + font-size: 1rem; + font-weight: var(--ifm-font-weight-normal); + --casl: 0; + letter-spacing: 0; +} + +.prev::after { + content: ' »'; +} -- cgit v1.2.3-70-g09d2