Fiftyarticle
{% extends "basestyle.html" %}
{% block htmltitle %} <title>最新50文章</title> {% endblock %}
{%block style%}
<link href="stylesheets/fiftyarticle.css" rel="stylesheet" type="text/css" />
{%endblock%}
{% block maincontent %}{% if not pagelist %}沒有文章{% endif %}
{% for item in pagelist %}文章名稱:
<a href="/{{item.author.nickname}}-{{item.pagetitle}}">{{item.title}}</a> 
作者: <a href="/{{item.author.nickname}}/user">{{item.author.nickname}}</a> 
時間: {{item.date|date:"Y年m月d日 H:i"}}
<br>{% endfor %}{% endblock%}
<a href="http://www.google.com.tw">123</a> 
 
{% block maincontent_title%}
最新五十篇文章
{%endblock%}