Added basic theme
This commit is contained in:
parent
a085ca6867
commit
8b9afa66ce
42 changed files with 5633 additions and 0 deletions
2
themes/custom/layout/_partial/arrow.ejs
Normal file
2
themes/custom/layout/_partial/arrow.ejs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<pointer href="javascript:void(0);" class="arrow fa fa-arrow-up"></pointer>
|
||||
<pointer href="javascript:void(0);" class="arrow fa fa-arrow-down"></pointer>
|
||||
12
themes/custom/layout/_partial/aside.ejs
Normal file
12
themes/custom/layout/_partial/aside.ejs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<aside class="aside">
|
||||
<div class="aside-content">
|
||||
<div class="aside-avatar"><img src="<%= theme.Aside.Avatar %>" alt="<%= theme.Aside.Author %>"></div>
|
||||
<div class="aside-author"><%= theme.Aside.Author %></div>
|
||||
<div class="aside-description"><%= theme.Aside.Description %></div>
|
||||
<ul class="aside-contact clearFix">
|
||||
<li><span class="fa fa-github"></span><a href="<%= theme.Aside.Github %>">Github</a></li>
|
||||
<li><span class="fa fa-envelope"></span><a href="javascript:void(0);"><%= theme.Aside.Email %></a></li>
|
||||
<li><span class="fa fa-envelope"></span><a href="javascript:void(0);"><%= theme.Aside.Email %></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</aside>
|
||||
11
themes/custom/layout/_partial/head.ejs
Normal file
11
themes/custom/layout/_partial/head.ejs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title><%=config.title %></title>
|
||||
<%- favicon_tag(theme.Icon.Favicon) %>
|
||||
<%- css("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/css/meethigher-font.css") %>
|
||||
<%- css("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/css/animate.css") %>
|
||||
<%- css('css/index.css') %>
|
||||
</head>
|
||||
10
themes/custom/layout/_partial/header.ejs
Normal file
10
themes/custom/layout/_partial/header.ejs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<header class="header">
|
||||
<div class="header-menu"><span class="fa fa-bars"></span></div>
|
||||
<div class="header-search"><span class="fa fa-search"></span></div>
|
||||
<div class="header-title"><a href="/"><%=config.title%> | <span class="header-subtitle"><%=config.subtitle%></span></a></div>
|
||||
<ul class="header-navbar clearFix">
|
||||
<% for(name in theme.Menu) { %>
|
||||
<li><a href="<%- url_for(theme.Menu[name].url) %>"><%=theme.Menu[name].text%></a></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
</header>
|
||||
10
themes/custom/layout/_partial/paginator.ejs
Normal file
10
themes/custom/layout/_partial/paginator.ejs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<div class="post-nav">
|
||||
<% if(page.total > 1) { %>
|
||||
<div class="page-nav">
|
||||
<%- paginator({
|
||||
prev_text: "«",
|
||||
next_text: "»"
|
||||
}) %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
1
themes/custom/layout/_partial/particles.ejs
Normal file
1
themes/custom/layout/_partial/particles.ejs
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div id="particles-js"></div>
|
||||
1
themes/custom/layout/_partial/search.ejs
Normal file
1
themes/custom/layout/_partial/search.ejs
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div class="search"><span class="fa fa-search"></span></div>
|
||||
1
themes/custom/layout/_partial/toolbar.ejs
Normal file
1
themes/custom/layout/_partial/toolbar.ejs
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div class="toolbar"><span class="fa fa-th"></span></div>
|
||||
27
themes/custom/layout/archive.ejs
Normal file
27
themes/custom/layout/archive.ejs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<div class="main-content meethigher-scroll">
|
||||
<% let postsArr = [];
|
||||
site.posts.forEach(function (post) {
|
||||
postsArr.push(post);
|
||||
});
|
||||
let compare = function (obj1, obj2) {
|
||||
var val1 = obj1.date;
|
||||
var val2 = obj2.date;
|
||||
if (val1 > val2) {
|
||||
return -1;
|
||||
} else if (val1 < val2) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
postsArr = postsArr.sort(compare);
|
||||
%>
|
||||
<div class="tag-tags">
|
||||
<span class="tags-title">Archive - Total of <%= postsArr.length %> posts.</span>
|
||||
<ul class="posts-all">
|
||||
<% postsArr.forEach(function(post){ %>
|
||||
<li><span><%= time(post.date, "YYYY-MM-DD") %></span><a href="<%- url_for("/") %><%= post.path %>"><%= post.title %></a></li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
27
themes/custom/layout/index.ejs
Normal file
27
themes/custom/layout/index.ejs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<div class="main-content meethigher-scroll">
|
||||
<div class="main-content-post">
|
||||
<% page.posts.each(function (post) { %>
|
||||
<article class="post">
|
||||
<div class="post-title">
|
||||
<a href="<%- url_for(post.path) %>"><%= post.title %></a>
|
||||
</div>
|
||||
<div class="post-excerpt">
|
||||
<%- post.excerpt %>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<a href="<%- url_for(post.path) %>">Read</a>
|
||||
<% if (post.tags && post.tags.length){ %>
|
||||
<%- list_tags(post.tags, {
|
||||
show_count: false,
|
||||
class: 'article-tag'
|
||||
}) %>
|
||||
<% } %>
|
||||
</div>
|
||||
<div class="post-media">
|
||||
<span class="post-time">posted @ <%- date(post.date, "YYYY-MM-DD HH:mm:ss") %> <%- config.author %></span>
|
||||
</div>
|
||||
</article>
|
||||
<% }) %>
|
||||
<%- partial("_partial/paginator") %>
|
||||
</div>
|
||||
</div>
|
||||
21
themes/custom/layout/layout.ejs
Normal file
21
themes/custom/layout/layout.ejs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<%- partial("_partial/head") %>
|
||||
<body>
|
||||
<%- partial("_partial/header") %>
|
||||
<main class="main">
|
||||
<%- body %>
|
||||
<%- partial("_partial/arrow") %>
|
||||
</main>
|
||||
<%- partial("_partial/aside") %>
|
||||
<%- partial("_partial/toolbar") %>
|
||||
<!-- partial("_partial/search") -->
|
||||
<%- partial("_partial/particles") %>
|
||||
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/js/jquery.min.js") %>
|
||||
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/js/particles.min.js") %>
|
||||
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@9.0/js/app.js") %>
|
||||
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@11/js/layer/layer.js") %>
|
||||
<%- js("js/meethigher.js") %>
|
||||
<%- js("js/toolbar.js") %>
|
||||
</body>
|
||||
</html>
|
||||
20
themes/custom/layout/post.ejs
Normal file
20
themes/custom/layout/post.ejs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<div class="main-content meethigher-scroll">
|
||||
<article class="post">
|
||||
<div class="post-title">
|
||||
<h2 class="title"><%= page.title %></h2>
|
||||
</div>
|
||||
<div class="post-media2">
|
||||
<span class="post-time"><%- date(page.date, "YYYY-MM-DD") %></span>
|
||||
<% if (page.tags && page.tags.length){ %>
|
||||
<%- list_tags(page.tags, {
|
||||
show_count: false,
|
||||
class: 'article-tag'
|
||||
}) %>
|
||||
<% } %>
|
||||
</div>
|
||||
<div class="post-content blog-markdown">
|
||||
<%- page.more %>
|
||||
</div>
|
||||
</article>
|
||||
<div class="outline"><span class="fa fa-list"></span></div>
|
||||
</div>
|
||||
23
themes/custom/layout/tag.ejs
Normal file
23
themes/custom/layout/tag.ejs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<div class="main-content meethigher-scroll">
|
||||
<div class="tag-tags">
|
||||
<% if(!is_tag()) { %>
|
||||
<span class="tags-title">No tag found - Total <%= site.tags.length %> tags.</span>
|
||||
<ul class="tags-all clearFix">
|
||||
<% for(let key in site.tags.data) { %>
|
||||
<li><a href="<%- url_for("/tags/") %><%= site.tags.data[key].name %>/"><%= site.tags.data[key].name %></a></li>
|
||||
<% } %>
|
||||
</ul>
|
||||
<% } else { %>
|
||||
<% let tagNum = 0;site.tags.each(function (tag) {
|
||||
if (tag.name == page.tag.trim()) tagNum = tag.length;
|
||||
})%>
|
||||
<span class="tags-title">Searched Tag - <%= page.tag %> - Found <%= tagNum %> Result</span>
|
||||
<ul class="posts-all">
|
||||
<% page.posts.each(function(post){ %>
|
||||
<li><span><%= time(post.date, "YYYY-MM-DD") %></span><a href="<%- url_for("/") %><%= post.path %>"><%= post.title %></a></li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
<% } %>
|
||||
</div>
|
||||
<%- partial("_partial/paginator") %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue