That is a beautiful theme! We can certainly look into creating a similar one. Thanks for sharing! I had not heard of Nono before but now I am really getting into his sketches, writing, and podcast.
Hi @naveen! Yes, we have an updating blog that is a collection of themes/CSS from the Write.as community. Check it out here. Feel free to use them as a reference or copy them fully.
Seemed like a fun challenge to see if I could replicate this with a write.as blog. It’s definitely not perfect and the code is still messy, but it looks pretty close (in my humble opinion) and has footnotes (they don’t work on the blog index page, but look great in the individual post). I matched the fonts as best as I could with Google Fonts. This should at least give you a good head start, you can change colors and fonts as needed.
Here’s my CSS (it’s sloppy, I know, I hack things together)
And the javascript for the footnotes, borrowed from this post:
// FOOTNOTE LINKS IN BODY TEXT
var notePattern = /\[\^(\d+)\]/g;
var noteText = "<a name=\"fn$1\"></a><sup><a class=\"footnote\" href=\"#fnref$1\">$1</a></sup>";
// REFERENCES AT THE BOTTOM
var refPattern = /\[(\d+)\](.*)/g;
var refText = "<a name=\"fnref$1\"></a><a class=\"footnote-ref\" href=\"#fn$1\">$1</a><span class=\"footnote-ref-text\">$2</span>";
var postContent = document.getElementById("post-body").innerHTML;
postContent = postContent.replace(notePattern, noteText);
postContent = postContent.replace(refPattern, refText);
document.getElementById("post-body").innerHTML = postContent;
Sweet! No content is no problem - what’s there is great. I also got permission from the creator of the original theme (Nono Martínez Alonso @ nono.ma) so hopefully we’ll have it up on the Themes blog later this week or at the beginning of next week.
Thanks again for doing this @quiethabits! It looks great. I’ll be sure to give you credit in the post & when promoting it!
Cool! Just let me know when you clean it up and I’ll use the updated code.
I am glad to see it growing too! We’ve been using Write.as blogs already out there but I’ve been thinking we need more themes like this – taking from other projects/platforms and putting them into Write.as. If anyone else has suggestions along those lines (or from other Write.as blogs out there) then we’d love to hear them!