mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-27 21:24:15 -04:00
profile-mode : add buttons
ex. params: profileMode: buttons: - name: Archive url: "/archive" - name: Github url: "https://github.com/"
This commit is contained in:
parent
47126e37d5
commit
df457f7514
3 changed files with 33 additions and 1 deletions
|
@ -12,5 +12,10 @@
|
|||
{{ partial "social-icons.html" . }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- with .Site.Params.profileMode.buttons }}
|
||||
<div class="buttons">
|
||||
{{ partial "indexProfileButtons.html" . }}
|
||||
</div>
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
7
layouts/partials/indexProfileButtons.html
Normal file
7
layouts/partials/indexProfileButtons.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{{ range . -}}
|
||||
<span class="button">
|
||||
<a href="{{ .url }}" rel="noopener" title="{{ .name | humanize }}">
|
||||
<span class="button-inner">{{ .name }}</span>
|
||||
</a>
|
||||
</span>
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue