Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About #40

Merged
merged 52 commits into from
Jan 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
28f816f
clean up about page md content
apreshill Jan 7, 2021
50dc0c2
new split page layout
apreshill Jan 7, 2021
2fa68b1
partial to show summary bits
apreshill Jan 7, 2021
380cfd1
make profile column sticky
apreshill Jan 7, 2021
096a36e
allow profile left/right
apreshill Jan 7, 2021
fc8e096
peach
apreshill Jan 7, 2021
7c23f18
avatar
apreshill Jan 8, 2021
ec10e23
tweak navbar
apreshill Jan 8, 2021
8143cba
clean up assets
apreshill Jan 8, 2021
68e3b45
praise be
apreshill Jan 8, 2021
21e0012
small tweak
apreshill Jan 8, 2021
8aec7c6
tweaks
apreshill Jan 8, 2021
4047c4b
cacn exclude categories
apreshill Jan 8, 2021
e40f1f9
margins when profile left
apreshill Jan 8, 2021
535740b
testing profile left
apreshill Jan 8, 2021
f8d39e6
reduce margin on profile column
apreshill Jan 8, 2021
2c53f0e
testing dates
apreshill Jan 8, 2021
eef8ea1
show most recent content by date, in reverse, so newest at the top
apreshill Jan 8, 2021
862557f
soften horizontal lines
apreshill Jan 8, 2021
2f64ec4
add glow on hover
apreshill Jan 8, 2021
bd4fc79
dim wide col too
apreshill Jan 8, 2021
65ee45f
clean up longer YAML fields
apreshill Jan 8, 2021
8c0c706
add something to header
apreshill Jan 8, 2021
c4010e0
use YAML to configure action link in header
apreshill Jan 8, 2021
915e5b3
more styling
apreshill Jan 8, 2021
c7eb86f
typo
apreshill Jan 8, 2021
3809e18
fix summary-li css
apreshill Jan 9, 2021
9fbbcf5
rework for headline
apreshill Jan 9, 2021
d847729
trim yaml
apreshill Jan 9, 2021
6b6f288
css extensions
apreshill Jan 9, 2021
34e9ea8
small css tweaks
apreshill Jan 9, 2021
5cac154
customized yaml
apreshill Jan 9, 2021
a936ab0
soften border colors
apreshill Jan 9, 2021
08676e6
rearrange yaml keys
apreshill Jan 9, 2021
c774181
update layouts with tachyons classes for margins and padding
apreshill Jan 9, 2021
33bc97c
testing spacing
apreshill Jan 9, 2021
24c0f71
tweaking
apreshill Jan 9, 2021
075105e
switch sidebar
apreshill Jan 9, 2021
a9661b5
fix about on mobile if sidebar right
apreshill Jan 9, 2021
332496a
fix about mobile if sidebar on left
apreshill Jan 9, 2021
de72a2e
final fixes to mobile
apreshill Jan 9, 2021
b1e7c6b
about is a listing page now
apreshill Jan 9, 2021
9eea752
move layout to about/list
apreshill Jan 9, 2021
9550df0
clean up previous layout work
apreshill Jan 9, 2021
cc8d5da
testing different knobs
apreshill Jan 9, 2021
4ea892f
dim/glow on hover disabled on mobile
apreshill Jan 10, 2021
384d2b3
fix glow-on-hover on mobile
apreshill Jan 10, 2021
b047acc
about needs css
apreshill Jan 10, 2021
4fb7413
testing yaml
apreshill Jan 10, 2021
75289a5
update hugo layouts
apreshill Jan 10, 2021
480fbb5
decrease margin slightly
apreshill Jan 10, 2021
153de2b
back to peach
apreshill Jan 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions assets/scaffold.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ h1, h2, h3, h4, h5, h6 {
@extend .#{$footerTextColor};
}

// apply tachyons classes to blog post markdown
.post-body {
// apply tachyons classes to blog post and single page markdown
.post-body,
.page-body {

h1, h2, h3, h4, h5, h6 { @extend .lh-title ; }
h1 { @extend .f1 ; }
Expand Down Expand Up @@ -115,7 +116,7 @@ h1, h2, h3, h4, h5, h6 {
}
}

// apply tachyons classes to blog lists
// apply tachyons classes to blog lists
.blog-content {
article { @extend .b--#{$borderColor} ; }
}
Expand Down Expand Up @@ -389,6 +390,40 @@ details#PageTableOfContents nav#TableOfContents ul li:hover {
@extend .bg-#{$siteBgColor};
}

// about page
.sticky {
position: -webkit-sticky;
position: sticky;
@extend .static-l, .top-0-l;
}

audio {
filter: sepia(0%) saturate(0%) grayscale(1) contrast(99%) invert(100%);
width: 8rem;
height: 2rem;
}
.controls button:hover,
.controls button:focus {
@extend .o-10;
}
// apply tachyons classes to about page lists
.featured-content h5,
.featured-content article {
@extend .b--#{$borderColor} ;
}
.glow-on-hover {
@extend .o-80, .glow;
}
@media screen and (max-width: 48em) {
.glow-on-hover {
opacity: 1;
}
}

.about-sidebar {
@extend .bg-#{$sidebarBgColor};
}

// Fontawesome icons
$fa-font-path: "../webfonts";
@import "fontawesome-free-5.15.1-web/scss/fontawesome.scss";
Expand Down
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
baseURL = "/"
languageCode = "en"
title = "Blogophonic"
author = "Formspree"
author = "Hi there"
copyright = "" # set to override the auto generated copyright using org info and now year
googleAnalytics = ""
disqusShortname = ""
Expand Down Expand Up @@ -54,7 +54,7 @@ enableEmoji = true
# use a built-in color theme
# one of: forest / grayscale / peach / poppy /
# sky / violet / water
theme = "poppy"
theme = "peach"
# or, leave theme empty & make your own palette
# basic color options: use only color names as shown in the
# "Color Palette" section of http://tachyons.io/docs/themes/skins/
Expand Down
52 changes: 52 additions & 0 deletions content/about/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
title: "About"
description: |
A blog template for Hugo developed by Formspree and available for free.
date: 2019-02-19T14:47:22-06:00
show_header: true

## Configure header of page
text_align_right: false
show_title_as_headline: false
headline: |
Hi, my name is Emily Cooper. Nice to meet you.
subheadline: |
I'm a driven 20-something American from Chicago who moved to Paris for an unexpected job opportunity. I've been tasked with bringing an American point of view to a venerable French marketing firm.

## Configure sidebar position & look
sidebar_left: true
glow_on_hover: true # makes each column dim when no hover

## Configure page content in wide column
title_label: "What I'm up to lately" # leave blank to exclude
number_featured: 2 # pulling from mainSections in config.toml
number_categories: 3 # set to zero to exclude
show_intro: true
intro: |
Cultures clash as I adjust to the challenges of life in Paris while juggling my career, new friendships, and love life. Here is how to catch up with me lately!
show_outro: true
outro: |
<i class="fas fa-mug-hot pr2"></i>If my blog has helped you, you can [buy me a coffee](https://ko-fi.com/)!

## Configure sidebar content in narrow column
author: "Emily Cooper"
role: "Social media strategy @ Savoir"
avatar: avatar.jpg
avatar_shape: rounded # circle, square, rounded
show_social: true
show_audio_link: true
audio_link:
- name: How to say my name
url: audio.m4a
link_list_label: "Interests" # bookmarks, elsewhere, etc.
link_list:
- name: Paris
url: https://en.wikipedia.org/wiki/Paris
- name: Pastries
url: https://en.wikipedia.org/wiki/Pastry
- name: People
url: https://en.wikipedia.org/wiki/People
---

** index doesn't contain a body, just front matter above.
See about/list.html in the layouts folder **
Binary file removed content/about/assets/blogophonic-mark-dark.png
Binary file not shown.
Binary file removed content/about/assets/simple-icons.png
Binary file not shown.
Binary file removed content/about/assets/thumb-contact-form.png
Binary file not shown.
Binary file removed content/about/assets/thumb-css-grid.png
Binary file not shown.
Binary file removed content/about/assets/thumb-tachyons.png
Binary file not shown.
Binary file added content/about/audio.m4a
Binary file not shown.
Binary file added content/about/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 0 additions & 74 deletions content/about/index.html

This file was deleted.

3 changes: 2 additions & 1 deletion content/blog/spoonful-series/01-spoonful.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "A first post"
weight: 1
subtitle: ""
excerpt: "Grid is the very first CSS module created specifically to solve the layout problems we’ve all been hacking our way around for as long as we’ve been making websites."
date: 2019-07-02
date: 2021-01-01
author: "Eric Anderson"
draft: false
series:
Expand All @@ -12,6 +12,7 @@ tags:
- hugo-site
categories:
- Theme Features
- R
# layout options: single, single-sidebar, single-series
layout: single-series
---
Expand Down
3 changes: 2 additions & 1 deletion content/blog/spoonful-series/02-spoonful.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "A second post"
weight: 2
subtitle: ""
excerpt: "Grid is the very first CSS module created specifically to solve the layout problems we’ve all been hacking our way around for as long as we’ve been making websites."
date: 2019-07-02
date: 2021-01-02
author: "Eric Anderson"
draft: false
series:
Expand All @@ -12,6 +12,7 @@ tags:
- hugo-site
categories:
- Theme Features
- R
# layout options: single, single-sidebar, single-series
layout: single-series
---
Expand Down
3 changes: 2 additions & 1 deletion content/blog/spoonful-series/03-spoonful/index.Rmarkdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "A third post"
weight: 3
subtitle: ""
excerpt: "Grid is the very first CSS module created specifically to solve the layout problems we’ve all been hacking our way around for as long as we’ve been making websites."
date: 2021-01-01
date: 2021-01-03
author: "Eric Anderson"
draft: false
series:
Expand All @@ -12,6 +12,7 @@ tags:
- hugo-site
categories:
- Theme Features
- R
# layout options: single, single-sidebar, single-series
layout: single-series
---
Expand Down
3 changes: 2 additions & 1 deletion content/blog/spoonful-series/03-spoonful/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "A third post"
weight: 3
subtitle: ""
excerpt: "Grid is the very first CSS module created specifically to solve the layout problems we’ve all been hacking our way around for as long as we’ve been making websites."
date: 2021-01-01
date: 2021-01-03
author: "Eric Anderson"
draft: false
series:
Expand All @@ -12,6 +12,7 @@ tags:
- hugo-site
categories:
- Theme Features
- R
# layout options: single, single-sidebar, single-series
layout: single-series
---
Expand Down
2 changes: 2 additions & 0 deletions content/project/bakeoff/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags:
- hugo-site
categories:
- Theme Features
- R
- package
layout: single
links:
- icon: door-open
Expand Down
2 changes: 2 additions & 0 deletions content/project/giraffes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags:
- hugo-site
categories:
- Theme Features
- R
- package
# layout options: single or single-sidebar
layout: single
---
Expand Down
2 changes: 2 additions & 0 deletions content/project/penguins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags:
- hugo-site
categories:
- Theme Features
- R
- package
# layout options: single or single-sidebar
layout: single-sidebar
---
Expand Down
87 changes: 87 additions & 0 deletions layouts/about/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{{ define "main" }}
<main class="page-main pa4" role="main">
<section class="page-content mw8 center">
{{ if .Params.show_header }}
<header class="page-header bb b--black-10 bw1 pb4 mb5 {{ if .Params.text_align_right }}tr{{ end }}">
{{ if .Params.show_title_as_headline }}<h1 class="f2 f1-m f-headline-l fw5-ns mv4 lh-solid tracked-tight-ns db">{{ .Title | markdownify }}</h1>
{{ else }}<h1 class="f2 f1-m f-headline-l fw5-ns mv4 lh-solid tracked-tight-ns db">{{ .Params.headline | markdownify }}</h1>{{ end }}
{{ with .Params.subheadline }}
<p class="f4 measure-wide lh-copy dib">{{ . | markdownify }}</p>
{{ end }}
</header>
{{ end }}

<section class="page-body">
<!--make the flexbox a row only on not small screens-->
<div class="flex items-start flex-row-l flex-column-ns flex-column {{ if not .Params.show_header }}mt4{{ end }}">

<!--wide content column: 2/3 -->
<div class="order-2 {{ if .Params.sidebar_left }}ml5-l order-2-l{{ else }}mr4-l order-1-l{{ end }} w-two-thirds-l w-100-ns {{ if .Params.glow_on_hover }}glow-on-hover{{ end }} pt5">
{{ if .Params.show_header }}
{{ with .Params.title_label }}
<h2 class="f2 fw7 tl">{{ . | markdownify }}</h2>
{{ end }}
{{ else }}
{{ with .Params.title_label }}
<h1 class="f2 f1-m f-headline-l fw5-ns mv4 lh-solid tracked-tight-ns">{{ . | markdownify }}</h1>
{{ end }}
{{ end }}
{{ if .Params.show_intro }}
<p class="f4 measure lh-copy dib">{{ .Params.intro | markdownify }}</p>
{{ end }}
{{ partial "shared/summary-li" . }}
{{ if .Params.show_outro }}
<p class="measure-wide lh-copy cf pt3">
{{ .Params.outro | markdownify }}
</p>
{{ end }}
</div> <!--close wide column -->

<sidebar class="about-sidebar order-1 {{ if .Params.sidebar_left }}order-1-l{{ else }}mr4-l order-2-l{{ end }} pt5 mh0 w-third-l w-100-ns self-start sticky {{ if .Params.glow_on_hover }}glow-on-hover{{ end }}" id="profile">
<div class="pt3 pb1 pb2-ns tc ph4">
{{ if .Params.avatar }}
{{ $avatar := printf "/%s%s" .File.Dir .Params.avatar }}
{{ $avatar_shape := .Params.avatar_shape | default "circle" }}
{{ with $avatar_shape }}
<img src="{{ $avatar }}" class="h4 w4 dib {{if eq . "rounded"}}br3{{end}}{{if eq . "circle"}}br-100{{end}}" alt="avatar">
{{ end }}
{{ end }}
<h2 class="f4-ns fw6">{{ .Params.author }}</h2>
<h5 class="f4 fw2 ttu tracked">{{ .Params.role | markdownify }}</h5>
{{ if .Params.show_social }}
<div class="site-social-links db dtc-l v-mid w-100 w-33-l tc pv2">
{{ partial "shared/social-links.html" . }}
</div>
{{ end }}
</div>

{{ if .Params.show_audio_link }}
<div class="pa1 pa2-ns tc ph4">
{{ range .Params.audio_link }}
<p class="fw2 pb1">{{ .name }}</p>
<p>
<audio controls>
<source src="{{ .url }}" type="audio/mp4">
Your browser does not support the audio element.
</audio>
</p>
{{ end }}
</div>
{{ end }}

<div class="pa1 pa2-ns tc ph4">
<h5 class="f4 fw2 ttu tracked">{{ .Params.link_list_label }}</h5>
<ul class="list pl0 measure center">
{{ range .Params.link_list }}
<li class="lh-copy pv2 ba bl-0 bt-0 br-0 b--dotted b--black-20">
<a href="{{ .url }}" target="_blank">{{ .name }}</a>
</li>
{{ end }}
</ul>
</div>
</sidebar>
</div> <!--close flex-->
</section> <!--close body section-->
</section> <!--close page content section-->
</main>
{{ end }}
Loading