LukeSmithxyz / lugo

Luke's Hugo Theme
184 stars 64 forks source link

use CSS to insert a middle-dot between tags in taglist #3

Closed esdnm closed 2 years ago

esdnm commented 2 years ago

Currently a middle-dot is inserted between tags in taglist by using HTML.

https://github.com/LukeSmithxyz/lugo/blob/a56d5dafb2f5dd0ac2d77e60e4194999e82050aa/layouts/partials/footer.html#L9

Since the middle-dot is for stylistic reason, I propose it should be added via CSS using pseudo element. For example:

.taglist a:not(:last-child)::after {
    content: " · "
}

I added a space before and after of ·, it makes things look a bit nicer.