A mini theme for the pelican static site generator
git clone https://github.com/m-col/mini-theme
Files | Refs | Readme

-rw-r--r-- templates/base.html


      1 <!DOCTYPE html>
      2 <html lang=en-US>
      3 	<head>
      4 		<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
      5 		<meta charset=utf-8 />
      6 		<meta name=author content={{ AUTHOR }}>
      7 		<meta name=viewport content=width=device-width, initial-scale=1>
      8 		{% for name, content in DEFAULT_METADATA.items() %}
      9 		<meta name={{ name }} content={{ content }}>
     10 		{% endfor %}
     11 		{% block extra_meta %}{% endblock %}
     12 		<link rel="shortcut icon" type=image/png href=/favicon.png />
     13 		<link rel=stylesheet href=/theme/css/{{ CSS_FILE }} type=text/css />
     14 		{% include "feeds.html" %}
     15 		{{ EXTRAHEAD }}
     16 	</head>
     17 
     18 	<body>
     19 		{% if output_file != "index.html" %}
     20 		<table id="head">
     21 			<tr>
     22 				<td width="32px" rowspan="2"><a href="/"><img id=avatar src="{{ AVATAR }}"/></a></td>
     23 				<td rowspan="2">{% block header %}{% endblock header %}</td>
     24 				<td class="link"><a href="/code">code</a></td>
     25 			</tr>
     26 			<tr>
     27 				{% if output_file == "about.html" %}
     28 				<td class="link"><a href="/posts.html">posts</a></td>
     29 				{% else %}
     30 				<td class="link"><a href="/about.html">about</a></td>
     31 				{% endif %}
     32 			</tr>
     33 		</table>
     34 		<hr>
     35 		{% endif %}
     36 		{% block content %}
     37 		{% endblock %}
     38 		{{ EXTRATAIL }}
     39 	</body>
     40 </html>
     41