Docs: Generate client pages (#45)

This commit is contained in:
Janos Dobronszki
2021-01-28 13:14:16 +00:00
committed by GitHub
parent efaafa546a
commit 9fba76fd4e
6 changed files with 187 additions and 78 deletions

View File

@@ -27,11 +27,11 @@
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $projects := where .Site.RegularPages "Section" "projects" }}
{{ $pages = first (default 100 .Site.Params.homePosts) (sort (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) "Date" "desc") }}
<div class="container">
<section>
<div class="posts">
{{ $pages = .Site.Taxonomies.labels.readme }}
{{ range $i,$e := $pages }}
{{if modBool $i 2}}
@@ -58,6 +58,8 @@
{{ end }}
{{ end }}
<!-- todo: do not copypaste it all -->
</div>
</section>
{{ if gt (len $projects) 0}}

View File

@@ -5,18 +5,23 @@
<header class="article-header">
<div class="thumb">
<div>
<h1>{{ .Title }}</h1>
<h1><a href="/{{ .Params.servicename }}">{{ .Params.servicename }}</a></h1>
<div>
<a href="/{{ .Title }}/api"><u>API Spec</u></a>
<a href="/{{ .Params.servicename }}"><u>Readme</u></a>
&nbsp;
<a href="{{ $.Site.Params.source }}/tree/master/{{ .Title }}"><u>Source</u></a>
<a href="/{{ .Params.servicename }}-microjs"><u>Micro.js</u></a>
&nbsp;
<a href="/{{ .Params.servicename }}/api"><u>API Spec</u></a>
&nbsp;
<a href="{{ $.Site.Params.source }}/tree/master/{{ .Params.servicename }}"><u>Source</u></a>
</div>
<div class="post-meta">
<!-- <div>
By {{ .Params.author }} on <time>{{ .Date.Format "January 02, 2006" }}</time>
</div> -->
</div>
-->
<div class="tags">
{{ range (.GetTerms "tags") }}
{{ range (.GetTerms "labels") }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
</div>

View File

@@ -30,3 +30,6 @@ markup:
permalinks:
post: /:filename
taxonomies:
tag: "labels"