diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-06 20:07:57 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-06 20:07:57 +0530 |
| commit | 048aac5fac7e4731e6f96aabe5549f4bc844b6aa (patch) | |
| tree | eda38c98392e4f66b192e2268706119044841034 /layouts | |
| parent | 44aa37c9447906fb99564f181b2e9aca664ddbcf (diff) | |
profile-mode: improvements
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/indexProfile.html | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/layouts/partials/indexProfile.html b/layouts/partials/indexProfile.html index 7757d51..f0202bc 100644 --- a/layouts/partials/indexProfile.html +++ b/layouts/partials/indexProfile.html @@ -1,21 +1,18 @@ <div class="profile"> + {{ with .Site.Params.profileMode }} <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 }} + {{if .imageUrl}}<img src="{{ .imageUrl}}" alt="{{ .imageTitle | default "profile image" }}" />{{end}} + <h1>{{ .title | default $.Site.Title }}</h1> + {{- with $.Site.Params.socialIcons }} <div class="social-icons"> {{ partial "social-icons.html" . }} </div> {{- end }} - {{- with .Site.Params.profileMode.buttons }} + {{- with .buttons }} <div class="buttons"> {{ partial "indexProfileButtons.html" . }} </div> {{- end }} </div> + {{end}} </div>
\ No newline at end of file |
