提交 dae0d5e7 编写于 作者: Y Yujia Chen

Fix bugs in blog

上级 be58716c
......@@ -22,12 +22,12 @@
<div class="row">
<div class="col-md-9">
<div class="col-md-8">
<section class="post">
{{range .Data.Pages}}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<h3 style="font-family: 方正兰亭中黑;"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<h5 class="author-category">
{{ if isset .Params "author" }}
{{ .Params.author }}
......@@ -61,7 +61,7 @@
<div class="col-md-3">
<h3 style="overflow:hidden"><a href="/zh/blogguidance.html"><img src="{{ "/svg/edit.svg" }}" alt="edit" >
<h3 style="overflow:hidden;font-family: 方正兰亭中黑;"><a href="/zh/blogguidance.html"><img src="{{ "/svg/edit.svg" }}" alt="edit" >
{{i18n "main_postablog_source"}}</a></h3>
{{partial "widgets/tags.html" . }}
{{partial "widgets/archives.html" . }}
......
......@@ -22,14 +22,13 @@
<div class="row">
<!-- *** LEFT COLUMN *** -->
<div class="col-md-9">
<div class="col-md-8">
{{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
{{ range $paginator.Pages }}
<section class="post">
<div class="row">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
<h3 style="font-family: 方正兰亭中黑;"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<h5 class="author-category">
{{ if isset .Params "author" }}
{{ .Params.author }}
......@@ -61,8 +60,8 @@
</div>
<!-- /.col-md-9 -->
<div class="col-md-3">
<h3 style="overflow:hidden"><a href="/zh/blogguidance.html"><img src="{{ "/svg/edit.svg" }}" alt="edit" >
<div class="col-md-4">
<h3 style="overflow:hidden; font-family:方正兰亭中黑;"><a href="/zh/blogguidance.html"><img src="{{ "/svg/edit.svg" }}" alt="edit" >
{{i18n "main_postablog_source"}}</a></h3>
{{partial "widgets/tags.html" . }}
......
......@@ -10,7 +10,7 @@
<div class="panel-body">
<ul class="tag-cloud">
{{ range (where .Site.RegularPages "Section" "blog").GroupByDate "2006-01" }}
<li> <a href="{{ $.Site.BaseURL }}/{{$lan}}/archives/{{ .Key | urlize }}.html"><i
<li> <a href="{{ $.Site.BaseURL }}{{$lan}}/archives/{{ .Key | urlize }}.html"><i
class="fa fa-tags"></i>{{ .Key }}({{ len .Pages }})</a><br>
</li>
{{ end }}
......
......@@ -10,7 +10,7 @@
<div class="panel-body">
<ul class="tag-cloud">
{{ range $index, $items := .Site.Taxonomies.tags }}
<li><a href="{{ $.Site.BaseURL }}/{{$lan}}/tags/{{ $index | urlize }}.html"><i class="fa fa-tags"></i> {{ $index }}</a>
<li><a href="{{ $.Site.BaseURL }}{{$lan}}/tags/{{ $index | urlize }}.html"><i class="fa fa-tags"></i> {{ $index }}</a>
</li>
{{ end }}
</ul>
......
......@@ -22,12 +22,12 @@
<div class="row">
<div class="col-md-9">
<div class="col-md-8">
<section class="post">
{{range .Data.Pages}}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<h3 style="font-family:方正兰亭中黑;"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<h5 class="author-category">
{{ if isset .Params "author" }}
{{ .Params.author }}
......@@ -61,7 +61,7 @@
<div class="col-md-3">
<h3 style="overflow:hidden"><a href="/zh/blogguidance.html"><img src="{{ "/svg/edit.svg" }}" alt="edit" >
<h3 style="overflow:hidden;font-family:方正兰亭中黑;"><a href="/zh/blogguidance.html"><img src="{{ "/svg/edit.svg" }}" alt="edit" >
{{i18n "main_postablog_source"}}</a></h3>
{{partial "widgets/tags.html" . }}
{{partial "widgets/archives.html" . }}
......
......@@ -24,4 +24,9 @@ table th {
thead th {
border-width: 0 0 2px;
color: #363636;
}
.container .col-md-9 img{
height: auto;
max-width: 100%;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册