Updating the sidebar navigation

Signed-off-by: Matt Farina <matt@mattfarina.com>
This commit is contained in:
Matt Farina 2020-11-24 14:20:51 -05:00
parent 514b8b9e10
commit bc7a4ffc2f
3 changed files with 17 additions and 11 deletions

View File

@ -1,4 +0,0 @@
baseURL = "https://blog.artifacthub.io/"
languageCode = "en-us"
title = "Artifact Hub Blog"
theme = "hugo-geekdoc"

13
config.yaml Normal file
View File

@ -0,0 +1,13 @@
baseURL: "https://blog.artifacthub.io/"
languageCode: "en-us"
title: "Artifact Hub Blog"
theme: "hugo-geekdoc"
params:
quicklinks:
- title: Artifact Hub
url: https://artifacthub.io
- title: Documentation
url: https://artifacthub.io/docs/
- title: API docs
url: https://artifacthub.github.io/hub/api/

View File

@ -3,22 +3,19 @@
{{ $root := "/" }} {{ $root := "/" }}
<section class="gdoc-nav--main"> <section class="gdoc-nav--main">
{{ if .Site.Params.GeekdocMenuBundle }}
{{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.main.main) }}
{{ else }}
{{ partial "menu-filetree" . }}
{{ end }}
<ul class="gdoc-nav__list"> <ul class="gdoc-nav__list">
{{ range site.Params.quicklinks }}
<li> <li>
<span class="flex"> <span class="flex">
<a href="https://artifacthub.github.io/hub/api/" target="_blank" class="gdoc-nav__entry gdoc-nav__entry-root"> <a href="{{ .url }}" target="_blank" class="gdoc-nav__entry gdoc-nav__entry-root">
API docs {{ .title }}
<div class="gdoc-nav__icon"> <div class="gdoc-nav__icon">
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="ml-1" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg> <svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="ml-1" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>
</div> </div>
</a> </a>
</span> </span>
</li> </li>
{{ end }}
</ul> </ul>
</section> </section>