1 Commits

Author SHA1 Message Date
wirano
2a037b6b1d Merge 77ea08467d into 5f624757ae 2023-12-16 23:48:48 +09:00
5 changed files with 14 additions and 14 deletions

View File

@@ -27,10 +27,12 @@
margin-inline-start: auto; margin-inline-start: auto;
} }
.social-icons {
padding: 12px 0;
}
.social-icons a { .social-icons a:not(:last-of-type) {
display: inline-flex; margin-inline-end: 12px;
padding: 10px;
} }
.social-icons a svg { .social-icons a svg {

View File

@@ -10,20 +10,19 @@
text-align: center; text-align: center;
} }
.profile .profile_inner { .profile .profile_inner h1 {
display: flex; padding: 12px 0;
flex-direction: column;
align-items: center;
gap: 10px;
} }
.profile img { .profile img {
display: inline-table;
border-radius: 50%; border-radius: 50%;
} }
.buttons { .buttons {
flex-wrap: wrap; flex-wrap: wrap;
max-width: 400px; max-width: 400px;
margin: 0 auto;
} }
.button { .button {

View File

@@ -7,7 +7,7 @@
{{ .Content | markdownify }} {{ .Content | markdownify }}
</div> </div>
<footer class="entry-footer"> <footer class="entry-footer">
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }} {{ partial "social_icons.html" site.Params.socialIcons }}
</footer> </footer>
</article> </article>
{{- end -}} {{- end -}}

View File

@@ -32,7 +32,7 @@
{{- end }} {{- end }}
<h1>{{ .title | default site.Title | markdownify }}</h1> <h1>{{ .title | default site.Title | markdownify }}</h1>
<span>{{ .subtitle | markdownify }}</span> <span>{{ .subtitle | markdownify }}</span>
{{- partial "social_icons.html" -}} {{- partial "social_icons.html" site.Params.socialIcons -}}
{{- with .buttons }} {{- with .buttons }}
<div class="buttons"> <div class="buttons">

View File

@@ -1,7 +1,6 @@
<div class="social-icons" {{ with .align}}align="{{.}}" {{- end }}> <div class="social-icons">
{{- range site.Params.socialIcons }} {{- range . }}
<a href="{{ trim .url " " | safeURL }}" target="_blank" rel="noopener noreferrer me" <a href="{{ trim .url " " | safeURL }}" target="_blank" rel="noopener noreferrer me" title="{{ (.title | default .name) | title }}">
title="{{ (.title | default .name) | title }}">
{{ partial "svg.html" . }} {{ partial "svg.html" . }}
</a> </a>
{{- end }} {{- end }}