Forum
Blog app meta_head.html
Morning!
I've spotted a missing </perch:if> tag in the supplied meta_head.html templates for displaying meta data in the blog app - latest version 5.0. Not sure if this has been flagged but hope it helps.
<perch:if exists="og_image">
<meta property="og:site_name" content="<perch:setting id="perch_blog_site_name" />" />
<meta property="og:url" content="<perch:blog id="domain" type="hidden" /><perch:blog id="postURL" type="hidden" />" />
<meta property="og:title" content="<perch:blog id="og_title" label="Social title" type="text" escape="true" />" />
<meta property="og:description" content="<perch:blog id="og_description" label="Social description" type="textarea" size="s" escape="true" />" /><!--* *-->
<perch:if exists="og_image">
<meta property="og:image" content="<perch:blog id="domain" type="hidden" /><perch:blog id="og_image" label="Image when shared" help="Should be at least 1200x630" type="image" width="1200" />" />
</perch:if><!--* *-->
Should be:
<perch:if exists="og_image">
<meta property="og:site_name" content="<perch:setting id="perch_blog_site_name" />" />
<meta property="og:url" content="<perch:blog id="domain" type="hidden" /><perch:blog id="postURL" type="hidden" />" />
<meta property="og:title" content="<perch:blog id="og_title" label="Social title" type="text" escape="true" />" />
<meta property="og:description" content="<perch:blog id="og_description" label="Social description" type="textarea" size="s" escape="true" />" /><!--* *-->
</perch:if>
<perch:if exists="og_image">
<meta property="og:image" content="<perch:blog id="domain" type="hidden" /><perch:blog id="og_image" label="Image when shared" help="Should be at least 1200x630" type="image" width="1200" />" />
</perch:if><!--* *-->
Kind regards
Jon
Or is it an extra
<perch:if exists="og_image">
?Thanks!
That actually doesn't look like our version of the template at all.
Yeah you're right Drew, ignore me - I've copied the templates from the app folder over again and it's done back to being fine again. The weird thing is I haven't touched this part of the site yet so the file is unedited from when I installed it. Dropbox being weird?
Jon