2018-03-12 19:31:14 +00:00
|
|
|
|
2019-03-14 13:51:00 +00:00
|
|
|
<%
|
|
|
|
const date = page.date.format(config.date_format).split('-').join('.');
|
2019-12-13 20:14:15 +00:00
|
|
|
const post = page.url;
|
2019-03-14 13:51:00 +00:00
|
|
|
%>
|
|
|
|
|
2019-12-13 20:14:15 +00:00
|
|
|
<header class="hero-header" style="background: #211d1f url('<% if (page.banner) {%>
|
|
|
|
<% if (post) {%> <%- url_for(post + '/' + page.banner) %> <%} else { %> <%- url_for(page.banner) %> <% } %>
|
|
|
|
<% } else { %> <%= url_for('img/knowledge-bg.jpg') %> <% } %>') <% if (page.percent) { %> <%= page.percent %> <% } else { %> 50% 50% <% } %> no-repeat; background-size: cover;">
|
2018-03-12 19:31:14 +00:00
|
|
|
<div class="heading">
|
2020-09-24 21:10:11 +00:00
|
|
|
<h1><%=page.title%></h1>
|
2018-03-12 19:31:14 +00:00
|
|
|
<h4 class="subheading"><%= page.subtitle || "" %></h4>
|
2019-03-14 13:51:00 +00:00
|
|
|
<small><%- date %></small>
|
2018-06-04 14:30:53 +00:00
|
|
|
<% if (page.authors) { %>
|
2020-11-25 15:07:06 +00:00
|
|
|
<strong class="author">Author(s):
|
2018-07-05 01:18:42 +00:00
|
|
|
<% page.authors.map(function(author) { %>
|
|
|
|
<a href="<%= author.url %>"><%= author.name %>
|
|
|
|
<% if (author.network) { %>
|
|
|
|
<span class="hero-icon"><svg role="img"><use xlink:href="#icon-<%= author.network %>"></use></svg></span>
|
|
|
|
<% } %>
|
|
|
|
</a><i>,</i>
|
|
|
|
<% }) %>
|
|
|
|
</strong>
|
2018-06-04 14:30:53 +00:00
|
|
|
<% } %>
|
2018-03-12 19:31:14 +00:00
|
|
|
</div>
|
|
|
|
</header>
|