A tumblelog theme for Hugo
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

41 righe
1.4 KiB

  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. <link rel="stylesheet" href="{{ relURL "/css/main.css" }}">
  9. <script src="https://use.fontawesome.com/8ef49d4a0a.js"></script>
  10. {{- with .Type -}}
  11. <link rel="stylesheet" href="{{ relURL "/css/" }}{{ . }}.css">
  12. {{ end }}
  13. <link rel="alternate" type="application/rss+xml" title="{{ partial "data/title" . }}"
  14. href="{{ .RSSLink }}">
  15. {{- template "_internal/opengraph.html" . -}}
  16. {{ with .Params.image }}
  17. <meta name="og:image" content="{{ "/images/" | absURL }}{{ .}}">
  18. {{ end }}
  19. {{- with .Site.Params.twitter -}}
  20. <meta name="twitter:site" content="@{{ . }}">
  21. {{- end -}}
  22. {{ if not .Page.Params.via }}
  23. <meta name="twitter:creator" content="@{{ .Site.Params.twitter }}">
  24. {{ end }}
  25. {{- template "_internal/twitter_cards.html" -}}
  26. </head>
  27. <body>
  28. <header>
  29. <h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1>
  30. <div id="site-social">
  31. {{ range .Site.Params.social}}
  32. <a href="{{ .url }}" title="{{ .title }}">
  33. <i class="fa {{ .fa_icon }}"></i>
  34. </a>
  35. {{ end }}
  36. </div>
  37. </header>