hugo-PaperMod/layouts/partials/indexProfile.html
Aditya Telange df457f7514
profile-mode : add buttons
ex.
params:
  profileMode:
    buttons:
      - name: Archive
        url: "/archive"
      - name: Github
        url: "https://github.com/"
2020-08-28 18:47:00 +05:30

21 lines
745 B
HTML

<div class="profile">
<div class="profile_inner">
{{if .Site.Params.profileMode.imageUrl}}
<div>
<img src="{{ .Site.Params.profileMode.imageUrl}}" alt="{{ .Site.Params.profileMode.imageTitle}}" />
</div>
{{end}}
<h1>{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}
</h1>
{{- with .Site.Params.socialIcons }}
<div class="social-icons">
{{ partial "social-icons.html" . }}
</div>
{{- end }}
{{- with .Site.Params.profileMode.buttons }}
<div class="buttons">
{{ partial "indexProfileButtons.html" . }}
</div>
{{- end }}
</div>
</div>