burguillos.info/templates/layouts/default.html.ep

70 lines
2.8 KiB
Plaintext
Raw Normal View History

2022-11-09 13:31:58 +01:00
<!DOCTYPE html>
% my $categories = stash 'categories';
% my $current_category_slug = stash 'current_category_slug';
% my $description_og = stash 'description_og';
2023-05-03 17:39:09 +02:00
% $description_og =~ s/\s+/ /g;
2023-05-08 18:52:05 +02:00
% $description_og = substr $description_og, 0, 157;
% $description_og =~ s/\s\S+$//;
% $description_og.='...';
% my $base_url = config 'base_url';
2022-11-10 21:27:24 +01:00
<html lang="es">
2022-11-09 13:31:58 +01:00
<head>
2023-05-07 03:09:36 +02:00
<script src="/js/bundle.js"></script>
2023-05-02 00:45:43 +02:00
% my $css_version = config 'css_version';
<link rel="stylesheet" href="/css/styles.css?v=<%=$css_version%>"/>
2022-11-09 13:31:58 +01:00
<title><%= title %></title>
<meta name="description" content="<%=defined $description_og ? $description_og : 'Lee más sobre: ' . title %>" />
2022-11-09 17:14:58 +01:00
<meta property="og:title" content="<%= title %>"/>
<meta property="og:site_name" content="burguillos.info" />
2022-11-13 02:01:24 +01:00
% my $ogimage = stash 'ogimage';
% my $user_agent = stash 'useragent';
% if (defined $ogimage) {
<meta name="image" property="og:image" content="<%= $ogimage %>?v=3"/>
<meta name="twitter:image" content="<%=$ogimage%>" />
2022-11-13 02:01:24 +01:00
% } else {
2023-05-04 00:07:13 +02:00
<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">
2022-11-13 02:01:24 +01:00
% }
2023-05-03 17:34:11 +02:00
<meta name="twitter:card" content="summary_large_image"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
2022-11-09 13:31:58 +01:00
</head>
<body>
2023-09-04 01:23:27 +02:00
<div class="site-wrapper">
</div>
<div class="search-overlay">
<div class="bounding-search-bar">
%= include 'page/_search_bar'
<a class="exit-search">
<img alt="Exit search" src="/img/exit.svg"/>
</a>
</div>
</div>
2023-08-21 00:58:11 +02:00
<div class="complete-container">
2023-08-28 23:41:18 +02:00
%= include 'page/_mobile_menu', categories => $categories
2023-08-21 00:58:11 +02:00
<div class="page-contents">
%= include 'page/_desktop_menu', categories => $categories, current_category_slug => $current_category_slug
2023-08-29 00:02:27 +02:00
%= include 'page/_mobile_foldable', categories => $categories
2023-08-30 23:46:49 +02:00
<div class="description android open-browser-container">
<a href="<%= $current_route %>" class="open-in-browser">
2023-08-30 23:46:49 +02:00
<img alt="" src="/img/firefox.svg"/>
<span>Abrir en el navegador.</span>
</a>
</div>
2023-08-21 00:58:11 +02:00
<%= content %></body>
2023-08-29 23:52:07 +02:00
<div class="description android">
<a href="#" class="pin-to-home">Añade esta página a la pantalla de inicio de tu móvil.</a>
</div>
2023-08-21 00:58:11 +02:00
<hr/>
<div class="footer description">
<p>©2022-2023 Sergio Iglesias</p>
<p>Enterate de todas las novedades de Burguillos.info:</p>
<a class="suscribe-category-rss" href="/all.rss">
<img src="/img/rss.svg" alt="Icono de suscripción rss"/>
</a>
</div>
</div>
%= include 'ads/_carousel'
</div>
2022-11-09 13:31:58 +01:00
</html>