placeholder in front matter, social media links, open source from github
This commit is contained in:
15
layouts/_default/opensource.html
Normal file
15
layouts/_default/opensource.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
{{ $url := printf "%s/%s/repos" .Site.Params.gh_url .Site.Params.gh_user }}
|
||||
{{ $repos := getJSON $url }}
|
||||
<section class="oss">
|
||||
{{ range $repos }}
|
||||
<article>
|
||||
<h3><a href="{{ .html_url }}">{{ .name }}</a></h3>
|
||||
<p>{{ .description }}</p>
|
||||
</article>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user