elotroalex / ed

A jekyll theme for minimal editions
Other
125 stars 132 forks source link

splitting title over line break in specific place #37

Closed epageperron closed 7 years ago

epageperron commented 8 years ago

Hi! As a newbie with yaml and liquid (and jekyll..) Using a longer title than "Ed.", I couldn't figure out how to split my title where I wanted and not with the natural soft wrap. I found out the usage of "|-" in the yaml front matter, I also had to add the filter "newline_to_br" in the layout. I suggest adding the filter by default in the layout.

elotroalex commented 7 years ago

thanks for this! I added some css to break the long lines, but your solution is perfect. @epageperron , where did you add it exactly in the layout?

epageperron commented 7 years ago

It's line 22 in my _layouts/default.html

<h3 class="masthead-title"> <a href="{{ site.baseurl }}/" title="Home">{{ site.title | newline_to_br }}</a> <br><small>{{ site.tagline }}</small> </h3>

elotroalex commented 7 years ago

Perfect! I will add it and test it soon. What is your website that you're talking about here?

elotroalex commented 7 years ago

done!

epageperron commented 7 years ago

It was the website for a course I gave in the Fall 2016. I published one of the papers of my students on the site and they used hypothes.is to give feedback to their colleagues and reply to the feedback. Unfortunately I changed my GitHub username since so the annotations are gone :( https://epageperron.github.io/relane/ I know it wasn't the exact intended usage of your theme but it really served well!

elotroalex commented 7 years ago

very nice! i think it's a wonderful use of Ed. it should be easier now that it's a gem.

On Sat, Jul 8, 2017 at 6:41 PM, Émilie Pagé-Perron <notifications@github.com

wrote:

It was the website for a course I gave in the Fall 2016. I published one of the papers of my students on the site and they used hypothes.is to give feedback to their colleagues and reply to the feedback. Unfortunately I changed my GitHub username since so the annotations are gone :( https://epageperron.github.io/relane/ I know it wasn't the exact intended usage of your theme but I really served well!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/elotroalex/ed/issues/37#issuecomment-313885232, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOzrgAwWFUh44iYglAIqnCUDynMq2r0ks5sMAWsgaJpZM4Jd0XD .

epageperron commented 7 years ago

I'm eager to use if for other projects ! +1: