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,3 +1,6 @@
{{- if site.Params.homeInfoParamSimple }}
<div class="simpletitle">{{ .Title | markdownify }}</div>
{{- else }}
{{- with site.Params.homeInfoParams }} {{- with site.Params.homeInfoParams }}
<article class="first-entry home-info"> <article class="first-entry home-info">
<header class="entry-header"> <header class="entry-header">
@ -11,3 +14,4 @@
</footer> </footer>
</article> </article>
{{- end -}} {{- end -}}
{{- end }}