mirror of https://github.com/artifacthub/blog.git
Updating the sidebar navigation
Signed-off-by: Matt Farina <matt@mattfarina.com>
This commit is contained in:
parent
514b8b9e10
commit
bc7a4ffc2f
|
|
@ -1,4 +0,0 @@
|
|||
baseURL = "https://blog.artifacthub.io/"
|
||||
languageCode = "en-us"
|
||||
title = "Artifact Hub Blog"
|
||||
theme = "hugo-geekdoc"
|
||||
|
|
@ -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/
|
||||
|
|
@ -3,22 +3,19 @@
|
|||
{{ $root := "/" }}
|
||||
|
||||
<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">
|
||||
{{ range site.Params.quicklinks }}
|
||||
<li>
|
||||
<span class="flex">
|
||||
<a href="https://artifacthub.github.io/hub/api/" target="_blank" class="gdoc-nav__entry gdoc-nav__entry-root">
|
||||
API docs
|
||||
<a href="{{ .url }}" target="_blank" class="gdoc-nav__entry gdoc-nav__entry-root">
|
||||
{{ .title }}
|
||||
<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>
|
||||
</div>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue