2
Fork 0

Added basic theme

This commit is contained in:
Willem Cazander 2020-01-03 18:07:50 +01:00
parent a085ca6867
commit 8b9afa66ce
42 changed files with 5633 additions and 0 deletions

View 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>

View 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>

View 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>

View 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>

View file

@ -0,0 +1,10 @@
<div class="post-nav">
<% if(page.total > 1) { %>
<div class="page-nav">
<%- paginator({
prev_text: "&laquo;",
next_text: "&raquo;"
}) %>
</div>
<% } %>
</div>

View file

@ -0,0 +1 @@
<div id="particles-js"></div>

View file

@ -0,0 +1 @@
<div class="search"><span class="fa fa-search"></span></div>

View file

@ -0,0 +1 @@
<div class="toolbar"><span class="fa fa-th"></span></div>

View 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&nbsp;-&nbsp;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>

View 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&nbsp;@&nbsp;<%- date(post.date, "YYYY-MM-DD HH:mm:ss") %>&nbsp;<%- config.author %></span>
</div>
</article>
<% }) %>
<%- partial("_partial/paginator") %>
</div>
</div>

View 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>

View 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>

View 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&nbsp;-&nbsp;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&nbsp;-&nbsp;<%= page.tag %>&nbsp;-&nbsp;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>