mrmierzejewski / hugo-theme-console

A minimal, responsive and light theme for Hugo inspired by Linux console.
MIT License
393 stars 118 forks source link

Extra '>' character in blockquote #28

Open tquin opened 3 years ago

tquin commented 3 years ago

Hi Marcin,

Looks like there's a minor issue with the CSS for blockquote that I don't quite have the CSS experience to fix.

In my markdown, I have a single line in a blockquote, with a new line and some other text following it.

image

The page renders with the wrap-around text being correctly quoted, but it always seems to add an extra '>' character after the quote.

image

Hopefully this would be a fairly easy fix. Thanks heaps, love the theme!

daftaupe commented 1 year ago

Hi, it's not exactly the same issue, but I think the issue is also present when using inline code surrounded with backticks : `. The text gets sort of highlighted but there is an issue in that the backticks also appear.

Screenshot 2023-01-02 at 10-57-57 December 2022 - contributions

tquin commented 1 year ago

Hey @daftaupe, I've made some personal changes to this theme since I originally opened this issue that might help:

New quote block: image

New inline code wrap: image

Code block: image

Feel free to copy any changes from this file, and you'd just need to link it in your config.toml to overwrite the default theme: https://github.com/tquin/hugo-tquin/blob/main/static/till_custom_style.css

daftaupe commented 1 year ago

Ah excellent @tquin, I was going to go deep diving into terminal-0.7.2.min.css, I noticed content: "";` for my own case, so I was going to try to see what was going on about yours but I needed more testing. Thanks for your help again !

EDIT : I just had to add this snippet in layouts/partials/header.html, otherwise the custom CSS wouldn't be loaded


{{ range .Site.Params.custom_css -}}
    <link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}