diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/README.rst | 15 | ||||
-rw-r--r-- | basic/screenshot.png | bin | 0 -> 30332 bytes | |||
-rw-r--r-- | basic/static/css/main.css | 40 | ||||
-rw-r--r-- | basic/templates/base.html | 32 |
4 files changed, 87 insertions, 0 deletions
diff --git a/basic/README.rst b/basic/README.rst new file mode 100644 index 0000000..1384ffc --- /dev/null +++ b/basic/README.rst @@ -0,0 +1,15 @@ +Basic +##### + +This theme has been made for the documentation of the template inheritance feature of Pelican. + +He is usable, but only works with the last version of Pelican from the GIT repository... + +It supports Google Analytics and has a Jappix widget. + +Screenshot +---------- + +.. image:: screenshot.png + :alt: Sreenshot of the basic theme + diff --git a/basic/screenshot.png b/basic/screenshot.png Binary files differnew file mode 100644 index 0000000..3242a7a --- /dev/null +++ b/basic/screenshot.png diff --git a/basic/static/css/main.css b/basic/static/css/main.css new file mode 100644 index 0000000..0dcb17d --- /dev/null +++ b/basic/static/css/main.css @@ -0,0 +1,40 @@ +body { + font-family: monospace; + font-size: 100%; + background-color: white; + color: #111; + width: 80%; + min-width: 400px; + min-height: 200px; + padding: 1em; + margin: 5% 10%; + border: thin solid gray; + border-radius: 5px; + display: block; +} + +a:link { color: blue; text-decoration: none; } +a:hover { color: blue; text-decoration: underline; } +a:visited { color: blue; } + +h1 a { color: inherit !important } +h2 a { color: inherit !important } +h3 a { color: inherit !important } +h4 a { color: inherit !important } +h5 a { color: inherit !important } +h6 a { color: inherit !important } + +#menu li { + display: inline; +} + +#post-list { + margin-bottom: 1em; + margin-top: 1em; +} + +pre { + margin: 2em 1em 2em 4em; + white-space: pre-wrap; +} + diff --git a/basic/templates/base.html b/basic/templates/base.html new file mode 100644 index 0000000..861b4d7 --- /dev/null +++ b/basic/templates/base.html @@ -0,0 +1,32 @@ +{% extends "!simple/base.html" %} + +{%- block head %} +{{ super() }} + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" /> + <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> + {%- if FEED_RSS %}<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />{% endif -%} + <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> + {% 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 %} + {% if JABBER_CHATROOM %} + <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> + <script type="text/javascript" src="https://static.jappix.com/php/get.php?l=fr&t=js&g=mini.xml"></script> + <script type="text/javascript"> + jQuery(document).ready(function() { + MINI_GROUPCHATS = ["{{ JABBER_CHATROOM }}"]; + MINI_ANIMATE = true; + launchMini(false, true, "anonymous.jappix.com"); + }); + </script> + {% endif %} +{% endblock -%} |