From 6424135f9233c6a7c9139859ebb465de0e84a898 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 28 Oct 2015 14:49:07 -0400 Subject: added the src app to port all technical writing over from longhandpixels --- design/sass/_src.scss | 4 ++ design/sass/screenv8.scss | 1 + design/templates/archives/src_books.html | 22 +++++++++ design/templates/archives/src_home.html | 0 design/templates/details/src_entry.html | 69 ++++++++++++++++++++++++++++ design/templates/src_base.html | 79 ++++++++++++++++++++++++++++++++ 6 files changed, 175 insertions(+) create mode 100644 design/sass/_src.scss create mode 100644 design/templates/archives/src_books.html create mode 100644 design/templates/archives/src_home.html create mode 100644 design/templates/details/src_entry.html create mode 100644 design/templates/src_base.html (limited to 'design') diff --git a/design/sass/_src.scss b/design/sass/_src.scss new file mode 100644 index 0000000..b054ffe --- /dev/null +++ b/design/sass/_src.scss @@ -0,0 +1,4 @@ +.src-topics { + @include smcaps; + @include fontsize(11); +} diff --git a/design/sass/screenv8.scss b/design/sass/screenv8.scss index 5436e27..369bce7 100644 --- a/design/sass/screenv8.scss +++ b/design/sass/screenv8.scss @@ -18,6 +18,7 @@ @import "_mailing-list.scss"; @import "_birds.scss"; @import "_books.scss"; +@import "_src.scss"; @import "_inbox.scss"; //@import _large.sass diff --git a/design/templates/archives/src_books.html b/design/templates/archives/src_books.html new file mode 100644 index 0000000..bfaffc0 --- /dev/null +++ b/design/templates/archives/src_books.html @@ -0,0 +1,22 @@ +{% extends 'src_base.html' %} +{% load typogrify_tags %} +{% load comments %} + +{% block primary %} +
+ {% for object in object_list %} +
+
+ {{object.title}} cover +

{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|smartypants|safe}}{%else%}{{object.title|smartypants|widont|safe}}{%endif%}

+ {% if object.slug != 'about' %}{%endif%} + {% if object.topics.all %}Topics: {% for topic in object.topics.all%} {{topic.name}}{%if forloop.last%}{%else%}, {%endif%}{%endfor%}{%endif%} + +
+
+ {{object.body_html|safe|smartypants|widont}} +
+
+ {%endfor%} +
+{% endblock %} diff --git a/design/templates/archives/src_home.html b/design/templates/archives/src_home.html new file mode 100644 index 0000000..e69de29 diff --git a/design/templates/details/src_entry.html b/design/templates/details/src_entry.html new file mode 100644 index 0000000..3fa4c93 --- /dev/null +++ b/design/templates/details/src_entry.html @@ -0,0 +1,69 @@ +{% extends 'src_base.html' %} +{% load typogrify_tags %} +{% load comments %} + +{% block primary %} +
+
+
+

{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|smartypants|safe}}{%else%}{{object.title|smartypants|widont|safe}}{%endif%}

+ {% if object.slug != 'about' %}{%endif%} + {% if object.topics.all %}Topics: {% for topic in object.topics.all%} {{topic.name}}{%if forloop.last%}{%else%}, {%endif%}{%endfor%}{%endif%} + +
+
+ {{object.body_html|safe|smartypants|widont}} +
+
+ {% if object.slug != 'about' %} + {% with object.get_next_published as next %} + {% with object.get_previous_published as prev %} + {%endwith%}{%endwith%} + {%endif%} +
+ {% if object.slug != 'about' %} + {% 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%} +{%endif%} +{% endblock %} +{% block js %} + +{% endblock %} diff --git a/design/templates/src_base.html b/design/templates/src_base.html new file mode 100644 index 0000000..29991a9 --- /dev/null +++ b/design/templates/src_base.html @@ -0,0 +1,79 @@ + + + {% block sitename %} + + {% block pagetitle %}Luxagraf - Topografical Writings{% endblock %}{%endblock%} + + + + + + + {%block stylesheet%}{%endblock%} + + {%block extrahead%}{%endblock%} + + +
+
+
+

+

SRC: Code Slowly

+
+ +
+ {% block primary %}{% endblock %} + {% block extrabody %}{% endblock %} + +
+ {% block js %}{% endblock%} + + + + + + + + -- cgit v1.2.3-70-g09d2