From 16d47418ad1c59f8af9a87fa10ce38a1ddf39b85 Mon Sep 17 00:00:00 2001 From: life <lifephp@gmail.com> Date: Thu, 13 Nov 2014 10:31:11 +0800 Subject: [PATCH] beta2 default theme url title --- public/blog/themes/default/cate.html | 4 ++-- public/blog/themes/elegant/cate.html | 4 ++-- public/blog/themes/nav_fixed/cate.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/blog/themes/default/cate.html b/public/blog/themes/default/cate.html index 53c393c..0ec59db 100644 --- a/public/blog/themes/default/cate.html +++ b/public/blog/themes/default/cate.html @@ -8,7 +8,7 @@ {{range $.posts}} <div class="each-post"> <div class="title"> - <a href="{{$.postUrl}}/{{.NoteId}}" title="全文"> + <a href="{{$.postUrl}}/{{.UrlTitle}}" title="全文"> {{.Title}} </a> </div> @@ -27,7 +27,7 @@ <div class="desc"> {{.Abstract | raw}} </div> - <a class="more" href="{{$.postUrl}}/{{.NoteId}}" title="全文">查看</a> + <a class="more" href="{{$.postUrl}}/{{.UrlTitle}}" title="全文">查看</a> </div> {{end}} <!-- 分页 --> diff --git a/public/blog/themes/elegant/cate.html b/public/blog/themes/elegant/cate.html index 53c393c..0ec59db 100644 --- a/public/blog/themes/elegant/cate.html +++ b/public/blog/themes/elegant/cate.html @@ -8,7 +8,7 @@ {{range $.posts}} <div class="each-post"> <div class="title"> - <a href="{{$.postUrl}}/{{.NoteId}}" title="全文"> + <a href="{{$.postUrl}}/{{.UrlTitle}}" title="全文"> {{.Title}} </a> </div> @@ -27,7 +27,7 @@ <div class="desc"> {{.Abstract | raw}} </div> - <a class="more" href="{{$.postUrl}}/{{.NoteId}}" title="全文">查看</a> + <a class="more" href="{{$.postUrl}}/{{.UrlTitle}}" title="全文">查看</a> </div> {{end}} <!-- 分页 --> diff --git a/public/blog/themes/nav_fixed/cate.html b/public/blog/themes/nav_fixed/cate.html index 53c393c..0ec59db 100644 --- a/public/blog/themes/nav_fixed/cate.html +++ b/public/blog/themes/nav_fixed/cate.html @@ -8,7 +8,7 @@ {{range $.posts}} <div class="each-post"> <div class="title"> - <a href="{{$.postUrl}}/{{.NoteId}}" title="全文"> + <a href="{{$.postUrl}}/{{.UrlTitle}}" title="全文"> {{.Title}} </a> </div> @@ -27,7 +27,7 @@ <div class="desc"> {{.Abstract | raw}} </div> - <a class="more" href="{{$.postUrl}}/{{.NoteId}}" title="全文">查看</a> + <a class="more" href="{{$.postUrl}}/{{.UrlTitle}}" title="全文">查看</a> </div> {{end}} <!-- 分页 -->