move translate buttons sidebar.
This commit is contained in:
parent
502973243c
commit
1913046e46
3 changed files with 10 additions and 4 deletions
|
@ -1,8 +1,5 @@
|
||||||
<div class="profile-container">
|
<div class="profile-container">
|
||||||
<img class="profile" src="{{ .Site.BaseURL }}assets/images/{{ .Site.Params.profile.avatar }}" alt="" />
|
<img class="profile" src="{{ .Site.BaseURL }}assets/images/{{ .Site.Params.profile.avatar }}" alt="" />
|
||||||
<h1 class="name">{{ .Site.Params.profile.name }}</h1>
|
<h1 class="name">{{ .Site.Params.profile.name }}</h1>
|
||||||
<h3 class="tagline">{{ .Site.Params.profile.tagline }}</h3><br/>
|
<h3 class="tagline">{{ .Site.Params.profile.tagline }}</h3>
|
||||||
{{ range .Translations }}
|
|
||||||
<a class="btn btn-primary" href="{{ .Permalink }}">{{ .Lang }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div><!--//profile-container-->
|
</div><!--//profile-container-->
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
<div class="sidebar-wrapper">
|
<div class="sidebar-wrapper">
|
||||||
|
|
||||||
{{ partial "profile.html" . }}
|
{{ partial "profile.html" . }}
|
||||||
|
|
||||||
|
{{ if .IsTranslated }}
|
||||||
|
{{ partial "translate.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.contact.enable }}
|
{{ if .Site.Params.contact.enable }}
|
||||||
{{ partial "contact.html" . }}
|
{{ partial "contact.html" . }}
|
||||||
|
|
5
layouts/partials/translate.html
Normal file
5
layouts/partials/translate.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="profile-container">
|
||||||
|
{{ range .Translations }}
|
||||||
|
<a class="btn btn-primary" href="{{ .Permalink }}">{{upper .Lang }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</div><!--//profile-container-->
|
Loading…
Reference in a new issue