app.kluk.fr/app/views/layouts/application.html.erb
Christophe Robillard 279a31f7ce
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
add OpenGraph tags and a share image
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:04:56 +02:00

52 lines
2.2 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="fr">
<head>
<title><%= content_for(:title) || "Kluk" %></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="#F5F6F0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<% titre_partage = content_for(:title) || "Comment ça Kluk ?" %>
<% description = content_for(:description) || "Pas besoin de demander comment ça va : il suffit de regarder la tasse." %>
<meta name="description" content="<%= description %>">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Kluk">
<meta property="og:locale" content="fr_FR">
<meta property="og:title" content="<%= titre_partage %>">
<meta property="og:description" content="<%= description %>">
<meta property="og:url" content="<%= request.base_url + request.path %>">
<meta property="og:image" content="<%= image_url "charte/partage.png" %>">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Trois tasses de couleur alignées sur une table, et une quatrième posée sur la Kluk, fumante.">
<meta name="twitter:card" content="summary_large_image">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= yield :head %>
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
<%= favicon_link_tag "charte/favicon.svg", type: "image/svg+xml" %>
<link rel="apple-touch-icon" href="/icon.png">
<%= preload_link_tag "young-serif-400.woff2" %>
<%= preload_link_tag "atkinson-hyperlegible-next-400.woff2" %>
<%# Includes all stylesheet files in app/assets/stylesheets %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
</head>
<body>
<a class="evitement" href="#contenu">Aller au contenu</a>
<%= render "entete" %>
<main id="contenu" tabindex="-1">
<%= render "flash" %>
<%= yield %>
</main>
<%= render "pied" %>
</body>
</html>