1
0
mirror of https://github.com/danbee/danbarber.me.hugo.git synced 2025-03-04 08:59:18 +00:00

WIP I guess

This commit is contained in:
Daniel Barber 2019-10-16 21:54:26 -04:00
parent aff51c6714
commit fa170247bd
13 changed files with 95 additions and 23 deletions

View File

@ -0,0 +1,9 @@
.home__about,
.home__photos,
.home__blog {
margin-top: 8vmin;
}
.home__more {
text-align: right;
}

View File

@ -1,6 +1,7 @@
.post {
border-bottom: 1px dashed $border-color;
padding: 1.5em $pad-min;
margin-top: 2em;
padding-bottom: 1.5em;
img {
max-width: 100%;

View File

@ -6,3 +6,7 @@
border-bottom: 1px dashed $text-color-dark;
}
}
.site-header__home-link {
color: inherit;
}

View File

@ -1,4 +1,5 @@
blockquote {
padding-left: 2rem;
border-left: 3px solid $text-color-light;
margin: 1em 0;
}

View File

@ -28,11 +28,13 @@
// 5. Objects class-based selectors which define undecorated design patterns,
// for example media object known from OOCSS
@import "objects/container";
@import "objects/outer";
// 6. Components specific UI components.
// This is where majority of our work takes place and our UI components
// are often composed of Objects and Components
@import "components/site-header";
@import "components/home";
@import "components/posts";
@import "components/post";
@import "components/photos";

View File

@ -0,0 +1,3 @@
.outer {
padding: 0 $pad-min;
}

7
content/_index.md Normal file
View File

@ -0,0 +1,7 @@
---
date: '2019-10-16'
---
Hi, my name is Dan Barber. Im a web designer and developer in New York.
I design and build standards compliant websites that are simple, usable and
attractive using open source software technologies.

View File

@ -1,3 +0,0 @@
{{ define "main" }}
<h1>Foo</h1>
{{ end }}

45
layouts/index.html Normal file
View File

@ -0,0 +1,45 @@
{{ define "main" }}
<section class="home__about outer">
<article class="container">
{{ .Content }}
</article>
</section>
<section class="home__photos outer">
<article class="container">
<header>
<h2>Latest Photos</h2>
</header>
<div class="photos__container">
{{ range first 3 (where .Site.RegularPages "Section" "photos") }}
<article class="photos__thumb-container">
{{ partial "photo_thumb.html" . }}
</article>
{{ end }}
</div>
<footer class="home__more">
<p><a href="/photos">All Photos →</a></p>
</footer>
</article>
</section>
<section class="home__blog">
<article>
<header class="outer">
<div class="container">
<h2>From the Blog</h2>
</div>
</header>
{{ range first 3 (where .Site.RegularPages "Section" "blog") }}
{{ partial "blog_post_summary.html" . }}
{{ end }}
<footer class="container home__more">
<p><a href="/blog">More →</a></p>
</footer>
</article>
</section>
{{ end }}

View File

@ -0,0 +1,17 @@
<article class="post outer">
<header>
<div class="container">
<h3 class="post__title"><a href="{{.Permalink}}">{{.Title}}</a></h3>
<p class="post__date">{{.Date.Format "Jan 2, 2006"}}</p>
</div>
</header>
{{ if .Truncated }}
{{.Summary}}
<p class="post__read-more"><a href="{{.Permalink}}">Read on →</a></p>
{{ else }}
{{.Content}}
{{ end }}
</article>

View File

@ -1,5 +1,5 @@
<header class="site-header" role="banner">
<div class="container">
<h1>{{.Site.Title}}</h1>
<h1><a class="site-header__home-link" href="/">{{.Site.Title}}</a></h1>
</div>
</header>

View File

@ -1,22 +1,8 @@
{{ define "main" }}
<section class="posts">
{{ range .Paginator.Pages }}
<article class="post">
<header>
<h3 class="post__title"><a href="{{.Permalink}}">{{.Title}}</a></h3>
<p class="post__date">{{.Date.Format "Jan 2, 2006"}}</p>
</header>
{{ if .Truncated }}
{{.Summary}}
<p class="post__read-more"><a href="{{.Permalink}}">Read on →</a></p>
{{ else }}
{{.Content}}
{{ end }}
</article>
{{ end }}
{{ range .Paginator.Pages }}
{{ partial "blog_post_summary.html" . }}
{{ end }}
</section>
<section class="posts__pagination">

View File

@ -1,5 +1,5 @@
{{ define "main" }}
<section class="photos">
<section class="photos outer">
<div class="photos__container">
{{ range (.Paginator 24).Pages }}
<article class="photos__thumb-container">