updated fixed fordepth elements
This commit is contained in:
parent
e51fdd6a27
commit
a80501ac23
2 changed files with 21 additions and 11 deletions
|
@ -5,9 +5,9 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>$title$</title>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="css/scientific.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/solarized.css" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="$webprefix$/img/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="$webprefix$/css/scientific.css" />
|
||||
<link rel="stylesheet" type="text/css" href="$webprefix$/css/solarized.css" />
|
||||
<!-- Font -->
|
||||
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
|
||||
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
|
||||
|
@ -42,10 +42,10 @@
|
|||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
|
||||
<script type="text/javascript" src="js/jquery.cookie.js"></script>
|
||||
<script type="text/javascript" src="js/index.js"></script>
|
||||
<script type="text/javascript" src="js/highlight/highlight.pack.js"></script>
|
||||
<script type="text/javascript" src="js/article.js"></script>
|
||||
<script type="text/javascript" src="$webprefix$/js/jquery-1.3.1.min.js"></script>
|
||||
<script type="text/javascript" src="$webprefix$/js/jquery.cookie.js"></script>
|
||||
<script type="text/javascript" src="$webprefix$/js/index.js"></script>
|
||||
<script type="text/javascript" src="$webprefix$/js/highlight/highlight.pack.js"></script>
|
||||
<script type="text/javascript" src="$webprefix$/js/article.js"></script>
|
||||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
||||
</html>
|
||||
|
|
16
spt
16
spt
|
@ -10,13 +10,23 @@ curdir=$HOME/Sites/static-pandoc-template
|
|||
for fic in $*; do
|
||||
dst="static-pandoc/${fic:r}.html"
|
||||
tmp=${fic:r}.$$.${fic:e}
|
||||
boil="$curdir/boilerplate.html"
|
||||
tmpboil="$curdir/tmp.html"
|
||||
{
|
||||
echo "% ${fic:r}"
|
||||
echo "% Yann Esposito"
|
||||
echo "% $(date +'%d %h %Y')"
|
||||
cat $fic
|
||||
} > $tmp
|
||||
pandoc -s -S --template $curdir/boilerplate.html $tmp > $dst
|
||||
\rm -f $tmp
|
||||
if [[ ${fic:h} != '.' ]]; then
|
||||
reldir=$(print -- ${fic:h} |sed 's#[^/]*#..#g')
|
||||
else
|
||||
reldir='.'
|
||||
fi
|
||||
print $fic:h : $reldir
|
||||
perl -pe 's#\$webprefix\$#'$reldir'#g' < $boil > $tmpboil
|
||||
[[ ! -d ${dst:h} ]] && mkdir -p ${dst:h}
|
||||
pandoc -s -S --template $tmpboil $tmp > $dst
|
||||
print $dst
|
||||
\rm -f $tmp $tmpboil
|
||||
done
|
||||
print -- "results are in static-pandoc/"
|
||||
|
|
Loading…
Reference in a new issue