got projects list working! 🎉

This commit is contained in:
Joshua Seigler 2017-02-13 03:38:58 -05:00
parent 6a456783f5
commit 24dfe2fd01
12 changed files with 39 additions and 26 deletions

View file

@ -9,12 +9,3 @@ theme = "eos"
name = "Home"
url = "/"
weight = -1
[[menu.main]]
name = "Posts"
url = "/posts/"
[[menu.main]]
name = "Presentations"
url = "/presentations/"
[[menu.main]]
name = "Projects"
url = "/projects/"

View file

@ -0,0 +1,4 @@
---
title: "Posts"
menu: "main"
---

View file

@ -0,0 +1,4 @@
---
title: "Presentations"
menu: "main"
---

View file

@ -1,3 +1,4 @@
---
title: "Projects"
menu: "main"
---

View file

@ -3,10 +3,13 @@
<head>
<meta charset="UTF-8">
<base href="{{ .Site.BaseURL }}">
<title>{{ block "title" . }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}</title>
<link rel="stylesheet" href="/css/bundle.css">
<link rel="canonical" href="{{ .Permalink }}">
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link rel="stylesheet" href="css/bundle.css">
</head>
<body class="{{ .Section | default .Title | urlize }}">
@ -18,6 +21,7 @@
</main>
{{ partial "footer" . }}
</div>
<script src="js/app.js"></script>
</body>
</html>

View file

@ -1,11 +0,0 @@
{{ define "title" }}Projects{{ end }}
{{ define "main" }}
{{ $projects := getJSON "https://api.github.com/users/seigler/repos" }}
<h1>Github Projects</h1>
<ul>
{{ range $projects }}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -0,0 +1,9 @@
{{ define "main" }}
{{ $projects := getJSON "https://api.github.com/users/seigler/repos" }}
<h1>My GitHub Projects</h1>
<ul class="post-list">
{{ range where $projects "fork" false }}
<li><a href="{{ .html_url }}"><span class="title">{{ .name }}</span> - <span class="summary">{{ .description }}</span></a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -19,9 +19,12 @@ html {
a {
color: inherit;
}
a:hover {
a:hover,
a:focus {
background-color: white;
color: #20282a;
text-decoration: none;
outline: none;
}
::-moz-selection {
background-color: white;
@ -95,7 +98,9 @@ body {
overflow: auto;
perspective: none;
}
.wrapper > * {
.wrapper > *,
.wrapper:before,
.wrapper:after {
opacity: 0.8;
transform: translateZ(-50vmin);
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,4 @@
(function () {
'use strict';
}());

View file

@ -20,9 +20,11 @@ html {
}
a {
color: inherit;
&:hover {
&:hover, &:focus {
background-color: @color-text;
color: #20282a;
text-decoration: none;
outline: none;
}
}
::selection {

View file

@ -25,7 +25,7 @@ body {
margin: 0 0 0 auto;
overflow: auto;
perspective: none;
> * {
> *, &:before, &:after {
opacity: 0.8;
transform: translateZ(-50vmin);
}