Skip to content

Question: How to add custom stylesheets #350

@ikouchiha47

Description

@ikouchiha47

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions