clayh53 / tufte-jekyll

Minimal Jekyll blog styled to resemble the look and layout of Edward Tufte's books
MIT License
620 stars 206 forks source link

Capitalisation of post titles #41

Closed alpha-beta-soup closed 8 years ago

alpha-beta-soup commented 8 years ago

The case of titles is not being respected in posts:


---
layout: post
title: "One Day in Montréal"
date: 2014-06-12 17:58:10 +1200

---

With very little adaptation from the demo, here is the view on the "Blog" page showing excerpts.

screenshot from 2016-03-20 23 09 18

But in the actual post the case of the title is no longer respected:

screenshot from 2016-03-20 23 09 32

ekstroem commented 8 years ago

That is part of your _layouts/post.html file. You can change

<h1>{{ page.title | capitalize }}</h1>

to

<h1>{{ page.title }}</h1>

to have the output written exactly as you specify in the titel in the YAML.

alpha-beta-soup commented 8 years ago

Ah, thank you. My apologies, I should have looked into that further. I do think that the use of capitalize shouldn't be the default, though.

ekstroem commented 8 years ago

I agree. Have removed it myself