diff --git a/public/template/default/pc/category/list_default.html b/public/template/default/pc/category/list_default.html index 7367334..e96c214 100644 --- a/public/template/default/pc/category/list_default.html +++ b/public/template/default/pc/category/list_default.html @@ -33,17 +33,19 @@ + {notempty name="$field['tags']"}
- {:cn_substr($field['title'],15)}... + {:cn_substr($field['tags'],15)}
+ {/notempty}

- {:cn_substr($field['title'],15)}... + {:cn_substr($field['title'],20)}

- {:cn_substr($field['content'],15)}... + {:cn_substr($field['content'],40)}
diff --git a/public/template/default/pc/index/index.html b/public/template/default/pc/index/index.html index bd18f4c..df5a113 100644 --- a/public/template/default/pc/index/index.html +++ b/public/template/default/pc/index/index.html @@ -120,18 +120,19 @@
+ {notempty name="$field['tags']"}
- {:cn_substr($field['title'],15)}... + {:cn_substr($field['tags'],20)}
+ {/notempty}

- 置顶 - {:cn_substr($field['title'],15)}... + {if $field['is_top']==1}置顶{/if} + {:cn_substr($field['title'],20)}

-
{:cn_substr($field['description'],40)}... -
+
{:cn_substr($field['content'],40)}
diff --git a/待完成.txt b/待完成.txt new file mode 100644 index 0000000..3c6253f --- /dev/null +++ b/待完成.txt @@ -0,0 +1,9 @@ +清理模板中无用的功能 +修正右侧模板的数据 + + +文章tag的改造,tag插入tag表记录id然后跳转对应的链接,为什么写tag表是因为需要排序,和右侧列表 + +设计,添加tag时候插入 tag表, tag包含 tag_name 文章id 获取时候查询这个这个表 + +修改一些调用喂RPC方式,后期课题考虑替换这个 \ No newline at end of file