Fix
This commit is contained in:
		
							parent
							
								
									34ba5103ac
								
							
						
					
					
						commit
						dcefe5dff3
					
				| 
						 | 
					@ -44,9 +44,11 @@ params:
 | 
				
			||||||
  hideSummary: false
 | 
					  hideSummary: false
 | 
				
			||||||
  showtoc: false
 | 
					  showtoc: false
 | 
				
			||||||
  tocopen: false
 | 
					  tocopen: false
 | 
				
			||||||
 | 
					  #disableSpecial1stPost: true
 | 
				
			||||||
  homeInfoParams:
 | 
					  homeInfoParams:
 | 
				
			||||||
      Title: Hi, I'm Morgan.
 | 
					      Title: Hi, I'm Morgan.
 | 
				
			||||||
      Content: Student Developer
 | 
					      Content: Student Developer
 | 
				
			||||||
 | 
					  homeInfoParamSimple: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  socialIcons:
 | 
					  socialIcons:
 | 
				
			||||||
      - name: github
 | 
					      - name: github
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -71,3 +71,10 @@ div.highlight:hover .copy-code,
 | 
				
			||||||
pre:hover .copy-code {
 | 
					pre:hover .copy-code {
 | 
				
			||||||
    display: block;
 | 
					    display: block;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.simpletitle {
 | 
				
			||||||
 | 
					    padding: var(--gap);
 | 
				
			||||||
 | 
					    font-size: 24px;
 | 
				
			||||||
 | 
					    margin: 24px 4px 28px 4px;
 | 
				
			||||||
 | 
					    text-align: center;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,8 @@
 | 
				
			||||||
{{- with site.Params.homeInfoParams }}
 | 
					{{- if site.Params.homeInfoParamSimple }}
 | 
				
			||||||
<article class="first-entry home-info">
 | 
					    <div class="simpletitle">{{ .Title | markdownify }}</div>
 | 
				
			||||||
 | 
					{{- else }}
 | 
				
			||||||
 | 
					    {{- with site.Params.homeInfoParams }}
 | 
				
			||||||
 | 
					    <article class="first-entry home-info">
 | 
				
			||||||
        <header class="entry-header">
 | 
					        <header class="entry-header">
 | 
				
			||||||
            <h1>{{ .Title | markdownify }}</h1>
 | 
					            <h1>{{ .Title | markdownify }}</h1>
 | 
				
			||||||
        </header>
 | 
					        </header>
 | 
				
			||||||
| 
						 | 
					@ -9,5 +12,6 @@
 | 
				
			||||||
        <footer class="entry-footer">
 | 
					        <footer class="entry-footer">
 | 
				
			||||||
            {{ partial "social_icons.html" site.Params.socialIcons }}
 | 
					            {{ partial "social_icons.html" site.Params.socialIcons }}
 | 
				
			||||||
        </footer>
 | 
					        </footer>
 | 
				
			||||||
</article>
 | 
					    </article>
 | 
				
			||||||
{{- end -}}
 | 
					    {{- end -}}
 | 
				
			||||||
 | 
					{{- end }}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue