mirror of
https://github.com/seigler/seigler.github.io
synced 2025-07-26 23:06: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"
|
||||
url = "/"
|
||||
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"
|
||||
menu: "main"
|
||||
---
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 {
|
||||
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
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 {
|
||||
color: inherit;
|
||||
&:hover {
|
||||
&:hover, &:focus {
|
||||
background-color: @color-text;
|
||||
color: #20282a;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
::selection {
|
||||
|
|
|
@ -25,7 +25,7 @@ body {
|
|||
margin: 0 0 0 auto;
|
||||
overflow: auto;
|
||||
perspective: none;
|
||||
> * {
|
||||
> *, &:before, &:after {
|
||||
opacity: 0.8;
|
||||
transform: translateZ(-50vmin);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue