fix blog sort

This commit is contained in:
liuboaibc 2020-06-30 12:44:54 +08:00
parent 2bb4fe68f1
commit 24556711ef
3 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@
- id: We cant find the page that youre looking for :(
translation: We cant find the page that youre looking for :(
- id: Go To Home
translation: Go To Home
translation: 返回首页
- id: icon
translation: 图标
- id: background image

View File

@ -14,7 +14,7 @@
{{ end }}
</ul>
<ul class='blogs-ul'>
{{ range .Data.Pages }}
{{ range (.Data.Pages.ByParam "createTime").Reverse }}
<li data-tag='{{ .Params.tag }}'>
<div class='img-div'>
<img src="{{ .Params.snapshot }}" alt="{{ .Title }}">

View File

@ -61,11 +61,13 @@
<img src="/images/header/black.svg" alt="">
<span>{{ .Site.Language.LanguageName }}</span>
</div>
{{ with .Page.AllTranslations }}
<ul class="dropdown-menu">
{{ range .Page.AllTranslations }}
{{ range . }}
<li onclick="location = '{{ .RelPermalink }}'">{{ .Language.LanguageName }}</li>
{{ end }}
</ul>
{{ end }}
</li>
<li class='btn-li'>
<a href="https://demo.kubesphere.io/login" target="_blank" rel="noopener noreferrer">