-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Change theme name to Memory. - Migrate less to scss. - Support sidebar. - Support Table of Content.
- Loading branch information
Showing
55 changed files
with
1,795 additions
and
1,565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
.DS_Store | ||
.idea | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# Meta | ||
description: A minimal hexo theme. | ||
keywords: hexo,theme,minimal,otakism | ||
site_desc: your catch phrase | ||
keywords: hexo,theme,otakism,otaku | ||
site_desc: otaku keeps alive | ||
|
||
# Navigation | ||
navigation: | ||
- name: Home | ||
slug: home | ||
url: / | ||
menu: | ||
- name: About | ||
slug: about | ||
url: /about | ||
|
@@ -17,8 +14,8 @@ navigation: | |
|
||
# Search | ||
search: | ||
enable: true | ||
service: google # google/hexo/algolia/azure/baidu | ||
enable: false | ||
service: #google/hexo/algolia/azure | ||
google_api_key: | ||
google_engine_id: | ||
|
@@ -33,36 +30,40 @@ search: | |
|
||
# Miscellaneous | ||
google_analytics: | ||
favicon: /favicon.png | ||
author_url: https://example.com | ||
author_url: https://artifact.me | ||
|
||
# Less | ||
less: | ||
compress: true | ||
# Scss | ||
node_sass: | ||
debug: false | ||
outputStyle: nested | ||
precision: 5 | ||
sourceComments: false | ||
|
||
# use url, not username | ||
social: | ||
- slug: email | ||
url: #mailto:[email protected] | ||
url: | ||
- slug: github | ||
url: #https://github.com/<id> | ||
url: https://github.com/artchen | ||
- slug: twitter | ||
url: #https://twitter.com/<id> | ||
url: | ||
- slug: rss | ||
url: /atom.xml | ||
url: /atom.xml | ||
- slug: google | ||
url: | ||
- slug: facebook | ||
url: #https://www.facebook.com/<id> | ||
url: | ||
- slug: linkedin | ||
url: #https://www.linkedin.com/in/<id> | ||
url: | ||
- slug: sina-weibo | ||
url: #http://weibo.com/<id> | ||
url: | ||
- slug: tumblr | ||
url: #http://<id>.tumblr.com | ||
url: | ||
- slug: dribbble | ||
url: #https://dribbble.com/<id> | ||
url: | ||
- slug: pinterest | ||
url: #https://www.pinterest.com/<id> | ||
url: | ||
- slug: instagram | ||
url: #https://instagram.com/<id> | ||
url: | ||
- slug: behance | ||
url: #https://www.behance.net/<id> | ||
url: |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
<article id="<%= post.layout %>-<%= post.slug %>" | ||
class="post article white-box article-type-<%= post.layout %>" | ||
itemscope itemprop="blogPost"> | ||
<h2 class="title"> | ||
<a href="<%- url_for(post.path) %>"> | ||
<%= post.title %> | ||
</a> | ||
</h2> | ||
<time> | ||
<%= date(post.date, 'MMM D, YYYY') %> | ||
</time> | ||
<section class="content"> | ||
<div class="article-entry" itemprop="articleBody"> | ||
<%- post.content %> | ||
</div> | ||
|
||
<div class="article-tags tags"> | ||
<% if (post.tags && post.tags.length){ %> | ||
<%- list_tags(post.tags, { | ||
show_count: false, | ||
style: 'none', | ||
separator: '' | ||
}) %> | ||
<% } %> | ||
</div> | ||
</section> | ||
class="post article white-box article-type-<%= post.layout %>" | ||
itemscope itemprop="blogPost"> | ||
<h2 class="title"> | ||
<a href="<%- url_for(post.path) %>"> | ||
<%= post.title %> | ||
</a> | ||
</h2> | ||
<time> | ||
<%= date(post.date, 'MMM D, YYYY') %> | ||
</time> | ||
<section class="content"> | ||
<div class="article-entry" itemprop="articleBody"> | ||
<%- post.content %> | ||
</div> | ||
<div class="article-tags tags"> | ||
<% if (post.tags && post.tags.length){ %> | ||
<%- list_tags(post.tags, { | ||
show_count: false, | ||
style: 'none', | ||
separator: '' | ||
}) %> | ||
<% } %> | ||
</div> | ||
</section> | ||
</article> | ||
|
||
<% if (post.comments && config.disqus_shortname){ %> | ||
<section id="comments"> | ||
<div id="disqus_thread"></div> | ||
</section> | ||
<section id="comments"> | ||
<div id="disqus_thread"></div> | ||
</section> | ||
<% } %> | ||
|
||
<% if (post.comments && config.duoshuo_shortname){ %> | ||
<div class="duoshuo" id="comments"> | ||
<div id="comment-box" ></div> | ||
<div class="ds-thread" id="ds-thread" data-thread-key="<%=post.path%>" data-title="<%=post.title%>" data-url="<%=url%>"></div> | ||
</div> | ||
<% } %> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
<footer id="footer" class="clearfix"> | ||
|
||
<% if (theme.search.enable === true) { %> | ||
<div class="search"> | ||
<form name="searchform" id="searchform" class="u-search-form"> | ||
<input type="text" id="searchinput" class="u-search-input" placeholder="Looking for something?" /> | ||
<button type="submit" id="u-search-btn-submit" class="u-search-btn-submit"> | ||
<span class="icon icon-search"></span> | ||
</button> | ||
</form> | ||
</div> | ||
<% } %> | ||
|
||
<div class="social-wrapper"> | ||
<% if (theme.social) { %> | ||
<% theme.social.forEach(function(value) { | ||
if (value.url && value.slug) { %> | ||
<a href="<%= value.url %>" class="social <%= value.slug %>" | ||
target="_blank" rel="external"> | ||
<span class="icon icon-<%= value.slug %>"></span> | ||
</a> | ||
<% } }); %> | ||
<% if (theme.search.enable === true) { %> | ||
<div class="search"> | ||
<form name="searchform" id="searchform" class="u-search-form"> | ||
<input type="text" id="searchinput" class="u-search-input" placeholder="Looking for something?"/> | ||
<button type="submit" id="u-search-btn-submit" class="u-search-btn-submit"> | ||
<span class="icon icon-search"></span> | ||
</button> | ||
</form> | ||
</div> | ||
<% } %> | ||
</div> | ||
|
||
<div>Theme <span class="codename">Typescript</span> designed by <a href="http://rakugaki.me/" target="_blank">Art Chen</a>.</div> | ||
<div>© <a href="/"><%= config.title %></a></div> | ||
|
||
|
||
<div class="social-wrapper"> | ||
<% if (theme.social) { %> | ||
<% theme.social.forEach(function(value) { | ||
if (value.url && value.slug) { %> | ||
<a href="<%= value.url %>" class="social <%= value.slug %>" | ||
target="_blank" rel="external"> | ||
<span class="icon icon-<%= value.slug %>"></span> | ||
</a> | ||
<% } }); %> | ||
<% } %> | ||
</div> | ||
|
||
<div class="theme-by">Theme <span class="codename">Memory</span> designed by <a href="https://artifact.me/" | ||
target="_blank">Art Chen</a>. | ||
</div> | ||
<div>© <a href="<%= url_for('/') %>"><%= config.title %></a></div> | ||
|
||
</footer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<% if (theme.google_analytics){ %> | ||
<!-- Google Analytics --> | ||
<script type="text/javascript"> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '<%= theme.google_analytics %>', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
<!-- End Google Analytics --> | ||
<% } %> | ||
<!-- Google Analytics --> | ||
<script type="text/javascript"> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '<%= theme.google_analytics %>', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
<!-- End Google Analytics --> | ||
<% } %> |
Oops, something went wrong.