Skip to content

Commit caed34a

Browse files
committed
Update and move default theme files
1 parent 10bcdbf commit caed34a

File tree

21 files changed

+314
-295
lines changed

21 files changed

+314
-295
lines changed

views/components/footer.ejs

Lines changed: 0 additions & 15 deletions
This file was deleted.

views/components/head.ejs

Lines changed: 0 additions & 26 deletions
This file was deleted.

views/components/header.ejs

Lines changed: 0 additions & 44 deletions
This file was deleted.

views/layouts/base.ejs

Lines changed: 0 additions & 30 deletions
This file was deleted.

views/layouts/index.ejs

Lines changed: 0 additions & 78 deletions
This file was deleted.

views/layouts/mdTemplate.ejs

Lines changed: 0 additions & 22 deletions
This file was deleted.

views/layouts/rss.ejs

Lines changed: 0 additions & 28 deletions
This file was deleted.

views/components/backToHome.ejs renamed to views/themes/default/components/backToHome.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%# Back to home link for error pages %>
1+
<%/* Back to home link for error pages */%>
22
<style>
33
.back-to-home {
44
text-align: center;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<div class="footer">
2+
<div class="pure-g">
3+
<div class="pure-u-1">
4+
<p class="copyright"><%~ it.footerCopyright %></p>
5+
</div>
6+
</div>
7+
</div>
8+
9+
<% if (it.build) { %>
10+
<script src="/static/scripts/search.js"></script>
11+
<% } %> <%/*
12+
<!-- Comment added for readability -->
13+
*/%> <% if (it.mdRoute) { %>
14+
<script type="module">
15+
import hljs from "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/es/highlight.min.js"
16+
17+
hljs.highlightAll()
18+
</script>
19+
<% } %>
20+
21+
<script src="/static/scripts/main.js"></script>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<head>
2+
<% /* Metadata */ %>
3+
<meta charset="UTF-8" />
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5+
<meta name="description" content="<%= it.data.description %>" />
6+
7+
<% /* Favicon */ %>
8+
<link rel="shortcut icon" href="/static/icons/favicon.ico" type="image/x-icon" />
9+
10+
<% /* Title */ %>
11+
<title><%= it.siteTitle %> | <%= it.data.title %></title>
12+
13+
<% /* Stylesheets*/ %>
14+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss/build/pure-min.min.css" />
15+
<link rel="stylesheet" href="/static/styles/styles.min.css" />
16+
<% if (it.mdRoute) { %>
17+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@11.8.0/styles/atom-one-dark.min.css" />
18+
<% } %>
19+
</head>

0 commit comments

Comments
 (0)