Files
leanote/public/blog/themes/elegant/footer.html

76 lines
2.1 KiB
HTML
Raw Normal View History

2014-11-09 16:24:19 +08:00
<div id="footerContainer">
{{$userId := $.blogInfo.UserId}}
<div class="container" id="footer">
<div class="col-md-4">
2015-01-10 19:04:06 +08:00
<h3>Navigation</h3>
2014-11-09 16:24:19 +08:00
<ul>
2015-01-10 19:04:06 +08:00
<li><a href="{{$.indexUrl}}">Home</a></li>
2014-11-09 16:24:19 +08:00
{{range $.cates}}
<li>
<a href="{{$.cateUrl}}/{{.UrlTitle}}">{{.Title}}</a>
2014-11-09 16:24:19 +08:00
</li>
{{end}}
<!-- 单页 -->
{{range $.singles}}
<li class="{{if eq $.curSingleId .SingleId}}active{{end}}">
<a href="{{$.singleUrl}}/{{.UrlTitle}}">{{.Title}}</a>
</li>
{{end}}
<!-- 归档 -->
<li class="{{if $.curIsArchive}}active{{end}}">
2015-01-10 19:04:06 +08:00
<a href="{{$.archiveUrl}}">Archives</a>
</li>
<li class="{{if $.curIsTags}}active{{end}}">
2015-01-10 19:04:06 +08:00
<a href="{{$.tagsUrl}}">Tags</a>
</li>
2014-11-09 16:24:19 +08:00
</ul>
</div>
<div class="col-md-4">
2015-01-10 19:04:06 +08:00
<h3>Recent Posts</h3>
2014-11-09 16:24:19 +08:00
<ul>
{{range .recentPosts}}
2015-01-10 19:04:06 +08:00
<li title="{{.Title}}"><a href="{{$.postUrl}}/{{.UrlTitle}}">
{{if .Title}}
{{.Title}}
{{else}}
Untitled
{{end}}
</a></li>
2014-11-09 16:24:19 +08:00
{{end}}
</ul>
</div>
<div class="col-md-4">
2015-01-10 19:04:06 +08:00
<h3>Friend Links</h3>
2014-11-09 16:24:19 +08:00
<ul>
{{if $.themeInfo.FriendLinks}}
{{range $.themeInfo.FriendLinks}}
<li><a href="{{.Url}}" target="_blank">{{.Title}}</a></li>
{{end}}
{{end}}
</ul>
</div>
</div>
<div class="footer-leanote">Proudly powered by <a href="https://leanote.com">Leanote</a></div>
2014-11-09 16:24:19 +08:00
</div>
<script src="{{$.jQueryUrl}}"></script>
<script src="{{$.bootstrapJsUrl}}"></script>
<script src="{{$.siteUrl}}/js/bootstrap-hover-dropdown.js"></script>
<script>
// 搜索
function search(e) {
var keywords = $("#searchInput").val();
if(!keywords) {
location.href = "{{$.searchUrl}}";
} else {
var tpl = '<form style="display: none" action="{{$.searchUrl}}" method="get">';
tpl += '<input name="keywords" value="' + keywords + '" />';
tpl += "</form";
var $tpl = $(tpl);
$('body').append($tpl)
$tpl.submit();
$tpl.remove();
2014-11-09 16:24:19 +08:00
}
}
</script>