indexProfile : partial

This commit is contained in:
Aditya Telange 2020-08-25 17:17:24 +05:30
parent e35915a561
commit 201d269a1f
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 17 additions and 15 deletions

View File

@ -1,21 +1,7 @@
{{ define "main" }}
{{ if .Site.Params.profileMode }}
<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.profileMode.socialIcons }}
<div class="social-icons">
{{ partial "social-icons.html" . }}
</div>
{{- end }}
</div>
</div>
{{- partial "indexProfile.html" . }}
{{else}} {{/* if not profileMode */}}
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}

View File

@ -0,0 +1,16 @@
<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.profileMode.socialIcons }}
<div class="social-icons">
{{ partial "social-icons.html" . }}
</div>
{{- end }}
</div>
</div>