footer.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {{ $author:= .Site.Data.author }}
  2. {{ if (index .Site.Data .Site.Language.Lang).author }}
  3. {{ $author = (index .Site.Data .Site.Language.Lang).author }}
  4. {{ end }}
  5. {{ $sections:= .Site.Data.sections }}
  6. {{ if (index .Site.Data .Site.Language.Lang).sections }}
  7. {{ $sections = (index .Site.Data .Site.Language.Lang).sections }}
  8. {{ end }}
  9. {{ $copyrightNotice := "© 2020 Copyright."}}
  10. {{ if (index .Site.Data .Site.Language.Lang).site }}
  11. {{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
  12. {{ if $siteConfig.copyright }}
  13. {{ $copyrightNotice = $siteConfig.copyright }}
  14. {{ end }}
  15. {{ end }}
  16. <footer class="container-fluid text-center align-content-center footer pb-2">
  17. <div class="container pt-5">
  18. <div class="row text-left">
  19. <div class="col-md-4 col-sm-12">
  20. <h5>{{ i18n "navigation" }}</h5>
  21. {{ if $sections }}
  22. <ul>
  23. {{- range sort $sections "section.weight" }}
  24. {{ if and (.section.enable) (.section.showOnNavbar)}}
  25. <li class="nav-item">
  26. <a class="smooth-scroll" href="/#{{ replace (lower .section.name) " " "-" }}">{{ .section.name }}</a>
  27. </li>
  28. {{ end }}
  29. {{- end }}
  30. </ul>
  31. {{ end }}
  32. </div>
  33. {{ if $author }}
  34. <div class="col-md-4 col-sm-12">
  35. <h5>{{ i18n "contact_me" }}</h5>
  36. <ul>
  37. {{ range $key,$value:= $author.contactInfo }}
  38. <li><span>{{ title $key }}: </span> <span>{{ $value }}</span></li>
  39. {{ end }}
  40. </ul>
  41. </div>
  42. {{ end }}
  43. {{ if .Site.Params.newsletter.enable }}
  44. <div class="col-md-4 col-sm-12">
  45. <!-- <h5>Newsletter</h5> -->
  46. <p>{{ i18n "newsletter_text" }}</p>
  47. <form>
  48. <div class="form-group">
  49. <input
  50. type="email"
  51. class="form-control"
  52. id="exampleInputEmail1"
  53. aria-describedby="emailHelp"
  54. placeholder="{{ i18n "newsletter_input_placeholder" }}"
  55. />
  56. <small id="emailHelp" class="form-text text-muted"
  57. >{{ i18n "newsletter_warning" }}</small
  58. >
  59. </div>
  60. <button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
  61. </form>
  62. </div>
  63. {{ end }}
  64. </div>
  65. </div>
  66. <hr />
  67. <div class="container">
  68. <div class="row text-left">
  69. <div class="col-md-4">
  70. <a id="theme" href="https://github.com/hossainemruz/toha" target="#">
  71. <img src="/assets/images/inverted-logo.png">
  72. Toha
  73. </a>
  74. </div>
  75. <div class="col-md-4 text-center">{{ $copyrightNotice }}</div>
  76. <div class="col-md-4 text-right">
  77. <a id="hugo" href="https://gohugo.io/">{{ i18n "hugoAttributionText" }}
  78. <img
  79. src="/assets/images/hugo-logo-wide.svg"
  80. alt="Hugo Logo"
  81. height="18"
  82. />
  83. </a>
  84. </div>
  85. </div>
  86. </div>
  87. </footer>