single.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}">
  3. <head>
  4. {{ partial "headers.html" . }}
  5. </head>
  6. <body>
  7. <div id="all">
  8. {{ partial "nav.html" . }}
  9. <div id="content">
  10. <div class="container">
  11. <div class="row">
  12. <!-- *** LEFT COLUMN *** -->
  13. <div class="col-md-9" id="blog-post">
  14. {{ if or .Params.author .Params.date }}
  15. <p class="text-muted text-uppercase mb-small text-right">
  16. {{ if isset .Params "authors" }}
  17. {{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}<a href="{{ (printf "%s/%s" ("authors" | relLangURL) ($author | urlize)) }}">{{ $author }}</a>{{ end }}
  18. {{ end }}
  19. {{ if and .Params.author .Params.date }} | {{ end }}
  20. {{ if .Params.date }}
  21. {{ $createdAt := .Date.Format .Site.Params.date_format }}
  22. {{ range $index, $month := slice "January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December" }}
  23. {{ $createdAt = replace $createdAt $month (i18n $month) }}
  24. {{ end }}
  25. {{ $createdAt }}
  26. {{ end }}
  27. </p>
  28. {{ end }}
  29. <div id="post-content">
  30. {{ .Content }}
  31. </div>
  32. <!-- /#post-content -->
  33. {{ if .Site.DisqusShortname }}
  34. <div id="comments">
  35. {{ template "_internal/disqus.html" . }}
  36. </div>
  37. {{ end }}
  38. </div>
  39. <!-- /#blog-post -->
  40. <!-- *** LEFT COLUMN END *** -->
  41. <!-- *** RIGHT COLUMN *** -->
  42. <div class="col-md-3">
  43. <!-- *** MENUS AND WIDGETS *** -->
  44. <!-- *** MENUS AND FILTERS END *** -->
  45. </div>
  46. <!-- /.col-md-3 -->
  47. <!-- *** RIGHT COLUMN END *** -->
  48. </div>
  49. <!-- /.row -->
  50. </div>
  51. <!-- /.container -->
  52. </div>
  53. <!-- /#content -->
  54. {{ partial "footer.html" . }}
  55. </div>
  56. <!-- /#all -->
  57. {{ partial "scripts.html" . }}
  58. </body>
  59. </html>