mirror of https://github.com/mpastell/Weave.jl
Add titleblock to html template
parent
606bf9147f
commit
262589cfdc
|
@ -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 }}}
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
\documentclass{article}[12pt]
|
||||
\usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry}
|
||||
|
||||
{{#:title}}
|
||||
\title{ {{{ :title }}} }
|
||||
{{/:title}}
|
||||
|
||||
{{#:author}}
|
||||
\author{ {{{ :author }}} }
|
||||
|
|
|
@ -528,3 +528,4 @@ code {
|
|||
|
||||
h1.title {margin-top : 20px}
|
||||
img {max-width : 100%%}
|
||||
div.title {text-align: center;}
|
||||
|
|
Loading…
Reference in New Issue