Emulate tldr instead of man in your notes
Tuesday, 31 January, 2023
Hugo Render Hooks for Titled Code Blocks
Thursday, 19 January, 2023

Add an Obsidian CSS Snippet

Reader view so you don’t have to stare at YAML frontmatter

I added a banner to my Obsidian.md daily journal template with the Banners plugin. I used a Creative Commons image from Openverse, and I wanted to include attribution.

My daily journal template is a small mess of Markdown, HTML, and Templater directives, but it gets the job done.

Template details
title: <% tp.file.title %>
created_at: <% tp.file.creation_date("YYYY-MM-DDTHH:mm:ssZ") %>
banner: "/assets/journal-entry-joel-montes-de-oca.jpg"

# <% tp.file.title %>


## Plan

## Jots


<p class="attribution">
        rel="noopener noreferrer"
        >Journal Entry</a>"
        rel="noopener noreferrer"
    is licensed under
        rel="noopener noreferrer"
        >CC BY-SA 2.0
                style="height: 1em; margin-right: 0.125em; display: inline;"
                style="height: 1em; margin-right: 0.125em; display: inline;"
                style="height: 1em; margin-right: 0.125em; display: inline;"></a>.

It should have its own style. A little smaller than the note text, and maybe centered for an aesthetic touch. After spending a little too long looking for some kind of theme or plugin magic, I realized Obsidian supports custom CSS snippets.

So I added a CSS snippet for attribution paragraphs.

.attribution {
    font-size: 0.8em;
    text-align: center;

Needed to explicitly enable it under Settings → Appearance → CSS Snippets.

Obsidian CSS snippets settings with attributions enabled
Obsidian CSS snippets settings with attributions enabled

Managing Obsidian CSS is a nice little feature. And it’s got just enough steps that adding a note here for later seemed like a good idea.

And yes I do keep my notes in every tool like some kind of brain squirrel. Someday maybe I’ll show you the meta-system I use to keep it all organized.

Maybe after I fix it.