1
0

Refined design

This commit is contained in:
Tony Grosinger 2019-03-25 21:07:55 -07:00
parent b2bde846e0
commit 4987144ea1
12 changed files with 168 additions and 66 deletions

View File

@ -45,6 +45,9 @@ enableGitInfo = false
location = "Orcas Island, WA"
custom_css = ["customizations.css"]
# Discussion link (e.g. link to a forum, mailing list, or chat).
# Uncomment line below to use.
# discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }
@ -87,7 +90,7 @@ enableGitInfo = false
text = "Github"
[[params.social]]
icon = "key"
icon = "keybase"
icon_pack = "fa"
link = "//keybase.io/tgrosinger"
text = "Keybase"

View File

@ -9,7 +9,17 @@ nocomments: true
I am a
* Software Engineer with <a href="https://extrahop.com/">ExtraHop Networks</a>.
* Hobbyist woodworker, maker, and tinkerer.
* Life-long learner, currently learning small-scale food farming and sustainable
living.
<ul class="fa-ul">
<li><span class="fa-li">
<i class="fas fa-chevron-right"></i></span>
Hobbyist woodworker, maker, and tinkerer.
</li>
<li><span class="fa-li">
<i class="fas fa-chevron-right"></i></span>
Software Engineer with <a href="https://extrahop.com/">ExtraHop Networks</a>
</li>
<li><span class="fa-li">
<i class="fas fa-chevron-right"></i></span>
Life-long learner, currently learning small-scale food farming and sustainable living.
</li>
</ul>

View File

@ -1,15 +1,15 @@
---
order: 3
title: "3D Printing and CNC"
hero_image: "hero.jpg"
nometadata: true
notags: true
noshare: true
nocomments: true
carouselimage: "/img/shapeoko.jpg"
carouselimagealt: "This is a test 2"
images: ["shapeoko.jpg"]
---
CNC machines and 3D printers have historically been inaccessible to the general
public because of their cost. Over the last several years however, the price has
been dropping quickly. I have wanted to explore these technologies for a long
time and finally have the opportunity to do so.
public because of their cost. However, over the last several years the
price has been dropping quickly. I have wanted to explore these technologies for
a long time and finally have the opportunity to do so.

View File

@ -1,15 +1,15 @@
---
order: 1
title: "Evelyn Farmstead"
hero_image: "hero.jpg"
nometadata: true
notags: true
noshare: true
nocomments: true
carouselimage: "/img/evelynfarmstead.jpg"
carouselimagealt: "This is a test 2"
images: ["evelynfarmstead.jpg", "barn.jpg", "pasture.jpg"]
---
Over the summer of 2018, Zoë and I moved to Orcas Island. Here we are learning
about small-scale farming and sustainable living. In the future we hope to
create a community space to give back to the community that welcomed us so
wonderfully.
create a community space where we give back to the community that welcomed and
supported us.

View File

@ -1,12 +1,12 @@
---
order: 2
title: "1983 Honda Shadow"
hero_image: "hero.jpg"
nometadata: true
notags: true
noshare: true
nocomments: true
carouselimage: "test.jpg"
carouselimagealt: "This is a test"
images: ["1983hondavt500c.jpg"]
---
Though it has fewer wheels than I imagined my project car would have, it accomplishes the goal just the same. A vehicle that is a joy to ride and easy to repair and tinker with.

View File

@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta name="theme" content="hugo-academic"> -->
{{ .Hugo.Generator }}
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link rel="stylesheet" href="{{ printf "//fonts.googleapis.com/css?family=Merriweather:400,700|Open+Sans:400,400italic,700|Roboto+Mono|PT+Sans+Narrow:400,700" . }}">
<link rel="stylesheet" href="{{ "styles.css" | relLangURL }}">
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
{{ end }}
{{ if .Site.GoogleAnalytics }}
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ .Site.GoogleAnalytics }}', 'auto');
{{ if .Site.Params.privacy_pack }}ga('set', 'anonymizeIp', true);{{ end }}
ga('require', 'eventTracker');
ga('require', 'outboundLinkTracker');
ga('require', 'urlChangeTracker');
ga('send', 'pageview');
</script>
<script async src="//www.google-analytics.com/analytics.js"></script>
<script async src="//cdnjs.cloudflare.com/ajax/libs/autotrack/2.4.1/autotrack.js"></script>
{{ end }}
{{ if or .Site.RSSLink .RSSLink }}
<link rel="alternate" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
<link rel="feed" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
{{ end }}
<link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16x16.png">
<link rel="manifest" href="/img/favicon/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
<link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
<link rel="apple-touch-icon" type="image/png" href="{{ "/img/icon-192.png" | relURL }}">
<link rel="canonical" href="{{ .Permalink }}">
<meta property="twitter:card" content="summary_large_image">
{{ range where $.Site.Params.social ".icon" "twitter" }}
<meta property="twitter:site" content="@{{ replaceRE "^//twitter.com/([^/]+)" "$1" .link }}">
<meta property="twitter:creator" content="@{{ replaceRE "^//twitter.com/([^/]+)" "$1" .link }}">
{{ end }}
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:title" content="{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}">
{{- with .Params.header.image }}<meta property="og:image" content="{{ printf "img/%s" . | absURL }}">{{end}}
<meta property="og:locale" content="{{ .Site.LanguageCode | default "en-us" }}">
{{ if .IsPage }}
{{ if not .PublishDate.IsZero }}<meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">
{{ else if not .Date.IsZero }}<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">{{ end }}
{{ if not .Lastmod.IsZero }}<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">{{ end }}
{{ else }}
{{ if not .Date.IsZero }}<meta property="og:updated_time" content="{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">{{ end }}
{{ end }}
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
{{ template "_internal/google_analytics_async.html" . }}
</head>
<body>

View File

@ -6,62 +6,42 @@
{{ end }}
<div class="post-style" itemprop="articleBody">
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
{{ $paginator := .Paginate (where .Data.Pages "Type" "projects") }}
{{ range first 1 $paginator.Pages }}
<div class="container carousel-item active">
<div class="row align-items-center">
<div class="col">
<h2>{{ .Title }}</h2>
<p>{{ .Content }}</p>
</div>
<div class="col">
{{ $paginator := .Paginate (where .Data.Pages "Type" "projects") }}
{{ range sort $paginator.Pages "Params.order" }}
<div class="row align-items-center">
<div class="col">
<h2>{{ .Title }}</h2>
<p>{{ .Content }}</p>
</div>
<div class="col">
{{ if gt (len .Params.images) 1 }}
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{{ range $idx, $element := .Params.images }}
<div class="carousel-item {{if eq $idx 0 }}active{{ end }}">
<img class="img-fluid rounded"
src="{{ .Params.carouselimage }}"
alt="{{ .Params.carouselimagealt }}">
src="/img/{{ $element }}">
</div>
{{ end }}
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
{{ end }}
{{ range after 1 $paginator.Pages }}
<div class="container carousel-item">
<div class="row align-items-center">
<div class="col">
<h2>{{ .Title }}</h2>
<p>{{ .Content }}</p>
</div>
<div class="col">
<img class="img-fluid rounded"
src="{{ .Params.carouselimage }}"
alt="{{ .Params.carouselimagealt }}">
</div>
</div>
</div>
{{ end }}
{{ else }}
<img class="img-fluid rounded"
src="/img/{{ index .Params.images 0 }}">
{{ end }}
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
{{ end }}
</div>
{{ if not .Params.notags }}
{{ partial "tags.html" . }}
{{ end }}
{{ if not .Params.noshare }}
{{ partial "share.html" . }}
{{ end }}
{{ if not .Params.nocomments }}
{{ partial "disqus.html" . }}
{{ end }}
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"

View File

@ -0,0 +1,26 @@
<div class="sidebar sticky" itemprop="author" itemscope itemtype="http://schema.org/Person">
<div class="author-avatar">
<a href="{{ "/" | relURL }}">
<img src="{{ (printf "/img/%s" $.Site.Params.avatar) | relURL }}" alt="{{ $.Site.Params.name }}" itemprop="image">
</a>
</div>
<div class="author-content">
<h3 class="author-name" itemprop="name">{{ $.Site.Params.name }}</h3>
<p class="author-bio" itemprop="description">{{ $.Site.Params.bio }}</p>
</div>
<div class="author-urls-wrapper">
<ul class="author-urls social-icons" aria-hidden="true">
<li itemprop="homeLocation" itemscope itemtype="http://schema.org/Place">
<span itemprop="name">{{ $.Site.Params.location }}</span>
</li>
{{ range $.Site.Params.social }}
<li>
<a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank" rel="noopener noreferrer">
<i class="fab fa-{{ .icon }}"></i>
{{ .text }}
</a>
</li>
{{ end }}
</ul>
</div>
</div>

View File

@ -0,0 +1,8 @@
h1 {
font-family: 'PT Sans Narrow', sans-serif;
font-weight: 700 !important;
}
h2 {
font-family: 'PT Sans Narrow', sans-serif;
}

BIN
static/img/1983hondavt500c.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

BIN
static/img/barn.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

BIN
static/img/pasture.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB