-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPostRenderer.tt
43 lines (37 loc) · 1.23 KB
/
PostRenderer.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".md" #>
---
layout: post
title: "<#= workLog.shortDescription #>"
date: <#= workLog.dateOfWork.ToString("yyyy-MM-dd") #>
banner_preview: <#= workLog.image1FileName #>
banner_image: blog-banner-n847j.jpg
category: <#= String.IsNullOrEmpty(workLog.customCategory) ? workLog.category : workLog.customCategory #>
tags: [airplane, <#= workLog.category #>]
hours: <#= workLog.hours #>
---
<# if( !string.IsNullOrEmpty(workLog.manualRefNumber))
{ #>
Plans Reference: <#= workLog.manualRefNumber #>
<# } #>
<# if( workLog.hours != null && workLog.hours > 0)
{ #>
Hours Spent: <#= workLog.hours #>
<# } #>
<#= workLog.comments #>
<# if( workLog.image1 != null)
{ #>

<# } #>
<# if( workLog.image2 != null)
{ #>

<# } #>
<# if( workLog.image3 != null)
{ #>

<# } #>