Support Center

Recent questions

About Koken

This Help Center provides support for Koken, a free content management system designed for photographers, artists and designers.

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

"koken:head" not dynamically inserted into the "head" region of index.lens

Jan Karow

Mar 10, 2017 10:06AM EST

Hello,

I am working on my own theme and have my social media metadata set up like advised in your theme design tutorial. It works fine except for the index.lens file.
Somehow koken seems to ignore my code in that file and doesn't add anything dynamically to the head of the index except for what's already in the head:
<koken:meta />
<koken:title />
<koken:settings />

Everything inside the following code is ignored:
<koken:load>
<koken:head>
<meta name="description" content="{{ site.description strip_html='true' }}" />
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:title" content="{{ site.title }}>
<meta property="og:description" content="{{ site.description strip_html='true' }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ location.site_url }}{{ location.here }}" />
<meta property="og:image" content="..." />
<koken:not empty="profile.twitter">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@{{ profile.twitter }}" />
<meta name="twitter:creator" content="@{{ profile.twitter }}" />
<meta name="twitter:title" content="{{ site.title }}">
<meta name="twitter:description" content="{{ site.description strip_html='true' }}">
<meta name="twitter:image" content="...">
</koken:not>
</koken:head>
<koken:else>
<koken:note>No data found</koken:note>
</koken:load>

Am I missing something or is this a bug?

Best regards
Jan

Up 0 rated Down

Bjarne Varöystrand

Mar 10, 2017 01:36PM EST
Hi there Jan

You need to assign a source to the koken:load

So your code would look something like
<koken:load source="favorites" limit="4">
<koken:head>
<meta name="description" content="{{ site.description strip_html='true' }}" />
<meta property="og:site_name" content="{{ site.title }}" />
<meta property="og:title" content="{{ site.title }}>
<meta property="og:description" content="{{ site.description strip_html='true' }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ location.site_url }}{{ location.here }}" />
<koken:first>
<koken:covers>
<koken:first>
<meta property="og:image" content="{{ content.presets.medium_large.url }}" />
<meta property="og:image:width" content="{{ content.presets.medium_large.width }}" />
<meta property="og:image:height" content="{{ content.presets.medium_large.height }}" />
</koken:first>
</koken:covers>
</koken:first>
<koken:not empty="profile.twitter">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@{{ profile.twitter }}" />
<meta name="twitter:creator" content="@{{ profile.twitter }}" />
<meta name="twitter:title" content="{{ site.title }}">
<meta name="twitter:description" content="{{ site.description strip_html='true' }}">
<koken:first>
<koken:covers>
<koken:first>
<meta name="twitter:image{{ index }}" content="{{ content.presets.medium_large.cropped.url }}" />
</koken:first>
</koken:covers>
</koken:first>
</koken:not>
</koken:head>
</koken:load>


If you need any further help, or have more questions: you're more then welcome to stop by the Koken Community Support forum over at https://kokensupport.com
----------------------
Regards, Bjarne
Koken Community Support - http://kokensupport.com/

This question has received the maximum number of answers.

support@koken.me
http://assets0.desk.com/
false
koken
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete