getnikola / nikola-themes

Themes for Nikola
https://themes.getnikola.com/
71 stars 52 forks source link

Added class for inline literal to template zen #178

Closed carpe-diem closed 4 years ago

carpe-diem commented 4 years ago

Added class docutils literal for inline literal

this picture is before the changes

zen-old

And this is with the change

zen-new

Kwpolska commented 4 years ago

Is this necessary with Nikola from master? There was a bug in our output (missing <code> tag) that hasn't yet been released.

carpe-diem commented 4 years ago

Hi @Kwpolska, about if iIs this necessary with Nikola from master, i do nott understand.

As for the <code> bug, this is not the related. When you write ``i2c_hid`` in a post, nikola generates the element <tt class="docutils literal">i2c_hid</tt>.

This PR add css class for this.

Kwpolska commented 4 years ago

Nikola v8.0.3 will generate the <code> element. That element has nicer styling. I modified the styles (commit 5ef9d6e) to also include the tt tag. Thanks for reporting this issue.