{{- define "head" }}
{{- /*
MathML render engine */}}
{{- if or .Params.Math site.Params.Math }}
{{ partialCached "head/js/katex.html" . }}
{{- else if or .Params.MathJax site.Params.MathJax }}
{{ partialCached "head/js/mathjax.html" . }}
{{- end }}
{{- /*
Verbatim Style
{{- with findRE `class="chroma"` .Content 1 }}
{{ partialCached "head/css/verbatim.html" $ }}
{{- end }}
*/}}
{{- /*
use Highlight.js */}}
{{- if .Params.Hljs -}}
{{ partialCached "head/js/hljs.html" . }}
{{- end }}
{{- end }}
{{- define "main" }}
{{- $isPost := eq .Params.type (or "post" "articles") }}
{{- $sf := or site.Params.Posts.sfdefault .Params.sfdefault }}
{{- else }}
{{- end }}
{{ .Title }}
{{- end }}
{{- end }}
{{ end }}
{{ partial "page/title.html" . }}
{{- if $isPost }}
{{ partial "page/timestamp.html" . }}
{{- end }}