single.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{- define "main" -}}
  2. <div class="pub">
  3. {{ partial "page_header.html" . }}
  4. <div class="article-container">
  5. {{ if .Params.abstract }}
  6. <h3>{{ i18n "abstract" }}</h3>
  7. <p class="pub-abstract">{{ .Params.abstract | markdownify }}</p>
  8. {{ end }}
  9. {{ if and (.Params.publication_types) (ne (index .Params.publication_types 0) "0") }}
  10. <div class="row">
  11. <div class="col-md-1"></div>
  12. <div class="col-md-10">
  13. <div class="row">
  14. <div class="col-12 col-md-3 pub-row-heading">{{ i18n "publication_type" }}</div>
  15. <div class="col-12 col-md-9">
  16. {{ $pub_types := partial "functions/get_pub_types" $ }}
  17. {{ range $index, $pubtype := .Params.publication_types }}
  18. <a href="{{ (site.GetPage "section" "publication").RelPermalink }}#{{ . | urlize }}">
  19. {{ index $pub_types (int .) }}
  20. </a>
  21. {{ end }}
  22. </div>
  23. </div>
  24. </div>
  25. <div class="col-md-1"></div>
  26. </div>
  27. <div class="d-md-none space-below"></div>
  28. {{ end }}
  29. {{ if .Params.publication }}
  30. <div class="row">
  31. <div class="col-md-1"></div>
  32. <div class="col-md-10">
  33. <div class="row">
  34. <div class="col-12 col-md-3 pub-row-heading">{{ i18n "publication" }}</div>
  35. <div class="col-12 col-md-9">{{ .Params.publication | markdownify }}</div>
  36. </div>
  37. </div>
  38. <div class="col-md-1"></div>
  39. </div>
  40. <div class="d-md-none space-below"></div>
  41. {{ end }}
  42. <div class="space-below"></div>
  43. <div class="article-style">{{ .Content }}</div>
  44. {{ partial "page_footer" . }}
  45. </div>
  46. </div>
  47. {{- end -}}