StartBootstrap / startbootstrap-clean-blog-jekyll

A Jekyll version of the Clean Blog theme by Start Bootstrap
https://startbootstrap.com/themes/clean-blog-jekyll/
MIT License
2.09k stars 2.68k forks source link

Question: How to add custom stylesheets #350

Open ikouchiha47 opened 9 months ago

ikouchiha47 commented 9 months ago

I wanted to make some changes, like a different code highlighting styles. I am using it like this.

gem 'rogue'
gem 'jekyll-theme-clean-blog'

I noticed that the project uses kramdown. I tried to create a _layouts/page.html , and adding a <link rel="stylesheet" src=".."/> . But that didn't help. I ended up doing it like this.

---
layout: post
title: "Awesome Blog"
subtitle: "awesome blog"
date: 2023-11-27 00:00:00
background: ''
---

<link href="/assets/css/monokai.css" rel="stylesheet"/>
<link href="/assets/css/overrides.css" rel="stylesheet"/>

But yeah I could make a partial and that way include in other _posts , but is there any simpler way?