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; text-decoration: none;
height: 10vh;
border-radius: 50%;
} }
div.readme { .icons svg {
text-align: left !important; margin-left: 10px;
padding-top: 50px; margin-right: 10px;
} }
/*apply accent colour to links*/ .content {
margin: auto;
a:link, padding-top: 5em;
a:visited {
color: var(--accent);
} }
a.icon:hover { .readme {
text-decoration: none; font-size: 12px;
} }
a:hover { .content h1,h2,h3,h4,h5,h6 {
color: var(--accent) !important; padding: .2em;
} }
/*paginator at bottom of list view*/ .center-splash {
text-align: center;
.pages {
padding: 15px 0;
} }
.pages-icon { .splash-image img {
padding: 0 15px; border-radius: 2em;
} }
/*list item for posts and projects*/ @media screen and (max-height: 600px) {
.center-splash {
.item { padding-top: 10%;
padding: 10px 0; }
} }
.item-tag { @media screen and (max-width: 900px) {
background-color: var(--accent); .splash-image img {
max-height: 250px;
}
} }
/*navigation bar icons*/ @media screen and (min-width: 900px) {
.content {
.navbar-icon { max-width: 75% ;
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%;
}

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