aboutsummaryrefslogtreecommitdiffstats
path: root/syte/templates
diff options
context:
space:
mode:
Diffstat (limited to 'syte/templates')
-rw-r--r--syte/templates/404.html10
-rw-r--r--syte/templates/analytics.html11
-rw-r--r--syte/templates/article.html50
-rw-r--r--syte/templates/base.html59
-rw-r--r--syte/templates/hacker_news.html7
-rw-r--r--syte/templates/index.html18
-rw-r--r--syte/templates/instagram_auth.html21
-rw-r--r--syte/templates/pagination.html14
-rw-r--r--syte/templates/tag.html18
-rw-r--r--syte/templates/twitter.html3
10 files changed, 211 insertions, 0 deletions
diff --git a/syte/templates/404.html b/syte/templates/404.html
new file mode 100644
index 0000000..d4071bc
--- /dev/null
+++ b/syte/templates/404.html
@@ -0,0 +1,10 @@
+{% extends 'base.html' %}
+{% block pagetitle %}404 Not Found{% endblock %}
+{% block main_section %}
+<section class="main-section">
+ <article>
+ <h2>The page you are looking for was not found.</h2>
+ <p>Please use the links on the left to navigate to your desired destination.</p>
+ </article>
+</section>
+{% endblock %}
diff --git a/syte/templates/analytics.html b/syte/templates/analytics.html
new file mode 100644
index 0000000..ba174fc
--- /dev/null
+++ b/syte/templates/analytics.html
@@ -0,0 +1,11 @@
+{% if GOOGLE_ANALYTICS %}
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
+ pageTracker._trackPageview();
+ } catch(err) {}</script>
+{% endif %} \ No newline at end of file
diff --git a/syte/templates/article.html b/syte/templates/article.html
new file mode 100644
index 0000000..756a738
--- /dev/null
+++ b/syte/templates/article.html
@@ -0,0 +1,50 @@
+{% extends 'base.html' %}
+{% block title %}{{article.title}} | Samrat Man Singh{% endblock %}
+{% block main_section %}
+<section class="main-section blog-section" id="blog-posts">
+ <h3 class="date">{{article.locale_date}}</h3>
+ <article>
+ <hgroup>
+
+ <h2><a href="{{SITEURL}}/{{article.url}}">{{article.title}}</a></h2>
+ {% include "twitter.html" %}
+ <a href="http://news.ycombinator.com/submit" class="hn-share-button">Vote on HN</a>
+ <!--<script type="text/javascript" src="http://hnapiwrapper.herokuapp.com/static/js/button.js"></script>-->
+ {% include "hacker_news.html" %}
+ </hgroup>
+ {{article.content}}
+
+ <p>
+ If you liked this post, you should <a href="http://twitter.com/samratmansingh">follow me on Twitter.</a>
+ </p>
+ <br/>
+ <footer>
+ {% if article.tags %}
+ <h4>TAGS</h4>
+ <ul class="tags">
+ {% for tag in article.tags %}
+ <li><a href="{{ SITEURL }}/tag/{{ tag }}.html" class="tag">{{tag}}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+
+ <br/>
+ {% if DISQUS_SITENAME %}
+ <div class="comments">
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_identifier = "{{ article.url }}";
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ </div>
+ {% endif %}
+ </footer>
+ </article>
+</section>
+
+
+{% endblock %}
diff --git a/syte/templates/base.html b/syte/templates/base.html
new file mode 100644
index 0000000..a0d769a
--- /dev/null
+++ b/syte/templates/base.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html lang="en">
+{% block head %}
+<head>
+ <meta charset="utf-8" />
+ <meta name="description" content="Personal website and blog of Samrat Man Singh. Follow him at @samratmansingh" />
+ <meta name="keywords" content="Samrat Man Singh, python, flask, computers, technology, nepal" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{% block title %}{{SITENAME}}{% endblock %}</title>
+ <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+
+ <link rel="stylesheet" href="{{SITEURL}}/{{ MEDIA_URL }}css/styles.min.css" type="text/css" media="screen, projection">
+
+</head>
+{% endblock %}
+<body>
+<header class="main-header">
+ <hgroup>
+ <div class="picture">
+ <a href="/" rel="home"></a>
+ </div>
+ <h1>{{ SITENAME }}</h1>
+ <h2>18 year-old from Nepal interested in computers and technology.</h2>
+ </hgroup>
+ <nav>
+ <ul class="main-nav">
+ <li><a href="/" id="home-link">Home</a></li>
+ <li><a href="http://twitter.com/#!/samratmansingh" id="twitter-link">Twitter</a></li>
+ <li><a href="http://github.com/samrat" id="github-link">Github</a></li>
+ <li><a href="http://feeds.feedburner.com/SamratManSingh" id="github-link">Feed</a></li>
+ <li><a href="mailto:samratmansingh@gmail.com?subject=Hello" id="contact-link">Contact</a></li>
+ </ul>
+ </nav>
+ <a href="http://pelican.notmyidea.org" class="fork-me">Powered by Pelican.</a>
+
+</header>
+{% block main_section %}{% endblock %}
+<div class="mobile-nav">
+ <span class="nav-btn" id="mobile-nav-btn">
+ <span class="nav-btn-bar"></span>
+ <span class="nav-btn-bar"></span>
+ <span class="nav-btn-bar"></span>
+ </span>
+ <h3><a href="/">samrat.github.com</a></h3>
+</div>
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+<script type="text/javascript">
+/*<![CDATA[*/
+var twitter_integration_enabled = {% if TWITTER_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
+ github_integration_enabled = {% if GITHUB_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
+ dribbble_integration_enabled = {% if DRIBBBLE_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
+ instagram_integration_enabled = {% if INSTAGRAM_INTEGRATION_ENABLED %}true{% else %}false{% endif %};
+/*]]>*/
+</script>
+
+<script src="{{ SITEURL }}/{{ MEDIA_URL }}js/min/scripts.min.js"></script>
+
+{% include "analytics.html" %}
+</body>
diff --git a/syte/templates/hacker_news.html b/syte/templates/hacker_news.html
new file mode 100644
index 0000000..b0fef97
--- /dev/null
+++ b/syte/templates/hacker_news.html
@@ -0,0 +1,7 @@
+<script>
+ (function() {
+ var hn = document.createElement('script'); hn.type = 'text/javascript';
+ hn.async = true; hn.src = 'http://hnbutton.appspot.com/static/hn.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(hn, s);
+ })();
+</script>
diff --git a/syte/templates/index.html b/syte/templates/index.html
new file mode 100644
index 0000000..9f42064
--- /dev/null
+++ b/syte/templates/index.html
@@ -0,0 +1,18 @@
+{% extends 'base.html' %}
+{% block main_section %}
+<section class="main-section blog-section" id="blog-posts">
+ {% for article in articles_page.object_list %}
+ <h3 class="date">{{article.locale_date}}</h3>
+ <article>
+ <hgroup>
+ <h2><a href="{{article.url}}" title="Permalink to {{article.title}}">{{article.title}}</a></h2>
+
+ </hgroup>
+ {{article.content}}
+ </article>
+{% endfor %}
+
+{% include "pagination.html" %}
+
+</section>
+{% endblock %}
diff --git a/syte/templates/instagram_auth.html b/syte/templates/instagram_auth.html
new file mode 100644
index 0000000..d864641
--- /dev/null
+++ b/syte/templates/instagram_auth.html
@@ -0,0 +1,21 @@
+{% extends 'base.html' %}
+{% block pagetitle %}Instagram Auth{% endblock %}
+{% block main_section %}
+<section class="main-section">
+ <article>
+ {% if error %}
+ <h2>Unable to get Access Token</h2>
+ <p>{{ error }}</p>
+ {% else %}
+ <h2>Instagram Access Token</h2>
+ <p>Go to your syte_settings.py and enter the token under <code>INSTAGRAM_ACCESS_TOKEN</code> and the user id under <code>INSTAGRAM_USER_ID</code>.</p>
+ <dl>
+ <dt>User Name</dt><dd> {{ user_name }}</dd>
+ <dt>User ID</dt><dd>{{ user_id }}</dd>
+ <dt>Access Token</dt><dd>{{ token }}</dd>
+ </dl>
+ {% endif %}
+ </article>
+</section>
+{% endblock %}
+
diff --git a/syte/templates/pagination.html b/syte/templates/pagination.html
new file mode 100644
index 0000000..b53a580
--- /dev/null
+++ b/syte/templates/pagination.html
@@ -0,0 +1,14 @@
+{% if DEFAULT_PAGINATION %}
+<p class="paginator">
+ {% if articles_page.has_previous() %}
+ {% if articles_page.previous_page_number() == 1 %}
+ <a href="{{ SITEURL }}/{{ page_name }}.html" class="button_accent">&larr;&nbsp;&nbsp;&nbsp;newer</a>
+ {% else %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html" class="button_accent">&larr;&nbsp;&nbsp;&nbsp;newer</a>
+ {% endif %}
+ {% endif %}
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html" class="button_accent" style="float:right; right: 0;">continue&nbsp;&nbsp;&nbsp;&rarr;</a>
+ {% endif %}
+</p>
+{% endif %}
diff --git a/syte/templates/tag.html b/syte/templates/tag.html
new file mode 100644
index 0000000..ae97414
--- /dev/null
+++ b/syte/templates/tag.html
@@ -0,0 +1,18 @@
+{% extends 'base.html' %}
+{% block title %}Posts tagged '{{tag}}' | Samrat Man Singh {% endblock %}
+{% block main_section %}
+<section class="main-section blog-section" id="blog-posts">
+ {% for article in articles[:5] %}
+ <h3 class="date">{{article.locale_date}}</h3>
+ <article>
+ <hgroup>
+ <h2><a href="{{article.url}}" title="Permalink to {{article.title}}">{{article.title}}</a></h2>
+
+ </hgroup>
+ {{article.content}}
+ </article>
+{% endfor %}
+</section>
+
+
+{% endblock %}
diff --git a/syte/templates/twitter.html b/syte/templates/twitter.html
new file mode 100644
index 0000000..c6b159f
--- /dev/null
+++ b/syte/templates/twitter.html
@@ -0,0 +1,3 @@
+{% if TWITTER_USERNAME %}
+<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="{{TWITTER_USERNAME}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+{% endif %} \ No newline at end of file