Added editor config
Changed formatting Added ability to use gravatar or a site specific imagepull/31/head
parent
e5deb0624c
commit
930ba09997
|
@ -0,0 +1,19 @@
|
||||||
|
# EditorConfig is awesome: http://EditorConfig.org
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# Matches multiple files with brace expansion notation
|
||||||
|
# Set default charset
|
||||||
|
[*.{js,py}]
|
||||||
|
charset = utf-8
|
||||||
|
|
||||||
|
# 4 space indentation
|
||||||
|
[{*.json,*.yml,*.styl,*.ejs}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
|
@ -1 +1,3 @@
|
||||||
_config.yml
|
_config.yml
|
||||||
|
*.iml
|
||||||
|
.idea
|
||||||
|
|
|
@ -1,37 +1,34 @@
|
||||||
<header id="header">
|
<header id="header">
|
||||||
<div id="header-main" class="header-inner">
|
<div id="header-main" class="header-inner">
|
||||||
<div class="outer">
|
<div class="outer">
|
||||||
<a href="<%- url_for() %>" id="logo"><!--<i class="logo"></i>--><span
|
<a href="<%- url_for() %>" id="logo"><!--<i class="logo"></i>--><span class="site-title"><%= config.title %></span></a>
|
||||||
class="site-title"><%= config.title %></span></a>
|
<nav id="main-nav">
|
||||||
|
<% for (var i in theme.menu){ %>
|
||||||
<nav id="main-nav">
|
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
||||||
<% for (var i in theme.menu){ %>
|
<% } %>
|
||||||
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
</nav>
|
||||||
<% } %>
|
<% if(theme.profile) { %>
|
||||||
</nav>
|
<nav id="sub-nav">
|
||||||
<% if(theme.profile) { %>
|
<div class="profile" id="profile-nav">
|
||||||
<nav id="sub-nav">
|
<a id="profile-anchor" href="javascript:;"><img class="avatar" src="<%= ( theme.gravatar ? gravatar(theme.email) : url_for(config.avatar)) %>"><i class="fa fa-caret-down"></i></a>
|
||||||
<div class="profile" id="profile-nav">
|
</div>
|
||||||
<a id="profile-anchor" href="javascript:;"><img class="avatar" src="<%- gravatar(theme.email) %>"><i
|
</nav>
|
||||||
class="fa fa-caret-down"></i></a>
|
<% } %>
|
||||||
</div>
|
<div id="search-form-wrap">
|
||||||
</nav>
|
<%- search_form({button: ' '}) %>
|
||||||
<% } %>
|
</div>
|
||||||
<div id="search-form-wrap">
|
|
||||||
<%- search_form({button: ' '}) %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="main-nav-mobile" class="header-sub header-inner">
|
|
||||||
<table class="menu outer">
|
|
||||||
<tr>
|
|
||||||
<% for (var i in theme.menu){ %>
|
|
||||||
<td><a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a></td>
|
|
||||||
<% } %>
|
|
||||||
<td>
|
|
||||||
<%- search_form() %>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="main-nav-mobile" class="header-sub header-inner">
|
||||||
|
<table class="menu outer">
|
||||||
|
<tr>
|
||||||
|
<% for (var i in theme.menu){ %>
|
||||||
|
<td><a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a></td>
|
||||||
|
<% } %>
|
||||||
|
<td>
|
||||||
|
<%- search_form() %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
|
@ -1,42 +1,38 @@
|
||||||
<aside id="profile">
|
<aside id="profile">
|
||||||
<div class="inner profile-inner">
|
<div class="inner profile-inner">
|
||||||
<div class="base-info profile-block">
|
<div class="base-info profile-block">
|
||||||
<img id="avatar" src="<%- gravatar(theme.email) %>">
|
<img id="avatar" src="<%= ( theme.gravatar ? gravatar(theme.email) : url_for(config.avatar)) %>">
|
||||||
|
<h2 id="name"><%= config.author %></h2>
|
||||||
<h2 id="name"><%= config.author %></h2>
|
<h3 id="title"><%= config.author_title %></h3>
|
||||||
|
<span id="location"><i class="fa fa-map-marker"></i><%= config.location %></span>
|
||||||
<h3 id="title"><%= config.author_title %></h3>
|
<a id="follow" href="<%= config.follow %>"><%= __('profile.follow') %></a>
|
||||||
<span id="location"><i class="fa fa-map-marker"></i><%= config.location %></span>
|
|
||||||
<a id="follow" href="<%= config.follow %>"><%= __('profile.follow') %></a>
|
|
||||||
</div>
|
|
||||||
<div class="article-info profile-block">
|
|
||||||
<div class="article-info-block">
|
|
||||||
<%= site.posts.length %>
|
|
||||||
<span><%= (site.posts.length > 1 ? __('profile.posts') : __('profile.post')) %></span>
|
|
||||||
</div>
|
|
||||||
<div class="article-info-block">
|
|
||||||
<%= site.tags.length %>
|
|
||||||
<span><%= (site.tags.length > 1 ? __('profile.tags') : __('profile.tag')) %></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% if(theme.contacts) { %>
|
|
||||||
<div class="contact-info profile-block">
|
|
||||||
<table class="contact-list">
|
|
||||||
<tr>
|
|
||||||
<% for(var i in theme.contacts) { %>
|
|
||||||
<td><a href="<%- url_for(theme.contacts[i]) %>" target="_blank" title="<%= i %>"><i
|
|
||||||
class="fa fa-<%= i %>"></i></a></td>
|
|
||||||
<% } %>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<% } %>
|
|
||||||
<div class="article-info profile-block bio">
|
|
||||||
<h2>About</h2>
|
|
||||||
|
|
||||||
<p>I'm a software developer who likes to tweak/break gadgets and complain about everything under the
|
|
||||||
sun. When I'm not doing that, I'm usually playing games, watching films or watching sports.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="article-info profile-block">
|
||||||
|
<div class="article-info-block">
|
||||||
|
<%= site.posts.length %>
|
||||||
|
<span><%= (site.posts.length > 1 ? __('profile.posts') : __('profile.post')) %></span>
|
||||||
|
</div>
|
||||||
|
<div class="article-info-block">
|
||||||
|
<%= site.tags.length %>
|
||||||
|
<span><%= (site.tags.length > 1 ? __('profile.tags') : __('profile.tag')) %></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% if(theme.contacts) { %>
|
||||||
|
<div class="contact-info profile-block">
|
||||||
|
<table class="contact-list">
|
||||||
|
<tr>
|
||||||
|
<% for(var i in theme.contacts) { %>
|
||||||
|
<td><a href="<%- url_for(theme.contacts[i]) %>" target="_blank" title="<%= i %>"><i class="fa fa-<%= i %>"></i></a></td>
|
||||||
|
<% } %>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
<% if(theme.about) { %>
|
||||||
|
<div class="article-info profile-block bio">
|
||||||
|
<h2>About</h2>
|
||||||
|
<p><%- theme.about %></p>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
|
</div>
|
||||||
</aside>
|
</aside>
|
Loading…
Reference in New Issue