index.html 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. {{ define "header"}}
  2. {{- partial "_shared/navbar.html" . -}}
  3. {{ end }}
  4. {{ define "main" }}
  5. <div class="main-content">
  6. <header class="text-center">
  7. {{ with .Site.Params.index.picture }}
  8. <img src="{{ . | urlize | relURL }}" class="rounded-circle text-center index-image">
  9. {{ end }}
  10. <h1 class="index-title">{{ .Site.Params.index.title }}</h1>
  11. </header>
  12. <section class="text-center">
  13. {{ with .Site.Params.index.subtitle }}
  14. <h3 class="index-sub">{{ . }}</h3>
  15. {{ end }}
  16. {{ with .Site.Params.index.mdtext }}
  17. <h6 class="index-text">{{ . | markdownify }}</h6>
  18. {{ end }}
  19. </section>
  20. </div>
  21. {{- partial "_shared/social.html" . -}}
  22. {{ if isset .Site.Params.index "alertbar" }}
  23. {{ if .Site.Params.index.alertbar }}
  24. {{- partial "_shared/alertbar.html" . -}}
  25. {{ end }}
  26. {{ end }}
  27. {{end}}
  28. {{ define "footer" }}
  29. {{- partial "_shared/footer.html" . -}}
  30. {{end}}