kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
922 stars 203 forks source link

undefined method "+" for nil:NilClass when using tl tag #165

Closed pke closed 4 years ago

pke commented 4 years ago

I have an imprint page with the front matter:

---
layout: default

header: headers.imprint
title: titles.imprint

namespace: imprint
permalink: /imprint/
permalink_de: /impressum/
---

and using this tag produces the error:

<a href="{% tl imprint %}" rel="about">{% t titles.imprint %}</a>

tomisavolainen commented 4 years ago

We are experiencing the same problem with v1.6.1.

tomisavolainen commented 4 years ago

Got this worked out. It turns out that you need to have baseurl set to something. In our case ""

pke commented 4 years ago

Cool, I'll try this again and report back.

pke commented 4 years ago

I can confirm this works. The readme should probably be updated. But since I feel this project has been pretty much abandoned by @kurtsson I hope people will find this issue here to solve this problem when they encounter it.