head.html 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <!-- Google tag (gtag.js) -->
  2. <script async src="https://www.googletagmanager.com/gtag/js?id=G-6BTV174JYX"></script>
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. function gtag(){dataLayer.push(arguments);}
  6. gtag('js', new Date());
  7. gtag('config', 'G-6BTV174JYX');
  8. </script>
  9. <meta charset="utf-8">
  10. <meta http-equiv="x-ua-compatible" content="ie=edge">
  11. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  12. <meta name="author" content="{{ .Site.Title }}">
  13. <meta property="og:site_name" content="{{ .Site.Title }}">
  14. {{ template "_internal/opengraph.html" . }}
  15. {{ template "_internal/twitter_cards.html" . }}
  16. <!-- Google Font -->
  17. <link rel="preconnect" href="https://fonts.googleapis.com">
  18. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  19. <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;500&family=Roboto+Slab:wght@600&display=swap" rel="stylesheet">
  20. {{ with .Site.Params.style }}
  21. <link href="{{ "/css/style" | relURL }}.{{ . }}.css" rel="stylesheet" id="theme-stylesheet">
  22. {{ else }}
  23. <link rel="stylesheet" href="/css/reset.css">
  24. <link href="{{ "/css/style.css" | relURL }}" rel="stylesheet" id="theme-stylesheet">
  25. <!-- <link href="{{ "css/style.default.css" | relURL }}" rel="stylesheet" id="theme-stylesheet"> -->
  26. {{ end }}