summaryrefslogtreecommitdiff
path: root/app/pages/templates
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
committerlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
commitbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch)
tree6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/pages/templates
initial commit
Diffstat (limited to 'app/pages/templates')
-rw-r--r--app/pages/templates/pages/about.html32
-rw-r--r--app/pages/templates/pages/homepage.html32
-rw-r--r--app/pages/templates/pages/page_detail.html38
-rw-r--r--app/pages/templates/pages/page_detail.txt8
4 files changed, 110 insertions, 0 deletions
diff --git a/app/pages/templates/pages/about.html b/app/pages/templates/pages/about.html
new file mode 100644
index 0000000..a3eb9f9
--- /dev/null
+++ b/app/pages/templates/pages/about.html
@@ -0,0 +1,32 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{% load comments %}
+{% block pagetitle %}Cumulus Learning | {{object.title}}{% endblock %}
+{% block metadescription %}{{object.meta_description}}{% endblock %}
+{%block htmlclass%}class="detail"{%endblock%}
+{%block bodyid%}id="{{object.title|slugify}}"{%endblock%}
+{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
+{% block primary %}<main>
+ <div class="post-article" style="margin-top: 4rem">
+ {{object.body_html|safe|smartypants|widont}}
+ </div>
+ </article>
+ {% if object.enable_comments %}
+{% get_comment_count for object as comment_count %}
+{%if comment_count > 0 %}
+<p class="comments--header">{{comment_count}} Comment{{ comment_count|pluralize }}</p>
+{% render_comment_list for object %}
+{%endif%}
+<div class="comment--form--wrapper {%if comment_count > 0%}comment-form-border{%endif%}">
+{% render_comment_form for object %}
+</div>
+{%endif%}
+ </main>
+{% endblock %}
+{% block js %}
+<script src="/media/js/lightbox.js" type="text/javascript"></script>
+<script>var opts={captions:true,onload:function(){var im=document.getElementById("jslghtbx-contentwrapper");var link=im.appendChild(document.createElement('a'))
+link.href=im.firstChild.src;link.innerHTML="open ";link.target="_blank";link.setAttribute('class','p-link');im.appendChild(link);}};var lightbox=new Lightbox();lightbox.load(opts);</script>
+{% endblock %}
+
+
diff --git a/app/pages/templates/pages/homepage.html b/app/pages/templates/pages/homepage.html
new file mode 100644
index 0000000..537dd31
--- /dev/null
+++ b/app/pages/templates/pages/homepage.html
@@ -0,0 +1,32 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{% block sitename %}
+<head itemscope itemtype="http://schema.org/WebSite">
+ <title itemprop='name'></title>
+ <link rel="canonical" href="https://tk.net/">{%endblock%}
+ {%block extrahead%}
+ {%endblock%}
+{%block bodyid%}id="home"{%endblock%}
+
+{% block primary %}
+<main>
+ <article class="content about">
+ <div class="big-top">
+ <h1>Hi, I'm Corrinne Gilbertson,</h1>
+ <p>a <a href="/what-is-structured-word-inquiry">literacy instructor</a>, <a href="">reading specialist</a>, &amp; <a href="">linguist</a>.
+ <p>I provide <a href="">group classes</a> and <a href="">private tutoring</a> to help<br />
+ struggling readers and spellers build a meaningful<br /> understanding of the English language.</p>
+ <p>Interested? Email me: <a href="mailto:corrinne@cumuluslearning.net">corrinne@cumuluslearning.net</a></p>
+ </div>
+ <div class="sign-form">
+ <h2>Sign Up To Learn More</h2>
+ <p>Drop your email in the box to be notified about group classes</p>
+ <p><iframe target='_parent' style="border:none !important; background:white; width:100% !important; height: 300px;" title="embedded form for class notifications" src="{% url 'lttr:subscribe' 'classes' %}"></iframe></p>
+ <p>Head over to the <a href="/classes/">class list</a> for more info.</p>
+ </div>
+ <div class="post-article" style="margin-top: 7rem">
+ {{object.body_html|safe|smartypants|widont}}
+ </div>
+ </article>
+ </main>
+{% endblock %}
diff --git a/app/pages/templates/pages/page_detail.html b/app/pages/templates/pages/page_detail.html
new file mode 100644
index 0000000..8b1741f
--- /dev/null
+++ b/app/pages/templates/pages/page_detail.html
@@ -0,0 +1,38 @@
+{% extends 'base.html' %}
+{% load typogrify_tags %}
+{% load comments %}
+{% block pagetitle %}Cumulus Learning | {{object.title}}{% endblock %}
+{% block metadescription %}{{object.meta_description}}{% endblock %}
+{%block htmlclass%}class="detail"{%endblock%}
+{%block bodyid%}id="{{object.title|slugify}}"{%endblock%}
+{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
+{% block primary %}
+<main role="main" class="archive-wrapper">
+ <article>
+ <header class="archive-intro">
+ <h1 class="archive-hed">{{object.title}}</h1>
+ {%if object.sub_title %}<h2 class="post-subtitle">{{object.sub_title}}</h2>{%endif%}
+ </header>
+ <div class="post-article">
+ {{object.body_html|safe|smartypants|widont}}
+ </div>
+ </article>
+ {% if object.enable_comments %}
+{% get_comment_count for object as comment_count %}
+{%if comment_count > 0 %}
+<p class="comments--header">{{comment_count}} Comment{{ comment_count|pluralize }}</p>
+{% render_comment_list for object %}
+{%endif%}
+<div class="comment--form--wrapper {%if comment_count > 0%}comment-form-border{%endif%}">
+{% render_comment_form for object %}
+</div>
+{%endif%}
+ </main>
+{% endblock %}
+{% block js %}
+<script src="/media/js/lightbox.js" type="text/javascript"></script>
+<script>var opts={captions:true,onload:function(){var im=document.getElementById("jslghtbx-contentwrapper");var link=im.appendChild(document.createElement('a'))
+link.href=im.firstChild.src;link.innerHTML="open ";link.target="_blank";link.setAttribute('class','p-link');im.appendChild(link);}};var lightbox=new Lightbox();lightbox.load(opts);</script>
+{% endblock %}
+
+
diff --git a/app/pages/templates/pages/page_detail.txt b/app/pages/templates/pages/page_detail.txt
new file mode 100644
index 0000000..547ce79
--- /dev/null
+++ b/app/pages/templates/pages/page_detail.txt
@@ -0,0 +1,8 @@
+{{object.title|safe}}
+{% for letter in object.title %}={%endfor%}
+
+ by Scott Gilbertson
+ <{{SITE_URL}}{{object.get_absolute_url}}>
+ {{object.pub_date|date:"l, d F Y"}}
+
+{{object.body_markdown|safe}}