Add titleblock to html template

pull/66/head
Matti Pastell 2016-12-15 14:08:19 +02:00
parent 606bf9147f
commit 262589cfdc
3 changed files with 10 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<HEAD>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>{{{:title}}}</title>
{{#:title}}<title>{{:title}}</title>{{/:title}}
{{{ :header_script }}}
<script type="text/x-mathjax-config">
@ -24,6 +24,12 @@
<div class = "row">
<div class = "col-md-12 twelve columns">
<div class="title">
{{#:title}}<h1 class="title">{{:title}}</h1>{{/:title}}
{{#:author}}<h5>{{{:author}}}</h5>{{/:author}}
{{#:date}}<h5>{{{:date}}}</h5>{{/:date}}
</div>
{{{ :body }}}

View File

@ -1,7 +1,9 @@
\documentclass{article}[12pt]
\usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry}
{{#:title}}
\title{ {{{ :title }}} }
{{/:title}}
{{#:author}}
\author{ {{{ :author }}} }

View File

@ -528,3 +528,4 @@ code {
h1.title {margin-top : 20px}
img {max-width : 100%%}
div.title {text-align: center;}