Hugo theme.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

header.html 1.2 KiB

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