File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ public function action()
8080 ->where ('table.relationships.mid = ? ' , $ cates ->mid )
8181 ->order ('table.relationships.cid ' , Typecho_Db::SORT_DESC )
8282 ->limit (1 ));
83+ //文章的分类跳过
84+ if (empty ($ art_rs ['modified ' ])) continue ;
8385 echo "\t<url> \n" ;
8486 echo "\t\t<loc> " .$ cates ->permalink ."</loc> \n" ;
8587 echo "\t\t<lastmod> " .date ('Y-m-d ' ,$ art_rs ['modified ' ])."</lastmod> \n" ;
@@ -95,6 +97,9 @@ public function action()
9597 ->where ('table.relationships.mid = ? ' , $ tag ['mid ' ])
9698 ->order ('table.relationships.cid ' , Typecho_Db::SORT_DESC )
9799 ->limit (1 ));
100+ // 文章的标签跳过
101+ if (empty ($ art_rt ['modified ' ])) continue ;
102+
98103 $ routeExists = (NULL != Typecho_Router::get ($ type ));
99104 $ tag ['pathinfo ' ] = $ routeExists ? Typecho_Router::url ($ type , $ tag ) : '# ' ;
100105 $ tag ['permalink ' ] = Typecho_Common::url ($ tag ['pathinfo ' ], $ options ->index );
You can’t perform that action at this time.
0 commit comments