From 3ffd14fa4da0ca71e1f97a070973e4994bae8f61 Mon Sep 17 00:00:00 2001 From: Arnaud Bos Date: Sat, 20 Oct 2012 02:52:02 +0200 Subject: add client side social integration, use webassets --- syte/templates/404.html | 10 ---- syte/templates/analytics.html | 17 +++---- syte/templates/article.html | 19 +++++--- syte/templates/base.html | 96 +++++++++++++++++++++++++++----------- syte/templates/github.html | 5 ++ syte/templates/google_plusone.html | 3 ++ syte/templates/hacker_news.html | 7 --- syte/templates/index.html | 2 +- syte/templates/instagram_auth.html | 21 --------- syte/templates/page.html | 11 +++++ syte/templates/tag.html | 4 +- syte/templates/translations.html | 16 +++++++ 12 files changed, 129 insertions(+), 82 deletions(-) delete mode 100644 syte/templates/404.html create mode 100644 syte/templates/github.html create mode 100644 syte/templates/google_plusone.html delete mode 100644 syte/templates/hacker_news.html delete mode 100644 syte/templates/instagram_auth.html create mode 100644 syte/templates/page.html create mode 100644 syte/templates/translations.html (limited to 'syte/templates') diff --git a/syte/templates/404.html b/syte/templates/404.html deleted file mode 100644 index d4071bc..0000000 --- a/syte/templates/404.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends 'base.html' %} -{% block pagetitle %}404 Not Found{% endblock %} -{% block main_section %} -
-
-

The page you are looking for was not found.

-

Please use the links on the left to navigate to your desired destination.

-
-
-{% endblock %} diff --git a/syte/templates/analytics.html b/syte/templates/analytics.html index ba174fc..8194366 100644 --- a/syte/templates/analytics.html +++ b/syte/templates/analytics.html @@ -1,11 +1,12 @@ {% if GOOGLE_ANALYTICS %} - -{% endif %} \ No newline at end of file +{% endif %} diff --git a/syte/templates/article.html b/syte/templates/article.html index 756a738..93dded9 100644 --- a/syte/templates/article.html +++ b/syte/templates/article.html @@ -1,5 +1,14 @@ +{% import 'translations.html' as translations with context %} {% extends 'base.html' %} -{% block title %}{{article.title}} | Samrat Man Singh{% endblock %} + +{% block title %}{{article.title}}{% endblock %} + +{% block head %} + {% if GOOGLE_PLUSONE %} + + {% endif %} +{% endblock %} + {% block main_section %}

{{article.locale_date}}

@@ -8,15 +17,11 @@

{{article.title}}

{% include "twitter.html" %} - Vote on HN - - {% include "hacker_news.html" %} + {% include "google_plusone.html" %} + {{ translations.translate(article) }} {{article.content}} -

- If you liked this post, you should follow me on Twitter. -