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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
<a href="{{ .Permalink }}">
<div class="post-title">
<img src="{{ "/images/post-title-icon.svg" | relURL }}" />
<div class="post-meta">
<time>{{ .Date.Format "02 Jan 2006, 15:04" }}</time>
<h1>{{ .Title }}</h1>
</div>
</div>
</a>
<div class="post-toc">
<span class="title">
Table of contents
</span>
{{ .TableOfContents }}
</div>
<section class="post-content">
{{ .Content }}
</section>
<div class="share">
<a href="http://www.facebook.com/sharer.php?src=bm&u={{ .Permalink }}&t={{ .Title }}" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-facebook"></i></a>
<a href="http://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}&tw_p=tweetbutton" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-twitter"></i></a>
<a href="https://plus.google.com/share?url={{ .Permalink }}" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-google-plus"></i></a>
<a href="http://getpocket.com/edit?url={{ .Permalink }}&title={{ .Title }}" onclick="window.open(this.href, 'PCwindow', 'width=550, height=350, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fa fa-get-pocket"></i></a>
</div>
<div class="post-meta-code">
<div class="desc">
public string description() {
<div class="desc">val author = "
{{ with .Params.author }}
{{ . }}
{{ else }}
<a href="mailto:{{ .Site.Author.email }}">{{ .Site.Author.name }}</a>
{{ end }}";
</div>
{{ if isset .Params "categories" }}
<div class="desc">
val categories = [
{{ $baseUrl := .Site.BaseURL }}
{{ range .Params.categories }}
<a href="{{ $baseUrl }}/categories/{{ . | urlize }}">"{{ . }}"</a>
{{ end }}
];
</div>
{{ end }}
}
</div>
</div>
<div class="post-meta-code">
<div class="desc">
public string tags() {
<div class="desc">
val tags = [
{{ with .Params.tags }}
{{ range . }}
<a href="{{ $.Site.BaseURL}}tags/{{ . | urlize }}">"{{ . }}"</a>
{{ end }}
{{ end }}
];
</div>
}
</div>
</div>
|