File tree Expand file tree Collapse file tree 5 files changed +36
-14
lines changed Expand file tree Collapse file tree 5 files changed +36
-14
lines changed Original file line number Diff line number Diff line change
1
+ .author-bio {
2
+ box-sizing : border-box ;
3
+ margin : 0 auto ;
4
+ max-width : 650px ;
5
+ padding : 0 calc (var (--mm-spacing ) / 2 ) calc (var (--mm-spacing ) / 2 );
6
+ width : 100% ;
7
+
8
+ @media (min-width : 768px ) {
9
+ box-sizing : unset ;
10
+ }
11
+ }
Original file line number Diff line number Diff line change 12
12
@use ' search' ;
13
13
@use ' variables' ;
14
14
@use ' recaptcha' ;
15
+ @use ' author-bio' ;
15
16
@use ' post-author-bio' ;
16
17
17
18
:root {
Original file line number Diff line number Diff line change 2
2
title : " Christopher Luna"
3
3
linkedin : " https://www.linkedin.com/in/christophermluna"
4
4
---
5
+
5
6
Christopher Luna works at MaxMind. MaxMind employs Christopher. Hello!
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
- < div class ="article ">
3
- < div class ="article__container ">
4
- < div class ="author-bio ">
5
- < h1 > Articles by {{ .Title }}</ h1 >
6
- < p > {{ .Content }}</ p >
7
- {{ if ne .Params.linkedin "" }}
8
- < p >
9
- < a href ="{{ .Params.linkedin }} " target ="_blank " rel ="noopener noreferrer ">
10
- Connect with {{ .Title }} on LinkedIn
11
- </ a >
12
- </ p >
13
- {{ end }}
14
- </ div >
2
+ < div class ="author-bio article__container ">
3
+ < h1 > Posts by {{ .Title }}</ h1 >
4
+ < p > {{ .Content }}</ p >
5
+ {{ if ne .Params.linkedin "" }}
6
+ < p >
7
+ < a href ="{{ .Params.linkedin }} " target ="_blank " rel ="noopener noreferrer ">
8
+ Connect with {{ .Title }} on LinkedIn
9
+ </ a >
10
+ </ p >
11
+ {{ end }}
12
+ </ div >
13
+
14
+ < hr />
15
+
16
+ {{ $posts := where .Site.RegularPages "Params.authors" "intersect" (slice .Title) }}
17
+ {{ if $posts }}
18
+ < div class ="blog-posts__wrapper ">
19
+ < div class ="blog-posts ">
20
+ {{ range $posts }}
21
+ {{ partial "post-list.html" . }}
22
+ {{ end }}
15
23
</ div >
16
24
</ div >
25
+ {{ end }}
17
26
{{ end }}
Original file line number Diff line number Diff line change 1
1
{{ $authorPages := where .Site.Pages "Section" "authors" }}
2
2
{{ $authorPages := where $authorPages "Title" "in" .Params.authors }}
3
3
4
- {{ if gt (len $authorPages) 0 }}
4
+ {{ if $authorPages }}
5
5
< hr />
6
6
< div class ="post-author-bio article__container ">
7
7
{{ if gt (len $authorPages) 1 }}
You can’t perform that action at this time.
0 commit comments