A tumblelog theme for Hugo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header.html 1.6 KiB

7 years ago
7 years ago
7 years ago
7 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{{- partial "data/title" . -}}</title>
  5. {{ .Hugo.Generator }}
  6. {{ "<!-- Tumble theme for Hugo: https://github.com/adrianshort/tumble -->" | safeHTML }}
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta charset="utf-8">
  9. <link rel="stylesheet" href="{{ relURL "/css/main.css" }}">
  10. <!-- https://www.bootstrapcdn.com/fontawesome/ -->
  11. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
  12. {{- with .Type -}}
  13. <link rel="stylesheet" href="{{ relURL "/css/" }}{{ . }}.css">
  14. {{ end }}
  15. <link rel="alternate" type="application/rss+xml" title="{{ partial "data/title" . }}"
  16. href="{{ .RSSLink }}">
  17. {{- template "_internal/opengraph.html" . -}}
  18. {{ with .Params.image }}
  19. <meta name="og:image" content="{{ "/images/" | absURL }}{{ .}}">
  20. {{ end }}
  21. {{- with .Site.Params.twitter -}}
  22. <meta name="twitter:site" content="@{{ . }}">
  23. {{- end -}}
  24. {{ if not .Page.Params.via }}
  25. <meta name="twitter:creator" content="@{{ .Site.Params.twitter }}">
  26. {{ end }}
  27. {{- template "_internal/twitter_cards.html" -}}
  28. </head>
  29. <body>
  30. <header>
  31. <h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1>
  32. <div id="site-social">
  33. {{ range .Site.Params.social}}
  34. <a href="{{ .url }}" title="{{ .title }}">
  35. <i class="fa {{ .fa_icon }}"></i>
  36. </a>
  37. {{ end }}
  38. </div>
  39. </header>