add hugo sources

master
Kevin Schoon 6 years ago
parent 6c8ffe602a
commit 7b1bf2980c

3
.gitignore vendored

@ -26,3 +26,6 @@ _testmain.go
*.swp
bin/
www/public/
www/data/

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "www/themes/minimal"]
path = www/themes/minimal
url = https://github.com/calintat/minimal

@ -21,3 +21,6 @@ test:
bin/pomo: bindata.go
@echo mkdir bin 2>/dev/null || true
go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo
www/data/readme.json:
cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > $@

@ -0,0 +1,19 @@
baseURL = "pomo"
languageCode = "en-us"
title = "Pomo"
theme = "minimal"
#disqusShortname = "username" # delete this to disable disqus comments
#googleAnalytics = ""
[params]
author = "Kevin Schoon"
description = "Pomodoro Command Line Interface"
githubUsername = "#"
accent = "red"
showBorder = true
backgroundColor = "white"
font = "Raleway" # should match the name on Google Fonts!
highlight = true
highlightStyle = "solarized-dark"
highlightLanguages = ["go", "haskell", "kotlin", "scala", "swift"]
profilePic = "/tomato.png"

@ -0,0 +1,26 @@
{{ partial "header" . }}
<main>
<div class="intro">
{{ with .Site.Params.profilePic }} <img class="profile" src="{{ . }}"> {{ end }}
<h1>{{ .Site.Title }}</h1>
<h2>{{ markdownify .Site.Params.Description }}</h2>
<div class="btn-group" role="group" aria-label="...">
<button type="button" class="btn btn-default">
<a href="https://github.com/kevinschoon/pomo">install pomo</a>
</button>
</div>
</div>
<div class="readme">
{{ index .Site.Data.readme "content" | markdownify }}
</div>
</main>

@ -0,0 +1,109 @@
html,
body {
height: 100%;
}
body {
padding-top: 55px;
display: flex;
text-align: center;
flex-direction: column;
}
main {
margin: auto;
padding: 25px;
flex: 1 0 auto;
max-width: 750px;
}
/*footer*/
.copyright {
margin: 15px 0;
}
/*home page*/
/*
.intro {
transform: translateY(22vh);
}
*/
.intro>h1 {
color: #212121;
font-size: 12vh;
}
.intro>h2 {
color: #757575;
font-size: 3vmin;
}
.intro>.profile {
width: 10vh;
height: 10vh;
border-radius: 50%;
}
div.readme {
text-align: left !important;
padding-top: 100px;
}
/*apply accent colour to links*/
a:link,
a:visited {
color: var(--accent);
}
a.icon:hover {
text-decoration: none;
}
a:hover {
color: var(--accent) !important;
}
/*paginator at bottom of list view*/
.pages {
padding: 15px 0;
}
.pages-icon {
padding: 0 15px;
}
/*list item for posts and projects*/
.item {
padding: 10px 0;
}
.item-tag {
background-color: var(--accent);
}
/*navigation bar icons*/
.navbar-icon {
font-size: 125%;
display: inline-block !important;
}
/*coloured borders at top and bottom of the page*/
.navbar.navbar-default {
border-top: var(--border-width) solid var(--accent);
}
footer {
border-bottom: var(--border-width) solid var(--accent);
}
img {
max-width: 100%;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

@ -0,0 +1 @@
Subproject commit 7d929851ffdd5a0752d8b1f05596cf7cbf907982
Loading…
Cancel
Save