Skip to content

Commit 41b02e1

Browse files
committed
fixup! Add Hugo-based docs site
1 parent 9f3c27f commit 41b02e1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/layouts/_default/default.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@
143143
font-size: 0.85em;
144144
}
145145

146+
img {
147+
max-width: 100%;
148+
height: auto;
149+
}
150+
146151
.heading-anchor {
147152
opacity: 0;
148153
margin-left: 0.3em;
@@ -198,7 +203,7 @@
198203
<body>
199204
<nav class="page-nav">
200205
<a href="{{ .Site.Home.RelPermalink }}"{{ if .IsHome }} class="active" aria-current="page"{{ end }}>Overview</a>
201-
<a href="{{ "/doc/latest/" | relURL }}">API documentation</a>
206+
<a href="{{ printf "doc/%s/" (.Site.Params.docsVersion | default "latest") | relURL }}">API documentation</a>
202207
</nav>
203208
<main>
204209
{{ .Content }}

0 commit comments

Comments
 (0)