index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. {{ define "head" }}
  2. {{ if .Site.Params.bgImg -}}
  3. <style>.bg-img {background-image: url('{{.Site.Params.bgImg | absURL}}');opacity: .03;}</style>
  4. {{- end -}}
  5. {{ end }}
  6. {{ define "main" }}
  7. {{- if (or .Site.Params.images .Site.Params.bgImg) }}
  8. <div class="bg-img"></div>
  9. {{- end }}
  10. <div id="spotlight" class="animated fadeIn">
  11. <div id="home-center">
  12. <h1 id="home-title">Track3's Blog</h1>
  13. {{- with .Site.Params.social }}
  14. <div id="home-social">
  15. {{ partialCached "social-icons.html" . }}
  16. </div>
  17. {{- end }}
  18. <nav id="home-nav" class="site-nav">
  19. {{- range .Site.Menus.main }}
  20. <a href="{{ .URL }}">{{ .Name }}</a>
  21. {{- end }}
  22. </nav>
  23. </div>
  24. <div id="home-footer">
  25. <p>
  26. &copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>
  27. {{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }} &#183; <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>{{ end }}
  28. </p>
  29. </div>
  30. </div>
  31. {{ end }}