{{if .search}} + 抱歉,没有符合您搜索条件的结果。请换其它关键词再试。 + {{else}} + 这儿似乎什么都没有,试试搜索? + {{end}} +
+ + +{{"blogdescription"| getOption}}
+{{if .search}} + 抱歉,没有符合您搜索条件的结果。请换其它关键词再试。 + {{else}} + 这儿似乎什么都没有,试试搜索? + {{end}} +
+ + ++ « 返回 +
+ + diff --git a/internal/templates/twentyseventeen/layout/pagination.gohtml b/internal/templates/twentyseventeen/layout/pagination.gohtml new file mode 100644 index 0000000..33bc4dd --- /dev/null +++ b/internal/templates/twentyseventeen/layout/pagination.gohtml @@ -0,0 +1,10 @@ +{{define "layout/page"}} + {{if .pagination}} + + {{end}} +{{end}} \ No newline at end of file diff --git a/internal/templates/twentyseventeen/layout/sidebar.gohtml b/internal/templates/twentyseventeen/layout/sidebar.gohtml new file mode 100644 index 0000000..49eda33 --- /dev/null +++ b/internal/templates/twentyseventeen/layout/sidebar.gohtml @@ -0,0 +1,73 @@ +{{define "layout/sidebar" }} + + + + + + +{{end}} \ No newline at end of file diff --git a/internal/templates/twentyseventeen/layout/svg.gohtml b/internal/templates/twentyseventeen/layout/svg.gohtml new file mode 100644 index 0000000..62e2fdf --- /dev/null +++ b/internal/templates/twentyseventeen/layout/svg.gohtml @@ -0,0 +1,3 @@ +{{define "svg"}} + +{{end}} \ No newline at end of file diff --git a/internal/templates/twentyseventeen/posts/detail.gohtml b/internal/templates/twentyseventeen/posts/detail.gohtml new file mode 100644 index 0000000..4ba434b --- /dev/null +++ b/internal/templates/twentyseventeen/posts/detail.gohtml @@ -0,0 +1,135 @@ +{{template "layout/base" .}} + +{{define "content"}} + {{ if .post.PostContent}} +
《{{.post.PostTitle}}》上有{{.post.CommentCount}}条评论
++ {{.comments|unescaped}} +
+ + {{end}} + {{if eq .post.CommentStatus "open"}} + + {{else}} +评论已关闭。
+ {{end}} +