latest 20 messages by batteur
+
[2017-05-30T20:25:21Z]
batteur
is it possible to compare the tags of a page with tags of an entry in a data-file and use every match once?
+
[2017-05-19T13:57:15Z]
batteur
found here: https://github.com/jekyll/jekyll/pull/5509
+
[2017-05-19T13:53:15Z]
batteur
regarding my question from a few hours ago: i found a solution. it's not the very best imaginable, but works in this case: {{ session.o | markdownify | replace:'<p>','' | replace:'</p>','' }}
+
[2017-05-19T06:16:19Z]
batteur
can i prevent this?
+
[2017-05-19T06:16:11Z]
batteur
but i don't want it to generate <p>
+
[2017-05-19T06:15:44Z]
batteur
i generate a table from a yaml list in _data and markdownify a part of it
+
[2017-05-19T06:14:12Z]
batteur
hi
+
[2017-05-16T17:52:21Z]
batteur
only with split, and i'd have to try how to do this with arrays inside an array
+
[2017-05-16T17:50:59Z]
batteur
looks like it's not possible
+
[2017-05-16T17:45:30Z]
batteur
or does this only work if i define the array in the yaml header?
+
[2017-05-16T17:45:03Z]
batteur
can i assign an array to a var name and then pass this array to an include?
+
[2017-05-16T06:09:04Z]
batteur
…
+
[2017-05-16T06:09:04Z]
batteur
<img src="{{ site.baseurl }}/media/{{ img[0] }}" alt="{{ img[1] }}">
+
[2017-05-16T06:09:02Z]
batteur
{% for img in include.img %}
+
[2017-05-16T06:09:02Z]
batteur
and then in the include
+
[2017-05-16T06:07:22Z]
batteur
at the moment i tried it like this: img=[['img1_320.png', 'bla', 'img1.png'], ['img5_320.png', 'blabla', 'img5.png'], ['img7_320.png', 'blablabla', 'img7.png'], ['img2_320.png', 'blablablabla', 'img2.png']]
+
[2017-05-16T06:04:35Z]
batteur
and i want to pass the data for src, alt and href
+
[2017-05-16T06:04:01Z]
batteur
my use case is a <figure> that can contain one or more <img>
+
[2017-05-16T06:01:38Z]
batteur
is it possible to define an array when calling a include, and then use this array in the include?
+
[2017-05-14T22:23:09Z]
batteur
perhaps it's better to do this with css, but then i can't reference the figures with numbers in the text