Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
GitHubExcellent
Django Blog Tutorial
Commits
8062ad0c
Commit
8062ad0c
authored
7 years ago
by
yangxg
Browse files
Options
Download
Patches
Plain Diff
添加目录
parent
ef74e8b6
master
Step13_fix-some-issues
Step16_record-post-views
Step17_generate-excerpt-automatically
Step18_class-based-views
Step19_simple-pagination
Step20_complete-pagination
Step21_number-of-post-in-category
Step22_tag-cloud
Step23_rss-feed
Step24_extract-content-automatically-using-markdown
Step25_simple-search
Step26_full-text-search-using-django-haystack
demo
dependabot/pip/django-1.11.29
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/base.html
+2
-0
templates/base.html
templates/blog/detail.html
+25
-2
templates/blog/detail.html
with
27 additions
and
2 deletions
+27
-2
templates/base.html
+
2
−
0
View file @
8062ad0c
...
...
@@ -73,6 +73,8 @@
{% endblock main %}
</main>
<aside
class=
"col-md-4"
>
{% block toc %}
{% endblock toc %}
<div
class=
"widget widget-recent-posts"
>
<h3
class=
"widget-title"
>
最新文章
</h3>
{% get_recent_posts as recent_post_list %}
...
...
This diff is collapsed.
Click to expand it.
templates/blog/detail.html
+
25
−
2
View file @
8062ad0c
...
...
@@ -54,7 +54,8 @@
{% for comment in comment_list %}
<li
class=
"comment-item"
>
<span
class=
"nickname"
>
{{ comment.name }}
</span>
<time
class=
"submit-date"
>
{{ comment.created_time }}
</time>
<time
class=
"submit-date"
datetime=
"{{ comment.created_time }}"
>
{{ comment.created_time }}
</time>
<div
class=
"text"
>
{{ comment.text }}
</div>
...
...
@@ -65,4 +66,26 @@
</ul>
</div>
</section>
{% endblock main %}
\ No newline at end of file
{% endblock main %}
{% block toc %}
<div
class=
"widget widget-content"
>
<h3
class=
"widget-title"
>
文章目录
</h3>
<ul>
<li>
<a
href=
"#"
>
教程特点
</a>
</li>
<li>
<a
href=
"#"
>
谁适合这个教程
</a>
</li>
<li>
<a
href=
"#"
>
在线预览
</a>
</li>
<li>
<a
href=
"#"
>
资源列表
</a>
</li>
<li>
<a
href=
"#"
>
获取帮助
</a>
</li>
</ul>
</div>
{% endblock toc %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets