aMoniker / timberscores

A Timber-ready conversion of the popular underscores theme for Wordpress
15 stars 3 forks source link

Single Post View #1

Open davenaylor opened 10 years ago

davenaylor commented 10 years ago

Single post view seems to fall over because of _nx in line 7 of comments.twig

Kevinlearynet commented 10 years ago

Try changing the call to _nx( with _function('_nx, like this:

{{ function('_nx', 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', comments|length, 'comments title', 'timberscores')|format(function('number_format_i18n', comments|length), '<span>' ~ post.title ~ '</span>') }}

aMoniker commented 10 years ago

I must have written that part while also adding those translation functions to timber... however it's an open issue, which you can follow here: https://github.com/jarednova/timber/pull/246