hexo-theme-amane/layout/common/footer.ejs

39 lines
1.8 KiB
Plaintext
Raw Normal View History

2018-10-16 05:28:42 +00:00
<footer class="footer">
<div class="container">
<div class="level">
<div class="level-start has-text-centered-mobile">
2018-10-16 05:28:42 +00:00
<a class="footer-logo is-block has-mb-6" href="<%- url_for('/') %>">
<% if (has_config('logo.text') && get_config('logo.text')) { %>
<%= get_config('logo.text') %>
<% } else { %>
<img src="<%- url_for(get_config('logo')) %>" alt="" height="28">
2018-10-16 05:28:42 +00:00
<% } %>
</a>
<p class="is-size-7">
&copy; <%= date(new Date(), 'YYYY') %> <%= get_config('author') || get_config('title') %>&nbsp;
Powered by <a href="http://hexo.io/" target="_blank">Hexo</a> & <a
href="http://github.com/ppoffice/hexo-theme-icarus">Icarus</a>
</p>
</div>
<div class="level-end">
<% if (has_config('footer.links')) { %>
<div class="field has-addons is-flex-center-mobile has-mt-5-mobile">
2018-10-16 05:28:42 +00:00
<% let links = get_config('footer.links'); %>
<% for (let name in links) {
let link = links[name]; %>
<p class="control">
<a class="button is-white is-large" target="_blank" title="<%= name %>" href="<%= url_for(typeof(link) === 'string' ? link : link.url) %>">
<% if (typeof(link) === 'string') { %>
<%= name %>
<% } else { %>
<i class="<%= link.icon %>"></i>
<% } %>
</a>
</p>
<% } %>
</div>
<% } %>
</div>
2016-02-02 16:19:44 +00:00
</div>
</div>
</footer>