Blogger 最新文章的功能,找到兩個方法
[方法一]:(本站採用)
blogger有預設,就在範本的 [網頁元素] 的 [資訊提供],在url上加上
http://yourblog.blogspot.com/feeds/posts/default?alt=rss
但是Blogger的feeds預設都是以修改日期來排序,因此修改過文章都跑到上面。
只要加上orderby=published參數,即可修正成以發布日期來排列
意即
ATOM feeds:http://yourblog.blogspot.com/feeds/posts/default?orderby=published
RSS feeds:http://yourblog.blogspot.com/feeds/posts/default?alt=rss&orderby=published
[方法二]: 轉貼自Chagg's 嘴砲日記: Blogger 最新文章功能
首先先到版面配置新增Html/Javascript欄位,並將它移到自己想要的位置。
將以下程式碼貼入
<script>var rec_maxpost=7;</script>
<script src="http://chagg0924.googlepages.com/rp.js"></script>
其中,rec_maxpost=7為放置文章篇數,可以自由更改設定
<script src="http://chagg0924.googlepages.com/rp.js"></script>



沒有留言:
張貼留言