josh3
1
Is there an equivalent of a poetry mode for ghost that keeps whitespace but NOT a code block?
For example, substack has this. Here’s am example of what works for me on substack:
https://open.substack.com/pub/bitpunkfm/p/hear-the-barn-owl-screech
On ghost I had to make it a code block, and while code can be beautiful, I feel it’s not appropriate for poetry:
Raki
2
To preserve spaces, you can put the following code into Ghost settings > Code injection > Site header:
<style>
p {
white-space: pre;
}
</style>
1 Like
josh3
3
Ok, cool. This is working, but I think I’ll just put it on the post header of each post than site wide. See any issues with that?
1 Like
Raki
4
Of course, you can put it on the post header.
Or you can still place it in the site header, but limit its effect to posts only by using the following code
<style>
.post-template p {
white-space: pre;
}
</style>
1 Like