Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a new logo and ico

  • Loading branch information...
commit 9155245d5711cf1d23071f1db6cfe82affc499f9 1 parent 107f087
David Shieh authored
View
6 static/css/styles.css
@@ -8,6 +8,12 @@ img { border:none; }
body {
background-color:#333;
}
+#logo {
+ width:100px;
+ height:100px;
+ margin:0 auto;
+ margin-top:30px;
+}
#foot {
color:#9FC671;
font-size:10px;
View
BIN  static/favicon.ico
Binary file not shown
View
BIN  static/images/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  static/images/logo2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2  templates/_entry.html
@@ -1,6 +1,6 @@
<div class="blog_each">
<h1><a href="/entry/{{ entry.slug }}/">{{ entry.title }}</a></h1>
- <h3>{% if entry.tags %}<span>标签 : </span>{% for tag in entry.tags %}
+ <h3>{% if entry.tags %}<span>标签 : </span>{% for tag in entry.tags %}
<span><a href="/tag/{{ tag.name }}/">{{ tag.name }}</a></span>
{% endfor %} | {% endif %}<span>发表 : </span>{{ entry.createdTime }} | <a href="/entry/{{ entry.slug }}/#comments">{{ entry.commentNum }} 条回复</a></h3>
<div>{{ entry.content|content }}</div>
View
3  templates/_leftbar.html
@@ -1,4 +1,7 @@
<div id="side_bar">
+ <div id="logo">
+ <a href="/"><img src="/static/images/logo2.png" alt="davidx" /></a>
+ </div>
<div class="side_bar_component">
<h2>导航</h2>
<ul>
View
22 templates/admin/page_list.html
@@ -0,0 +1,22 @@
+{% extends "base.html" %}
+{% block title %}页面管理{% endblock %}
+{% block content %}
+<table>
+ <tr>
+ <th>No.</th>
+ <th>名称</th>
+ <th>操作</th>
+ </tr>
+ {% for i in pages %}
+ <tr>
+ <td>{{ loop.index }}</td>
+ <td>{{ i.title }}</td>
+ <td>
+ <a href="/admin/page/edit/{{ i.id }}/">修改</a> |
+ <a href="/admin/page/del/{{ i.id }}/">删除</a>
+ </td>
+ </tr>
+ {% endfor %}
+</table>
+<p><a href="/admin/page/add/">添加新页面</a></p>
+{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.