1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 08:35:31 -04:00

automatically resize/optimize images via Hugo processing

This commit is contained in:
2019-10-27 12:44:29 -04:00
parent 40091d914a
commit abf99c0106
20 changed files with 112 additions and 85 deletions

View File

@@ -1,19 +1,19 @@
{{ partial "header.html" . }}
{{ partial "blog-header.html" . }}
<main id="archive">
{{ range (where .Site.RegularPages "Type" "notes").GroupByDate "2006" }}
{{- range (where .Site.RegularPages "Type" "notes").GroupByDate "2006" }}
<section class="year">
<h2>{{ .Key }}</h2>
<ul>
{{ range .Pages }}
{{- range .Pages }}
<li>
<div class="date">{{ .Date.Format "Jan 2" }}</div>
<div class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></div>
</li>
{{ end }}
{{- end }}
</ul>
</section>
{{ end }}
{{- end }}
</main>
{{ partial "blog-footer.html" . }}
{{ partial "footer.html" . }}

View File

@@ -5,24 +5,19 @@
<div id="info">
<h1 itemprop="name headline" class="p-name"><a href="{{ .Permalink }}" itemprop="url" class="u-url no-underline">{{ .Title }}</a></h1>
<div id="meta">
by <span itemprop="author" itemscope itemtype="http://schema.org/Person" class="p-author"><a itemprop="url" rel="me author" href="{{ .Site.BaseURL }}" title="Jake Jarvis" class="h-card no-underline"><span itemprop="name" class="p-name">Jake Jarvis</span></a></span> &middot;
<a class="no-underline" href="{{ .Permalink }}" title="{{ .Date.Format "Mon, Jan 2 2006 3:04:05 PM MST" }}"><time itemprop="datePublished" content="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="dt-published">{{ .Date.Format "January 2, 2006" }}</time></a>
<!-- {{ if lt 1 .WordCount }}{{ .WordCount }} words{{ else }}{{ .WordCount }} word{{ end }} &middot; -->
<!-- {{ .ReadingTime }} minute read -->
<!-- &middot; <a class="no-underline" href="{{ .Permalink }}#commento">Comments</a> -->
{{ with .File }}&middot; <a class="no-underline" href="https://github.com/jakejarvis/jarv.is/blob/master/content/{{ .Path }}" title="Edit this page on GitHub" target="_blank" rel="noopener nofollow noreferrer">Improve Post</a>{{ end }}
by <span itemprop="author" itemscope itemtype="http://schema.org/Person" class="p-author"><a itemprop="url" rel="me author" href="{{ .Site.BaseURL }}" title="Jake Jarvis" class="h-card no-underline"><span itemprop="name" class="p-name">Jake Jarvis</span></a></span>
&middot; <a class="no-underline" href="{{ .Permalink }}" title="{{ .Date.Format "Mon, Jan 2 2006 3:04:05 PM MST" }}"><time itemprop="datePublished" content="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="dt-published">{{ .Date.Format "January 2, 2006" }}</time></a>
&middot; <a class="no-underline" href="https://github.com/jakejarvis/jarv.is/blob/master/content/{{ .File.Path }}" title="Edit this page on GitHub" target="_blank" rel="noopener nofollow noreferrer">Improve Post</a>
<div id="tags">
{{ with .Params.tags }}{{ if ge (len .) 1 }}
{{ range . }}<span itemprop="keywords" class="tag p-category"><!--<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">-->{{ . }}<!--</a>--></span>
{{ end }}
{{ end }}{{ end }}
{{- range .Params.tags }}
<span itemprop="keywords" class="tag p-category">{{ . }}</span>
{{- end }}
</div>
</div>
</div>
<div id="content" itemprop="articleBody" class="e-content">
{{ .Content }}
</div>
<!-- <div id="commento"></div> -->
</article>
</main>
{{ partial "blog-footer.html" . }}