templates/pages/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="ja">
  3.   <head>
  4.     <!-- Google Tag Manager -->
  5.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  6.       new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  7.     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  8.     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  9.     })(window,document,'script','dataLayer','GTM-MF9M5RKV');</script>
  10.     <!-- End Google Tag Manager -->
  11.     <meta charset="UTF-8">
  12.     <title>{% block title %}Welcome!{% endblock %}</title>
  13.     <meta property="og:title" content="{% block meta_og_title %}Welcom!{% endblock %}">
  14.     <meta name="description" content="{% block meta_description %}Description{% endblock %}">
  15.     <meta property="og:description" content="{% block meta_og_description %}Description{% endblock %}">
  16.     <meta property="og:url" content="{% block meta_og_siteurl %}{{ app.request.uri }}{% endblock %}">
  17.     <meta property="og:site_name" content="SiteName">
  18.     <meta property="og:locale" content="ja_JP">
  19.     <meta property="og:type" content="website">
  20.     <meta name="twitter:card" content="summary_large_image"/>
  21.     <meta name="twitter:title" content="{% block meta_twitter_title %}Welcome!{% endblock %}">
  22.     <meta name="viewport" content="{% if isSp() %}width=414{% else %}width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"{% endif %}">
  23.     {% block meta_og_image %}
  24.       <meta property="og:image" content="{{ absolute_url(asset('build/images/ogp.png'))}}">
  25.       <meta property="og:image:alt" content="OG-Image-Alt">
  26.       <meta property="og:image:width" content="1200">
  27.       <meta property="og:image:height" content="630">
  28.     {% endblock %}
  29.     <link rel="shortcut icon" href="{{ absolute_url(asset('favicon.ico'))}}">
  30.     <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap" rel="stylesheet">
  31.     {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  32.     {% block stylesheets %}
  33.         {{ encore_entry_link_tags('app') }}
  34.     {% endblock %}
  35.     {% block javascripts %}
  36.         {{ encore_entry_script_tags('app') }}
  37.     {% endblock %}
  38.   </head>
  39.   <body{% if _page is defined %} id="{{ _page }}"{% endif %}>
  40.   <!-- Google Tag Manager (noscript) -->
  41.   <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MF9M5RKV"
  42.   height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  43.   <!-- End Google Tag Manager (noscript) -->
  44.     {% block header %}
  45.       {% include "layout/header/_header.html.twig" %}
  46.     {% endblock %}
  47.     {% block body %}{% endblock %}
  48.       {% include "layout/footer/_footer.html.twig" %}
  49.   </body>
  50. </html>