rm hugo submodule, simplify docs site

This commit is contained in:
Kevin Schoon 2021-07-28 19:49:26 -04:00
parent eccaca0dc4
commit b2fc750ed3
6 changed files with 100 additions and 112 deletions

View File

@ -1,19 +1,4 @@
baseURL = "/pomo"
languageCode = "en-us" languageCode = "en-us"
title = "Pomo" title = "Pomo"
theme = "minimal" baseURL = "/pomo"
#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"

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
{{- block "title" . -}}
{{ .Site.Title }}
{{- end }}
</title>
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/pure.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<!-- Code that all your templates share, like a header -->
<div class="content">
{{- block "main" . }}
<!-- The part of the page that begins to differ between templates -->
{{ end }}
</div>
{{- block "footer" . -}}
<div id="footer">
<small>
{{ now.Format "2006"}}
</small>
</div>
{{ end }}
</body>
</html>

View File

@ -1,25 +1,15 @@
{{ partial "header" . }} {{ define "main" }}
<main> <main>
<div class="intro"> <div class="intro">
<a href="https://github.com/kevinschoon/pomo"> <img class="tomato" src="/tomato.png" /> </a>
{{ with .Site.Params.profilePic }} <img class="profile" src="{{ . }}"> {{ end }} <h1> Pomo </h1>
<h1> Pomodoro Command Line Interface </h1>
<h1>{{ .Site.Title }}</h1> <img class="demo" src="/demo.gif" />
<h2>{{ markdownify .Site.Params.Description }}</h2>
<div class="btn-group" role="group" aria-label="...">
<a class="btn btn-default" href="https://github.com/kevinschoon/pomo">github</a>
<a class="btn btn-default" href="https://github.com/kevinschoon/pomo/releases">releases</a>
</div> </div>
</div>
<div class="readme"> <div class="readme">
{{ index .Site.Data.readme "content" | markdownify }} {{ index .Site.Data.readme "content" | markdownify }}
</div> </div>
</main> </main>
{{ end }}

View File

@ -1,109 +1,83 @@
html, * {
body { -webkit-box-sizing: border-box;
height: 100%; -moz-box-sizing: border-box;
box-sizing: border-box;
} }
body { :root {
padding-top: 55px; --accent: #b1675d;
display: flex; --light-gray: #eee;
text-align: center; --dark-gray: #c2c2c2;
flex-direction: column; --white: #f8f9fa;
--black: #2d2d2d;
--border-width: 5px;
} }
main { body {}
margin: auto;
padding: 25px; h1,
flex: 1 0 auto; h2,
max-width: 1200px; h3,
h4,
h5,
h6,
label {
color: var(--black);
} }
/*footer*/
.copyright {
margin: 15px 0;
}
/*home page*/
/*
.intro { .intro {
transform: translateY(22vh); text-align: center;
}
*/
.intro>h1 {
color: #212121;
font-size: 12vh;
} }
.intro>h2 { .tomato {
color: #757575; max-width: 20em;
font-size: 3vmin;
} }
.intro>.profile { .icons a {
width: 10vh;
height: 10vh;
border-radius: 50%;
}
div.readme {
text-align: left !important;
padding-top: 50px;
}
/*apply accent colour to links*/
a:link,
a:visited {
color: var(--accent);
}
a.icon:hover {
text-decoration: none; text-decoration: none;
} }
a:hover { .icons svg {
color: var(--accent) !important; margin-left: 10px;
margin-right: 10px;
} }
/*paginator at bottom of list view*/ .content {
margin: auto;
.pages { padding-top: 5em;
padding: 15px 0;
} }
.pages-icon { .readme {
padding: 0 15px; font-size: 12px;
} }
/*list item for posts and projects*/ .content h1,h2,h3,h4,h5,h6 {
padding: .2em;
.item {
padding: 10px 0;
} }
.item-tag { .center-splash {
background-color: var(--accent); text-align: center;
} }
/*navigation bar icons*/ .splash-image img {
border-radius: 2em;
.navbar-icon {
font-size: 125%;
display: inline-block !important;
} }
/*coloured borders at top and bottom of the page*/ @media screen and (max-height: 600px) {
.center-splash {
.navbar.navbar-default { padding-top: 10%;
border-top: var(--border-width) solid var(--accent); }
} }
footer { @media screen and (max-width: 900px) {
border-bottom: var(--border-width) solid var(--accent); .splash-image img {
max-height: 250px;
}
} }
img { @media screen and (min-width: 900px) {
max-width: 100%; .content {
max-width: 75% ;
} }
}

11
www/static/css/pure.css Normal file

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
Subproject commit 7d929851ffdd5a0752d8b1f05596cf7cbf907982