-
Notifications
You must be signed in to change notification settings - Fork 0
/
weblog.vm
executable file
·85 lines (75 loc) · 2.61 KB
/
weblog.vm
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<!-- XFN friendly -->
<head profile="http://gmpg.org/xfn/11">
#includeTemplate($model.weblog "standard_head")
<title>$model.weblog.name: $model.weblog.description</title>
#showAutodiscoveryLinks($model.weblog)
<link rel="stylesheet" type="text/css" href='$url.page("custom.css")' />
</head>
<body>
<!-- HEADER -->
<header>
#includeTemplate($model.weblog "standard_header")
</header>
<!-- BODY -->
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">$model.weblog.name <small>$model.weblog.description</small></h1>
</div>
</div>
<div class="row">
<!-- BODY MAIN-->
<div id="main_content" class="col-lg-8">
#set($pager = $model.getWeblogEntriesPager())
#showWeblogEntriesPager($pager)
#if ($model.permalink)
#showWeblogEntryComments($entry)
#showWeblogEntryCommentForm($entry)
#end
<ul class="pager">
#if($utils.isNotEmpty($pager.prevLink))<li class="previous"><a href="$pager.prevLink">← $pager.prevName</a></li>
#end
#if($utils.isNotEmpty($pager.nextLink))<li class="next"><a href="$pager.nextLink">$pager.nextName →</a></li>#end
</ul>
</div>
<!-- BODY - SIDEBAR -->
<div id="sidebar_content" class="col-lg-4">
<div class="well">
<h3>Welcome</h3>
<p class="details">
#set($blurb = $model.weblog.about)
#if ($blurb)
$model.weblog.about
#else
<span class="setup">Add an about message on your Weblog Settings page and it will appear here</span>
#end
Click the link below to subscribe via your favorite feed reader:</p>
<div id="subscribe">
<a href="$url.feed.entries.atom">
<img src='$url.resource("icons/feed-icon-28x28.png")' title="RSS/Atom feed icon" alt="RSS/Atom feed icon" /></a>
<a href="$url.feed.entries.atom">Subscribe to this blog</a>
</div>
</div>
<div class="well">
<h3>Hot tags</h3>
<p class="details">Below are the thirty most often used tags in the blog. Hover over a tag to see a count of entries, click a tag to see the most recent posts with the tag.</p>
<div id="tagcloud">
#set($mytags = $model.weblog.getPopularTags(-1, 30))
#foreach ($tag in $mytags)
#if ($tag.count > 5)
<a class="tag s${tag.intensity}" href="$url.tag($tag.name)" title="$tag.count">$tag.name</a>
#end
#end
</div>
</div>
</div> <!-- close sidebar_content -->
</div> <!-- /.row -->
</div> <!-- /.container -->
<!-- FOOTER -->
<footer>
#includeTemplate($model.weblog "standard_footer")
</footer>
</body>
</html>