File tree Expand file tree Collapse file tree
themes/math-gallery-theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ draft = true
44title = ' {{ replace .File.ContentBaseName "-" " " | title }}'
55description = ' '
66thumbnail = ' '
7+ # showThumbnail = false
78tags = []
89# coauthors = [
910# { name = 'Jane Doe', link = 'mailto:jane@example.com' },
Original file line number Diff line number Diff line change @@ -532,10 +532,15 @@ a.page-btn:hover {
532532 max-width : 800px ;
533533}
534534
535+ .post-hero {
536+ display : flex;
537+ justify-content : center;
538+ margin-bottom : 1.5rem ;
539+ }
540+
535541.post-hero img {
536- width : 100 % ;
542+ width : 50 % ;
537543 border-radius : 0.5rem ;
538- margin-bottom : 1.5rem ;
539544}
540545
541546.post-header {
Original file line number Diff line number Diff line change 11{{ define "main" }}
22< article class ="post-single ">
3- <!-- Thumbnail -->
4- {{ with .Params.thumbnail }}
5- < div class ="post-hero ">
6- < img src ="{{ site.Home.RelPermalink }}{{ . | strings.TrimPrefix "/" }}" alt="{{ $.Title }}" />
7- </ div >
8- {{ end }}
9-
103 < header class ="post-header ">
114 < h1 > {{ .Title }}</ h1 >
125
@@ -37,6 +30,15 @@ <h1>{{ .Title }}</h1>
3730 {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
3831 </ header >
3932
33+ <!-- Thumbnail (shown after title unless showThumbnail = false) -->
34+ {{ if ne .Params.showThumbnail false }}
35+ {{ with .Params.thumbnail }}
36+ < div class ="post-hero ">
37+ < img src ="{{ site.Home.RelPermalink }}{{ . | strings.TrimPrefix "/" }}" alt="{{ $.Title }}" />
38+ </ div >
39+ {{ end }}
40+ {{ end }}
41+
4042 < div class ="post-content ">
4143 {{ .Content }}
4244 </ div >
You can’t perform that action at this time.
0 commit comments