From cf08e3e0e4f77751699edb97ae95ca415ae7cd26 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 21 Apr 2014 15:46:55 +0200 Subject: [PATCH] Generate PDF version of the resume --- basics/templates/basics/resume.html | 6 +++--- basics/templates/resume_pdf.html | 12 ++++++++++++ basics/urls.py | 1 + basics/views.py | 17 +++++++++++++++++ 4 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 basics/templates/resume_pdf.html diff --git a/basics/templates/basics/resume.html b/basics/templates/basics/resume.html index 86bd20c..a3427f4 100644 --- a/basics/templates/basics/resume.html +++ b/basics/templates/basics/resume.html @@ -1,9 +1,9 @@ -{% extends 'front_base.html' %} +{% extends pdf|yesno:'resume_pdf.html,front_base.html' %} {% block title %} - Resume{% endblock %} {% block content %} -

Resume [ want some keywords only? click this! ]

+

Resume{% if not pdf %} [ want some keywords only? click this! ]{% endif %}

I am Gergely Polonkai (sometimes referred to as W00d5t0ck or Polesz), a software developer, systems engineer and administrator. I was born on 7 March, 1983 in Budapest, Hungary. I spent my life moving here-and-there in the country, and finally settled in Budapest. Although I have already found my mate for life, I am single yet (living in a common-law marriage), being the proud father of a son and a daughter.

@@ -20,7 +20,7 @@
-
You can download the latest version of my resume at http://{{ site.domain }}{% url "basics:resume" %}.
+
You can download the latest version of my resume at http://{{ site.domain }}{% url "basics:resumepdf" %}.