mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
indexProfile : partial
This commit is contained in:
parent
e35915a561
commit
201d269a1f
@ -1,21 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ if .Site.Params.profileMode }}
|
{{ if .Site.Params.profileMode }}
|
||||||
<div class="profile">
|
{{- partial "indexProfile.html" . }}
|
||||||
<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>
|
|
||||||
{{else}} {{/* if not profileMode */}}
|
{{else}} {{/* if not profileMode */}}
|
||||||
|
|
||||||
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
|
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
|
||||||
|
16
layouts/partials/indexProfile.html
Normal file
16
layouts/partials/indexProfile.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user