From a2891841fbf1e5660693a1f9109f2e6810224a3b Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 5 May 2019 11:40:42 -0500 Subject: added tutorials with comments --- design/templates/tutorials/topic_list.html | 35 ++++++++++ design/templates/tutorials/tutorial_detail.html | 85 +++++++++++++++++++++++++ design/templates/tutorials/tutorial_list.html | 22 +++++++ 3 files changed, 142 insertions(+) create mode 100644 design/templates/tutorials/topic_list.html create mode 100644 design/templates/tutorials/tutorial_detail.html create mode 100644 design/templates/tutorials/tutorial_list.html (limited to 'design/templates/tutorials') diff --git a/design/templates/tutorials/topic_list.html b/design/templates/tutorials/topic_list.html new file mode 100644 index 0000000..7149823 --- /dev/null +++ b/design/templates/tutorials/topic_list.html @@ -0,0 +1,35 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} +{% load comments %} + +{% block pagetitle %}Tutorials and tools for building great things{% endblock %} + +{% block metadescription %}Tutorials about {{topic}} - by Scott Gilbertson.{% endblock %} +{%block sitesubtitle %}Code Slowly{% endblock%} +{% block primary %} +
+
+

Tutorials and tools for building great things on the web.

+

The indie web is an amazing democratic publishing platform unlike anything in history. The catch is, to avoid serving at the pleasure of the corporate king, you need to know how to publish. That's what these articles are here for, to help you learn how to use independent, community supported open source tools. The web won't last forever, let's build something cool while we can.

+

A few of the articles below were previously published in: Ars Technica, Wired, and The Register

+
+

Tutorials about {{topic}}

+ + + + +
+{%endblock%} diff --git a/design/templates/tutorials/tutorial_detail.html b/design/templates/tutorials/tutorial_detail.html new file mode 100644 index 0000000..df2f434 --- /dev/null +++ b/design/templates/tutorials/tutorial_detail.html @@ -0,0 +1,85 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} +{% load comments %} +{% block pagetitle %}{{object.title|striptags}} - by Scott Gilbertson{% endblock %} +{% block metadescription %}{% autoescape on %}{{object.meta_description|striptags|safe}}{% endautoescape %}{% endblock %} +{%block extrahead%} + + + + + + + + + + + + + + + +{%endblock%} + +{% block bodyid %}class="src detail single"{% endblock %} + +{% block content %} +
+
+
+

{{object.title|smartypants|safe}}

+ {% if object.sub_title %}

{{object.sub_title|smartypants|safe}}

{%endif%} +
+
Filed Under: {% for tag in object.tags.all %}{%if forloop.last%}{%else%}, {%endif%}{% endfor %}
+ + +
+
+
+ {{object.body_html|safe|smartypants}} +
+
+ {% if object.enable_comments %} +
+
+{% get_comment_count for object as comment_count %} +{%if comment_count > 0 %} +

{{comment_count}} Comment{{ comment_count|pluralize }}

+{% render_comment_list for object %} +{%endif%} +{% render_comment_form for object %} +{% else %} +

Sorry, comments have been disabled for this post.

+{%endif%} +
+
+{% endblock %} +{% block js %} + +{% if object.has_code %} +{%endif %} +{% endblock %} diff --git a/design/templates/tutorials/tutorial_list.html b/design/templates/tutorials/tutorial_list.html new file mode 100644 index 0000000..0b17df2 --- /dev/null +++ b/design/templates/tutorials/tutorial_list.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} +{% load typogrify_tags %} +{% block pagetitle %}Tutorials and tools for building great things{% endblock %} +{% block metadescription %}Tutorials and tools for building great things on the web - by Scott Gilbertson.{% endblock %} +{%block bodyid%}id="essay-archive" class="archive"{%endblock%} +{% block content %} +
+

Tutorials

+ +
+{%endblock%} -- cgit v1.2.3