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