|
| 1 | +<head> |
| 2 | + <meta charset="utf-8"> |
| 3 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0"> |
| 4 | + |
| 5 | + {% if page.title %} |
| 6 | + <title>{{ page.title | strip_html }} | {{ site.title }} {{ site.year }}</title> |
| 7 | + {% else %} |
| 8 | + <title>{{ site.title }} {{ site.year }} | {{ site.subtitle }}</title> |
| 9 | + {% endif %} |
| 10 | + |
| 11 | + <!-- OGP for Social Services --> |
| 12 | + <meta property="fb:admins" content="715330868"> |
| 13 | + <meta property="fb:app_id" content="805184859580207"> |
| 14 | + <meta name="twitter:card" content="summary" /> |
| 15 | + <!--<meta name="twitter:site" content="@??????" />--> |
| 16 | + {% if page.title %} |
| 17 | + <meta name="twitter:title" content="{{ page.title | strip_html }} | {{ site.title }} {{ site.year }}" /> |
| 18 | + <meta property="og:title" content="{{ page.title | strip_html }} | {{ site.title }} {{ site.year }}" /> |
| 19 | + {% else %} |
| 20 | + <meta name="twitter:title" content="{{ site.title }} {{ site.year }} | {{ site.subtitle }}" /> |
| 21 | + <meta property="og:title" content="{{ site.title }} {{ site.year }} | {{ site.subtitle }}" /> |
| 22 | + {% endif %} |
| 23 | + |
| 24 | + {% if page.thumbnail %} |
| 25 | + <meta name="twitter:image" content="{{ site.url }}{{ page.thumbnail }}" /> |
| 26 | + <meta property="og:image" content="{{ site.url }}{{ page.thumbnail }}" /> |
| 27 | + {% else %} |
| 28 | + <meta name="twitter:image" content="{{ site.url }}/img/cover.jpg" /> |
| 29 | + <meta property="og:image" content="{{ site.url }}/img/cover.jpg" /> |
| 30 | + {% endif %} |
| 31 | + |
| 32 | + {% if page.url != "/" %} |
| 33 | + <meta property="og:type" content="article" /> |
| 34 | + {% else %} |
| 35 | + <meta property="og:type" content="website" /> |
| 36 | + {% endif %} |
| 37 | + |
| 38 | + {% if page.description %} |
| 39 | + <meta property="og:description" content="{{ page.description | strip_html | escape }}" /> |
| 40 | + <meta name="twitter:description" content="{{ page.description | strip_html | escape }}" /> |
| 41 | + <meta name="description" content="{{ page.description | strip_html | escape }}" /> |
| 42 | + {% else %} |
| 43 | + <meta property="og:description" content="{{ site.description | strip_html | escape }}" /> |
| 44 | + <meta name="twitter:description" content="{{ site.description | strip_html | escape }}" /> |
| 45 | + <meta name="description" content="{{ site.description | strip_html | escape }}" /> |
| 46 | + {% endif %} |
| 47 | + |
| 48 | + <!-- Google Analytics and Tag Manager (gtag.js) only in Production--> |
| 49 | + {% if jekyll.environment == 'production' %} |
| 50 | + <!-- TODO: Set gtag.js when it gets ready. |
| 51 | + <script async src="https://www.googletagmanager.com/gtag/js?id=G-0123456789"></script> |
| 52 | + <script> |
| 53 | + window.dataLayer = window.dataLayer || []; |
| 54 | + function gtag(){dataLayer.push(arguments);} |
| 55 | + gtag('js', new Date()); |
| 56 | +
|
| 57 | + gtag('config', 'G-0123456789'); |
| 58 | + </script> |
| 59 | + --> |
| 60 | + {% endif %} |
| 61 | + |
| 62 | + <!-- Favicon -------------------------- --> |
| 63 | + <link rel="icon" href="/img/coderdojo.svg" sizes="any" type="image/svg+xml"> |
| 64 | + <link rel="icon" href="/img/coderdojo.webp" sizes="512" type="image/webp"> |
| 65 | + <link rel="apple-touch-icon" href="/img/apple-touch-icon.png"> <!-- 192x192px --> |
| 66 | + <!-- MEMO: デフォルト用に favicon.ico をルートディレクトリにも置く: /favicon.ico --> |
| 67 | + |
| 68 | + <!-- CSS Framework -------------------------- --> |
| 69 | + <!-- Font Awasome https://fontawesome.com/ --> |
| 70 | + <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />--> |
| 71 | + |
| 72 | + <!-- Tailwind CSS --> |
| 73 | + <!--<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/[email protected]" integrity="sha512-M4ecs0CyhBq7W0PeumwMxVaA9pWbhuD4mCqGTe7/357R8/avaeGSJAtk2dYCgFrZyWvjq1Sju0Wcyf2jnP941Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>--> |
| 74 | + |
| 75 | + <!-- CSS -------------------------- --> |
| 76 | + <!--<link rel="stylesheet" href='/css/main.css?v={{ "now" | date: "%Y-%m-%d_%H-%M-%S" }}' />--> |
| 77 | +</head> |
0 commit comments