Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jaden/twentyfourteen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/gists.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/gists.html b/layouts/partials/gists.html
new file mode 100644
index 0000000..cae7cfa
--- /dev/null
+++ b/layouts/partials/gists.html
@@ -0,0 +1,13 @@
+<aside id="categories-3" class="widget widget_categories">
+
+ <h1 class="widget-title">Recent Gists</h1>
+
+ <ul>
+ {{ $gists := getJSON "https://api.github.com/users/spf13/gists" }}
+ {{ range first 5 $gists }}
+ <li><a href="{{ .html_url }}" target="_blank">{{ with .description }}{{ . }}{{ else }}(No description){{end}}</a></li>
+ {{ end }}
+
+ </ul>
+
+</aside> \ No newline at end of file