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">
<img class="profile" src="{{ .Site.BaseURL }}assets/images/{{ .Site.Params.profile.avatar }}" alt="" />
<h1 class="name">{{ .Site.Params.profile.name }}</h1>
<h3 class="tagline">{{ .Site.Params.profile.tagline }}</h3><br/>
{{ range .Translations }}
<a class="btn btn-primary" href="{{ .Permalink }}">{{ .Lang }}</a>
{{ end }}
<h3 class="tagline">{{ .Site.Params.profile.tagline }}</h3>
</div><!--//profile-container-->

View File

@ -1,6 +1,10 @@
<div class="sidebar-wrapper">
{{ partial "profile.html" . }}
{{ if .IsTranslated }}
{{ partial "translate.html" . }}
{{ end }}
{{ if .Site.Params.contact.enable }}
{{ 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-->