Alternative content (RSS, (offline) JSON), social media partial
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
Bitte nicht hacken. Danke im Voraus.
|
||||
<h3>Social Media</h3>
|
||||
<ul>
|
||||
{{ range .Site.Data.socialmedia.accounts }}
|
||||
<li><a href="{{ .url }}">{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{- partial "social-media.html" . -}}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
@@ -4,8 +4,9 @@
|
||||
{{ .Content }}
|
||||
{{ $url := printf "%s/%s/repos" .Site.Params.gh_url .Site.Params.gh_user }}
|
||||
{{ $repos := getJSON $url }}
|
||||
{{ $repos_local := getJSON "data/repos.json" }}
|
||||
<section class="oss">
|
||||
{{ range $repos }}
|
||||
{{ range $repos_local }}
|
||||
<article>
|
||||
<h3><a href="{{ .html_url }}">{{ .name }}</a></h3>
|
||||
<p>{{ .description }}</p>
|
||||
|
||||
Reference in New Issue
Block a user