aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/It__39__s_not_possible_to_add_the_new_Flattr_meta_tag_using_the_meta_directive.mdwn
blob: 568c998795385d2fbce976bb7358a4f9e17cfb0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
The new way to confirm ownership of a domain on Flattr is to add a `meta` tag to the page head. For example:

     <meta name="flattr:id" content="4j6y0v">

However, the [[ikiwiki/directive/meta]] directive doesn't allow setting of names with colons.

If I do this:

    \[[!meta flattr:id="4j6y0v"]]

it gets rendered as:

    <meta name="flattr:id=&quot;4j6y0v&quot;" content="" />

I tried [a number of possibilities](https://feeding.cloud.geek.nz/recentchanges/) and they all failed to produce the correct output.

> Directive syntax doesn't allow named arguments containing colons, so we would have to
> add a different syntax for weird names. However, we already have that:
>
>     \[[!meta name="flattr:id" content="4j6y0v"]]
>
> This was missing from the documentation, but I have now added it. This feature was
> broken until 2015, but we now have an automated test to make sure it keeps working;
> the test includes a check for `twitter:card` which is essentially equivalent to
> what you're doing here. [[done]] --[[smcv]]