Skip to content

Commit b7699ac

Browse files
committed
2 parents 1d4fde9 + 6ef5a38 commit b7699ac

22 files changed

+338
-172
lines changed

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ logo:
55
# Author image is used in site sidebar
66
author:
77
name: Steve Wilkes
8-
image: https://avatars1.githubusercontent.com/u/8459425?s=100&v=4
8+
image: https://avatars1.githubusercontent.com/u/8459425?s=52&v=4
99
favicon: 'assets/images/favicon.png'
1010
baseurl:
1111
post_images_dir: '/assets/images/posts/'
@@ -35,7 +35,7 @@ stackoverflow: users/721236/steve-wilkes
3535
rss: agileobjects
3636
contact_icon: true
3737

38-
# Projects
38+
# Products
3939
ao_github: 'https://github.com/agileobjects/agileobjects.github.io'
4040
am_nuget: 'https://www.nuget.org/packages/AgileObjects.AgileMapper'
4141
am_github: 'https://github.com/agileobjects/AgileMapper'
@@ -51,8 +51,8 @@ navigation:
5151
url: /
5252
- text: About
5353
url: /about
54-
- text: Projects
55-
url: /projects
54+
- text: Products
55+
url: /products
5656
- text: Search
5757
url: /search
5858
- text: Contact

_includes/header.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,15 @@
66
{% if site.logo != null %}
77
<p class="site-logo"><a href="{{ site.baseurl }}/" rel="home"><img src="{{ site.baseurl }}/assets/images/{{ site.logo }}" alt="{{ site.name }}" /></a></p>
88
<h1 class="site-title screen-reader-text"><a href="{{ site.baseurl }}" rel="home">{{site.title}}</a></h1>
9-
{% elsif site.author %}
10-
<p class="profile">
11-
<a href="{{ site.baseurl }}/">
12-
<img src="{{ site.author.image }}" alt="{{ site.author.name }}'s Picture" class="avatar" />
13-
</a>
14-
</p>
9+
{% endif %}
1510
<div class="site-identity">
16-
{% if site.name %}
1711
<h1 class="site-title">
18-
<a href="{{ site.baseurl }}/">{{site.name}}</a>
12+
<a href="{{ site.baseurl }}/">
13+
<span style="color: #2d89ef">Agile</span>Objects
14+
</a>
1915
</h1>
20-
{% endif %}
21-
{% if site.description %}
2216
<p class="site-description">{{site.description}}</p>
23-
{% endif %}
2417
</div><!-- .site-identity -->
25-
{% endif %}
2618
<button id="menu-toggle" class="menu-toggle">
2719
<span class="screen-reader-text">Main Menu</span><span class="icon-menu" aria-hidden="true"></span>
2820
</button>

_includes/product-box.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
<article class="post product-featured has-image">
3+
<div class="product-inside">
4+
<a href="https://nuget.org/packages/AgileObjects.{{ product.name }}" class="product-thumbnail" target="_blank">
5+
<img src="{{ site.baseurl }}/assets/images/products/{{ product.image }}" alt="{{ product.name }}">
6+
<header class="product-header">
7+
<h2 class="product-title">{{ product.name }}</h2>
8+
</header><!-- .product-header -->
9+
</a>
10+
<ul class="product-content">
11+
{% for item in product.description %}
12+
<li>{{ item }}</li>
13+
{% endfor %}
14+
</ul>
15+
</div><!-- .product-inside -->
16+
</article><!-- .product -->

_includes/project-box.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<div class="project">
2+
<input type="checkbox" id="project-{{ forloop.index }}" />
3+
<label for="project-{{ forloop.index }}" class="hero">
4+
<span class="hero-text">{{ project.title }}</span>
5+
</label>
6+
7+
<div>
8+
<ul>
9+
{% for item in project.description %}
10+
<li>{{ item }}</li>
11+
{% endfor %}
12+
</ul>
13+
<p class="project-tags">
14+
{% for tag in project.tags %}
15+
<span>{{ tag }}</span>
16+
{% endfor %}
17+
</p>
18+
</div>
19+
</div>

_includes/projectbox.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
{% if page.layout == 'post' %}
4545
<a class="bmc-button" target="_blank" href="https://www.buymeacoffee.com/agileobjects">
4646
<span>
47-
Thanks for reading my blog!<br />Care to treat me to a coffee?
48-
<img src="https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg" alt="Buy me a coffee" />
47+
Thanks for reading the blog!<br />Care to treat us to a coffee?
48+
<img src="https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg" alt="Buy us a coffee" />
4949
</span>
5050
</a>
5151
{% endif %}

_layouts/page.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
<main id="main" class="site-main">
66
<article class="post-full inner">
7+
{% if page.title %}
78
<header class="post-header">
89
<h1 class="post-title">{{ page.title }}</h1>
910
</header><!-- .post-header -->
11+
{% endif %}
1012
{% if page.featured_image %}
1113
<div class="post-thumbnail"><img src="{{ site.baseurl }}{{ page.featured_image }}" alt="{% if page.featured_image_alt %}{{ page.featured_image_alt }}{% else %}{{ page.title }}{% endif %}" /></div>
1214
{% endif %}

_layouts/post.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ <h1 class="post-title">{{ page.title }}</h1>
2525
<img src="{{ page.featured_image }}" alt="{{ page.title }}">
2626
</div>
2727
{% endif %}
28+
<div class="profile">
29+
<img src="{{ site.author.image }}" alt="{{ site.author.name }}'s Picture" class="avatar" style="margin-bottom: .66667em" />
30+
Steve Wilkes, Principal Engineer
31+
</div>
2832
<div class="post-content">
2933
{{content}}
3034
</div>

_posts/2020-09-09-self-documenting-code-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contained some good info, as well as some things I don't agree with. Top of the
1212

1313
> Self-documenting code is bullshit.
1414
15-
I mean... it's not, is it?
15+
I mean... it's not... is it?
1616

1717
## Self-Documenting Code
1818

_sass/_content.scss

Lines changed: 96 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313

1414
.post-header {
15-
margin-bottom: 1.66667em;
15+
overflow: hidden;
1616

1717
h2 {
1818
padding: 3px 6px;
@@ -71,7 +71,8 @@
7171

7272
.post-tags,
7373
.reading-time,
74-
.post-share {
74+
.post-share,
75+
.project-tags > span {
7576
font-size: 0.77778rem;
7677
line-height: 1.5;
7778
float: left;
@@ -197,33 +198,38 @@ blockquote > p {
197198
width: 60px;
198199
}
199200

200-
.post-feed .post {
201-
border-bottom: 1px solid $gray-lighter;
202-
}
201+
.post-feed {
202+
.post-header {
203+
margin-bottom: 0.83333em;
204+
}
203205

204-
.post-feed .post-header {
205-
margin-bottom: 0.83333em;
206-
}
206+
.post {
207+
border-bottom: 1px solid $gray-lighter;
208+
}
207209

208-
.post-feed .post-content {
209-
font-size: 0.88889rem;
210-
margin-bottom: 1.66667em;
210+
.post-content {
211+
font-size: 0.88889rem;
212+
margin-bottom: 1.66667em;
213+
}
211214
}
212215

213-
.read-next .post-title {
214-
font-size: 1.33333rem;
215-
}
216+
.read-next {
217+
.post-title {
218+
font-size: 1.33333rem;
219+
}
216220

217-
.read-next .post-meta {
218-
margin-bottom: 0.5em;
221+
.post-meta {
222+
margin-bottom: 0.5em;
223+
}
219224
}
220225

221226
.tag-top {
222227
clear: both;
223228
}
224229

225230
.button-small,
226-
.tagcloud a {
231+
.tagcloud a,
232+
.project-tags > span {
227233
border: 1px solid $gray-lighter;
228234
color: $body-text-color;
229235
display: inline-block;
@@ -255,7 +261,6 @@ ul.archive-posts-list {
255261
margin-bottom: 0.5556em
256262
}
257263
}
258-
259264
/* Archives */
260265
.page-header {
261266
margin-bottom: 1.66667em;
@@ -274,7 +279,6 @@ ul.archive-posts-list {
274279
margin: 0.25em 0 0;
275280
text-transform: uppercase;
276281
}
277-
278282
/* Hero section */
279283
.hero {
280284
margin-bottom: 2.5em;
@@ -297,7 +301,6 @@ ul.archive-posts-list {
297301
margin: 0;
298302
}
299303

300-
/* Featured posts */
301304
.featured-posts {
302305
display: -ms-flexbox;
303306
display: -webkit-flex;
@@ -340,9 +343,75 @@ ul.archive-posts-list {
340343
}
341344
}
342345
}
343-
344346
/* Projects */
345-
.featured-projects {
347+
.project {
348+
349+
input[type=checkbox] {
350+
display: none;
351+
352+
~ div {
353+
display: none;
354+
padding-left: 26px;
355+
}
356+
}
357+
358+
label.hero {
359+
cursor: pointer;
360+
margin-bottom: .5em;
361+
padding-left: 26px;
362+
position: relative;
363+
display: block;
364+
365+
&::before {
366+
content: "+";
367+
position: absolute;
368+
left: 3px;
369+
}
370+
371+
&::after {
372+
margin-top: 0;
373+
height: 0;
374+
width: 120px;
375+
}
376+
377+
.hero-text {
378+
font-size: 1.33334em;
379+
}
380+
}
381+
382+
input[type=checkbox]:checked {
383+
+ label {
384+
margin-bottom: .77778em;
385+
386+
&:before {
387+
content: "-";
388+
left: 5px;
389+
}
390+
391+
&:after {
392+
height: 1px;
393+
margin-top: 1em;
394+
}
395+
}
396+
397+
~ div {
398+
display: block;
399+
margin-bottom: 2em;
400+
overflow: hidden;
401+
}
402+
}
403+
404+
ul {
405+
padding-left: .9em;
406+
}
407+
408+
li {
409+
font-size: .9em;
410+
margin-bottom: .4em;
411+
}
412+
}
413+
/* Products */
414+
.featured-products {
346415
display: -ms-flexbox;
347416
display: -webkit-flex;
348417
display: flex;
@@ -352,11 +421,11 @@ ul.archive-posts-list {
352421
margin: 0 -0.83333em 2.5em;
353422
}
354423

355-
.project-featured {
424+
.product-featured {
356425
flex: 0 0 100%;
357426
margin-bottom: .5em;
358427

359-
.project-inside {
428+
.product-inside {
360429
padding: 0 0.833333em;
361430
margin-bottom: 1.5em;
362431
overflow: hidden;
@@ -368,27 +437,26 @@ ul.archive-posts-list {
368437
width: 27%;
369438
}
370439

371-
.project-header {
440+
.product-header {
372441
float: left;
373442
}
374443

375444
h2 {
376445
margin-bottom: 6px;
377446
}
378447

379-
.project-thumbnail {
448+
.product-thumbnail {
380449
text-decoration: none;
381450
}
382451

383-
.project-content {
452+
.product-content {
384453
font-size: 0.75rem;
385454
float: left;
386455
margin-bottom: 0;
387456
padding-left: 15px;
388457
width: 63%;
389458
}
390459
}
391-
392460
/**
393461
* 4.2 Pagination
394462
* ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)