選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

baseof.html 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="{{ $.Site.LanguageCode | default "en" }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. {{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
  7. <title>{{ block "title" . }}{{ .Site.Title }} {{ with .Params.Title }} | {{ . }}{{ end }}{{ end }}</title>
  8. <meta name="HandheldFriendly" content="True">
  9. <meta name="MobileOptimized" content="320">
  10. <meta name="viewport" content="width=device-width,minimum-scale=1">
  11. {{ .Hugo.Generator }}
  12. {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
  13. {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
  14. <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
  15. {{ else }}
  16. <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
  17. {{ end }}
  18. {{ $css_path := $.Param "dev.css_path" | default "themes/gohugo-theme-ananke/static/dist/css" }}
  19. {{ with $css_path }}
  20. {{ range readDir . }}
  21. <link href='/dist/css/{{ .Name }}' rel='stylesheet' type="text/css" data-turbolinks-track="reload" />
  22. {{ end }}
  23. {{ end }}
  24. {{ block "favicon" . }}
  25. {{ partial "site-favicon.html" . }}
  26. {{ end }}
  27. {{ if .RSSLink }}
  28. <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
  29. <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
  30. {{ end }}
  31. {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
  32. {{- template "_internal/opengraph.html" . -}}
  33. {{- template "_internal/google_news.html" . -}}
  34. {{- template "_internal/schema.html" . -}}
  35. {{- template "_internal/twitter_cards.html" . -}}
  36. {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
  37. {{ template "_internal/google_analytics_async.html" . }}
  38. {{ end }}
  39. </head>
  40. <body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
  41. {{ block "header" . }}{{ partial "site-header.html" .}}{{ end }}
  42. <main class="pb7" role="main">
  43. {{ block "main" . }}{{ end }}
  44. </main>
  45. {{ block "footer" . }}{{ partial "site-footer.html" . }}{{ end }}
  46. {{ block "scripts" . }}{{ partial "site-scripts.html" . }}{{ end }}
  47. </body>
  48. </html>