diff --git a/Data/Templates/template.html b/Data/Templates/template.html new file mode 100644 index 00000000..ac990269 --- /dev/null +++ b/Data/Templates/template.html @@ -0,0 +1,11 @@ + + + + + + $title$ + + +$body$ + + diff --git a/Scripts/convert-md2html.ps1 b/Scripts/convert-md2html.ps1 index cf38245d..054ce751 100644 --- a/Scripts/convert-md2html.ps1 +++ b/Scripts/convert-md2html.ps1 @@ -27,7 +27,7 @@ try { Write-Host "⏳ Converting..." gci -r -i $FilePattern | foreach { $TargetPath = $_.directoryname + "\" + $_.basename + ".html" - pandoc -f md -s $_.name -o $TargetPath + pandoc --standalone --template "$PSScriptRoot/../Data/Templates/template.html" -s $_.name -o $TargetPath } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds "✔️ converted in $Elapsed sec"