Trying again to fix og.

This commit is contained in:
Sergiotarxz 2023-09-19 17:49:45 +02:00
parent 615994e817
commit eaa1b335d8

View File

@ -23,12 +23,12 @@
% say STDERR $ogimage;
% my $user_agent = stash 'useragent';
<meta property="og:url" content="<%=$base_url%><%= url_for %>?v=123"/>
<meta property="og:url" content="<%=$base_url%><%= url_for %>"/>
% if (defined $ogimage) {
% my $url_for = url_for || '';
<meta itemprop="image" property="og:image" content="<%= $ogimage %>"/>
<meta name="image" content="<%= $ogimage %>?v=1"/>
<meta name="twitter:image" content="<%=$ogimage%>?v=1" />
<meta name="image" content="<%= $ogimage %>"/>
<meta name="twitter:image" content="<%=$ogimage%>" />
% } else {
<meta name="image" property="og:image" content="<%=$base_url%>/img/burguillos.webp?v=4">
<meta name="twitter:image" content="<%=$base_url%>/img/burguillos.webp?v=4">