Verified Commit 02efce9e authored by Adrian Pascu's avatar Adrian Pascu
Browse files

Show git revision and build time at the bottom of the navbar

parent 50b2e1e5
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -31,3 +31,10 @@ outputs:
  section:
    - "html"
    - "Calendar"

security:
  funcs:
    getenv:
      - "^HUGO_"
      - "^CI$"
      - "^CI_COMMIT_SHORT_SHA$"
+13 −0
Original line number Diff line number Diff line
@@ -249,6 +249,19 @@ full-page search still work the same way. */}}
    </ul>
  </div>
  {{ end }}

  <div
    id="build-info"
    style="text-align: center; margin: 20px 0; font-size: 0.8em; color: #586e75"
  >
    {{ with getenv "CI_COMMIT_SHORT_SHA" }}
    <a
      href="{{ $.Site.Params.gitlab_path }}/commit/{{ . }}"
      style="color: #586e75"
      >{{ . }}</a
    >
    {{ else }}dev{{ end }} · built {{ now.UTC.Format "2006-01-02 15:04" }} UTC
  </div>
</nav>

<script src="/js/fuse.bundle.js" defer></script>