Bernhard Scheirle


About Me

Hello, my name is Bernhard.
I'm a computer science student at Karlsruher Institute of Technology.

Contact Me



blogroll


How to keep your copyright year up-to-date


You also forget to update the copyright year on your Pelican1 website?

Use a custom variable to always get the current year on a site rebuild.

Theme:

1
<p>Copyright © {{ CURRENTYEAR }}</p>

pelicanconf.py:

1
2
from datetime import date
CURRENTYEAR = date.today().year

  1. Pelican is a static site generator, written in Python, that requires no database or server-side logic. http://blog.getpelican.com/ 

Comments


There are no comments yet. Why aren't you the FIRST and shout something?

Add a Comment

You may format you comment with Markdown.

Comment Atom Feed