Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

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

Closed
pke opened this issue May 2, 2020 · 4 comments
Closed

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

pke opened this issue May 2, 2020 · 4 comments

Comments

@pke
Copy link

pke commented May 2, 2020

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
Copy link

We are experiencing the same problem with v1.6.1.

@tomisavolainen
Copy link

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

@pke
Copy link
Author

pke commented Jun 4, 2020

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

@pke
Copy link
Author

pke commented Jun 9, 2020

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.

@pke pke closed this as completed Jun 9, 2020
pke added a commit to keedrop/keedrop that referenced this issue Jun 10, 2020
Thanks to the hint in the issue with the `baseurl` this works now.
kurtsson/jekyll-multiple-languages-plugin#165

This also fixes a subtle css bug, that `a` must be defined before `nav a`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants