mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 21:14:36 +00:00
Docs: Generate client pages (#45)
This commit is contained in:
@@ -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}}
|
||||
|
||||
@@ -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>
|
||||
|
||||
<a href="{{ $.Site.Params.source }}/tree/master/{{ .Title }}"><u>Source</u></a>
|
||||
<a href="/{{ .Params.servicename }}-microjs"><u>Micro.js</u></a>
|
||||
|
||||
<a href="/{{ .Params.servicename }}/api"><u>API Spec</u></a>
|
||||
|
||||
<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>
|
||||
|
||||
@@ -30,3 +30,6 @@ markup:
|
||||
|
||||
permalinks:
|
||||
post: /:filename
|
||||
|
||||
taxonomies:
|
||||
tag: "labels"
|
||||
Reference in New Issue
Block a user