This commit is contained in:
Morgan 2023-11-27 12:26:33 +09:00
parent 34ba5103ac
commit dcefe5dff3
3 changed files with 28 additions and 15 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -1,13 +1,17 @@
{{- with site.Params.homeInfoParams }} {{- if site.Params.homeInfoParamSimple }}
<article class="first-entry home-info"> <div class="simpletitle">{{ .Title | markdownify }}</div>
<header class="entry-header"> {{- else }}
<h1>{{ .Title | markdownify }}</h1> {{- with site.Params.homeInfoParams }}
</header> <article class="first-entry home-info">
<div class="entry-content"> <header class="entry-header">
{{ .Content | markdownify }} <h1>{{ .Title | markdownify }}</h1>
</div> </header>
<footer class="entry-footer"> <div class="entry-content">
{{ partial "social_icons.html" site.Params.socialIcons }} {{ .Content | markdownify }}
</footer> </div>
</article> <footer class="entry-footer">
{{- end -}} {{ partial "social_icons.html" site.Params.socialIcons }}
</footer>
</article>
{{- end -}}
{{- end }}