Compare commits

..

9 commits

Author SHA1 Message Date
Lukas Joswiak 4ddf2e9b5d Rebase 2021-09-13 23:43:04 -07:00
Lukas Joswiak 4f9a391eb8 Don't use Jekyll when building page 2021-09-13 23:38:07 -07:00
Lukas Joswiak 72dc723bae Fix base URL 2021-09-13 23:24:29 -07:00
Lukas Joswiak 83b24a2349 Add example site 2021-09-13 23:24:29 -07:00
Lukas Joswiak d712622d17 GitHub pages test 2021-09-13 23:24:29 -07:00
Lukas Joswiak 9decabbbad Fix timestamp render issue for low width screens
The font-size rule specified with ems was recursively applying to the
<time> child, causing the date itself to be even smaller. I noticied
this in Safari on iOS.
2021-09-13 23:21:48 -07:00
Lukas Joswiak 0386588b47 Update default font to use newer system fonts 2021-09-13 22:16:00 -07:00
Lukas Joswiak d338b2e824 Update demo URL 2021-08-20 21:29:49 -07:00
Lukas Joswiak b2941c2fcf
Add taxonomies (#18)
https://gohugo.io/content-management/taxonomies/
2021-04-18 18:11:40 -07:00
10 changed files with 25 additions and 12 deletions

0
.nojekyll Normal file
View file

View file

@ -1,6 +1,6 @@
# Etch
Etch is a simple, responsive theme for [Hugo](https://gohugo.io) with a focus on writing. A live demo is available at https://themes.gohugo.io/theme/etch/.
Etch is a simple, responsive theme for [Hugo](https://gohugo.io) with a focus on writing. A live demo is available at https://lukasjoswiak.github.io/etch/.
<img src="https://raw.githubusercontent.com/LukasJoswiak/etch/master/images/screenshot_small.png" alt="screenshot" width="545px">

View file

@ -8,6 +8,8 @@ html {
body {
color: #ebebeb;
background: #121212;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
header#banner a {

View file

@ -9,7 +9,7 @@ html {
body {
font-size: 16px;
font-size: 1.6rem;
font-family: 'Helvetica Neue', 'Arial', sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: #313a3d;
width: 100%;
margin: 0 auto;
@ -139,10 +139,11 @@ main#content header#post-header h1 {
display: block;
font-size: 23px;
font-size: 2.3rem;
font-weight: 600;
line-height: 1.15;
}
main#content header#post-header div {
main#content header#post-header > div {
display: block;
font-size: 0.85em;
color: #767676;

View file

@ -27,8 +27,8 @@ main#content ul#posts {
/* single.html styles */
main#content header#post-header h1 {
font-size: 26px;
font-size: 2.6rem;
font-size: 24px;
font-size: 2.4rem;
}
main#content img {

File diff suppressed because one or more lines are too long

6
layouts/_default/li.html Normal file
View file

@ -0,0 +1,6 @@
<li>
<a href="{{ .Permalink }}">
{{ .Title }}
<small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>
</a>
</li>

View file

@ -0,0 +1,8 @@
{{ define "main" }}
<h3>{{ .Title }}</h3>
<ul id="posts">
{{- range .Pages }}
{{ .Render "li" }}
{{- end }}
</ul>
{{ end }}

View file

@ -1,11 +1,6 @@
<h3>Posts</h3>
<ul id="posts">
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
<a href="{{ .Permalink }}">
{{ .Title }}
<small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>
</a>
</li>
{{ .Render "li" }}
{{- end }}
</ul>

View file

@ -3,6 +3,7 @@ license = "MIT"
licenselink = "https://github.com/LukasJoswiak/etch/blob/master/LICENSE"
description = "Lightweight Hugo theme with a focus on content"
homepage = "https://github.com/LukasJoswiak/etch"
demosite = "https://lukasjoswiak.github.io/etch/"
tags = ["simple", "minimal", "clean", "fast", "blog", "responsive", "dark mode", "privacy"]
features = ["fast", "blog", "syntax highlighting", "dark mode"]
min_version = "0.41"