Merge branch 'main' into taxonomies
This commit is contained in:
commit
545316fea0
4 changed files with 15 additions and 6 deletions
|
@ -18,12 +18,12 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* apply image processing. don't use "Fit" in svg because its not supported */}}
|
{{/* apply image processing. don't use "Fit" in svg or gif because its not supported */}}
|
||||||
{{ $authorImage:= resources.Get $authorImage}}
|
{{ $authorImage:= resources.Get $authorImage}}
|
||||||
{{ if and $authorImage (ne $authorImage.MediaType.SubType "svg") }}
|
|
||||||
|
{{ if and $authorImage (and (ne $authorImage.MediaType.SubType "svg") ( ne $authorImage.MediaType.SubType "gif")) }}
|
||||||
{{ $authorImage = $authorImage.Fit "120x120" }}
|
{{ $authorImage = $authorImage.Fit "120x120" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* return the author image link */}}
|
{{/* return the author image link */}}
|
||||||
{{ return $authorImage.RelPermalink }}
|
{{ return $authorImage.RelPermalink }}
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,11 @@
|
||||||
{{ $authorImage = $author.image }}
|
{{ $authorImage = $author.image }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $authorImage := resources.Get $authorImage }}
|
{{ $authorImage := resources.Get $authorImage }}
|
||||||
{{ $authorImage = $authorImage.Fit "148x148" }}
|
|
||||||
|
|
||||||
|
{{/* apply image processing. don't use "Fit" in svg or gif because its not supported */}}
|
||||||
|
{{ if and $authorImage (and (ne $authorImage.MediaType.SubType "svg") ( ne $authorImage.MediaType.SubType "gif")) }}
|
||||||
|
{{ $authorImage = $authorImage.Fit "148x148" }}
|
||||||
|
{{ end }}
|
||||||
{{/* get file that matches the filename as specified as src="" in shortcode */}}
|
{{/* get file that matches the filename as specified as src="" in shortcode */}}
|
||||||
{{ $src := resources.Get $backgroundImage }}
|
{{ $src := resources.Get $backgroundImage }}
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,19 @@
|
||||||
{{ $sectionID = .section.id }}
|
{{ $sectionID = .section.id }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $numShow := 3}}
|
||||||
|
{{ if .section.numShow }}
|
||||||
|
{{ $numShow = .section.numShow }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ $sectionID }}">
|
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ $sectionID }}">
|
||||||
{{ if not (.section.hideTitle) }}
|
{{ if not (.section.hideTitle) }}
|
||||||
<h1 class="text-center">{{ .section.name }}</h1>
|
<h1 class="text-center">{{ .section.name }}</h1>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row" id="recent-post-cards">
|
<div class="row" id="recent-post-cards">
|
||||||
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
|
{{ range first $numShow (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
|
||||||
{{ partial "cards/recent-post.html" . }}
|
{{ partial "cards/recent-post.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.education-section .education-info-table tr:first-child .hline {
|
.education-section .education-info-table tr:first-child .hline {
|
||||||
height: 60%;
|
height: 65%;
|
||||||
top: auto;
|
top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue