mirror of
https://github.com/seigler/seigler.github.io
synced 2025-07-27 07:16:09 +00:00
got projects list working! 🎉
This commit is contained in:
parent
6a456783f5
commit
24dfe2fd01
12 changed files with 39 additions and 26 deletions
|
@ -9,12 +9,3 @@ theme = "eos"
|
||||||
name = "Home"
|
name = "Home"
|
||||||
url = "/"
|
url = "/"
|
||||||
weight = -1
|
weight = -1
|
||||||
[[menu.main]]
|
|
||||||
name = "Posts"
|
|
||||||
url = "/posts/"
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Presentations"
|
|
||||||
url = "/presentations/"
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Projects"
|
|
||||||
url = "/projects/"
|
|
||||||
|
|
4
src/content/posts/_index.md
Normal file
4
src/content/posts/_index.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: "Posts"
|
||||||
|
menu: "main"
|
||||||
|
---
|
4
src/content/presentations/_index.md
Normal file
4
src/content/presentations/_index.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: "Presentations"
|
||||||
|
menu: "main"
|
||||||
|
---
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
title: "Projects"
|
title: "Projects"
|
||||||
|
menu: "main"
|
||||||
---
|
---
|
||||||
|
|
|
@ -3,10 +3,13 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<base href="{{ .Site.BaseURL }}">
|
||||||
<title>{{ block "title" . }}
|
<title>{{ block "title" . }}
|
||||||
{{ .Title }} - {{ .Site.Title }}
|
{{ .Title }} - {{ .Site.Title }}
|
||||||
{{ end }}</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>
|
</head>
|
||||||
|
|
||||||
<body class="{{ .Section | default .Title | urlize }}">
|
<body class="{{ .Section | default .Title | urlize }}">
|
||||||
|
@ -18,6 +21,7 @@
|
||||||
</main>
|
</main>
|
||||||
{{ partial "footer" . }}
|
{{ partial "footer" . }}
|
||||||
</div>
|
</div>
|
||||||
|
<script src="js/app.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -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 }}
|
|
9
src/themes/eos/layouts/section/projects.html
Normal file
9
src/themes/eos/layouts/section/projects.html
Normal 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 }}
|
|
@ -19,9 +19,12 @@ html {
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
a:hover {
|
a:hover,
|
||||||
|
a:focus {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: #20282a;
|
color: #20282a;
|
||||||
|
text-decoration: none;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
::-moz-selection {
|
::-moz-selection {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
@ -95,7 +98,9 @@ body {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
perspective: none;
|
perspective: none;
|
||||||
}
|
}
|
||||||
.wrapper > * {
|
.wrapper > *,
|
||||||
|
.wrapper:before,
|
||||||
|
.wrapper:after {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
transform: translateZ(-50vmin);
|
transform: translateZ(-50vmin);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
4
src/themes/eos/static/js/app.js
Normal file
4
src/themes/eos/static/js/app.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
}());
|
|
@ -20,9 +20,11 @@ html {
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
&:hover {
|
&:hover, &:focus {
|
||||||
background-color: @color-text;
|
background-color: @color-text;
|
||||||
color: #20282a;
|
color: #20282a;
|
||||||
|
text-decoration: none;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::selection {
|
::selection {
|
||||||
|
|
|
@ -25,7 +25,7 @@ body {
|
||||||
margin: 0 0 0 auto;
|
margin: 0 0 0 auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
perspective: none;
|
perspective: none;
|
||||||
> * {
|
> *, &:before, &:after {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
transform: translateZ(-50vmin);
|
transform: translateZ(-50vmin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue