move translate buttons sidebar.

This commit is contained in:
RGB 2017-02-20 22:25:54 +09:00
parent 502973243c
commit 1913046e46
3 changed files with 10 additions and 4 deletions

View file

@ -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-->

View file

@ -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" . }}

View 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-->