jekyll-theme-mdui 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/_includes/head.html +1 -1
- data/_includes/header.html +2 -2
- data/_includes/script.html +3 -2
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +2 -2
- data/_layouts/post.html +1 -1
- data/assets/css/main.css +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2b24a63f42949e336458237f8c3214570ed90ee
|
4
|
+
data.tar.gz: 5f414a24f8d498536f0fc1616933951803fc77ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac6f45897e5abf8cb04f1362ff83178e3387eff89058a8eb1327fbdabf3bd00e595f3ce8dbfdef0538679685ed7781e14f8e4cc5287ce66bab364f007fbf582
|
7
|
+
data.tar.gz: fa38d734e5a863d3f0f18f8f83ff891c33ebbaa39d8dc1f75eb3a424eb61761a62b062102494dd9319cbe83b008b60864248078f1c97ca9795840baf601ee04c
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ A Jekyll theme based on mdui
|
|
8
8
|
[![Jekyll](https://img.shields.io/badge/Jekyll-3.4+-green.svg?style=flat-square)](https://jekyllrb.com/)
|
9
9
|
[![Gem](https://img.shields.io/gem/dt/jekyll-theme-mdui.svg?style=flat-square)](https://rubygems.org/gems/jekyll-theme-mdui/)
|
10
10
|
|
11
|
-
[![Code Climate](https://img.shields.io/codeclimate/github/
|
11
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/KeJunMao/jekyll-theme-mdui.svg?style=flat-square)](https://codeclimate.com/github/KeJunMao/jekyll-theme-mdui/)
|
12
12
|
[![Build Status](https://img.shields.io/travis/KeJunMao/jekyll-theme-mdui.svg?style=flat-square)](https://travis-ci.org/KeJunMao/jekyll-theme-mdui)
|
13
13
|
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)
|
14
14
|
|
data/_includes/head.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
{% if page.layout =="post" %}
|
7
7
|
<meta name="keywords" content="{% for pagetag in page.tags %}{{pagetag}} {% endfor %}">
|
8
8
|
{% endif %}
|
9
|
-
<link href="
|
9
|
+
<link href="{{ site.icon }}" rel="shortcut icon">
|
10
10
|
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
11
11
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
12
12
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
data/_includes/header.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
<div class="mdui-toolbar-spacer"></div>
|
6
6
|
<div class="mdui-hidden-xs-down">
|
7
7
|
{% for menu in site.data.menus %}
|
8
|
-
<a href="{{menu.url}}" class="mdui-btn {% if menu.url
|
8
|
+
<a href="{{menu.url | prepend: site.baseurl }}" class="mdui-btn {% if menu.url == page.url %}mdui-list-item-active{% endif %}">{{menu.name}}</a>
|
9
9
|
{% endfor %}
|
10
10
|
</div>
|
11
11
|
</div>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<div class="mdui-drawer mdui-drawer-close" id="k-menu">
|
14
14
|
<ul class="mdui-list">
|
15
15
|
{% for menu in site.data.menus %}
|
16
|
-
<a href="{{menu.url}}" class="mdui-list-item mdui-ripple {% if menu.url == page.url %}mdui-list-item-active{% endif %}">
|
16
|
+
<a href="{{menu.url | prepend: site.baseurl }}" class="mdui-list-item mdui-ripple {% if menu.url == page.url %}mdui-list-item-active{% endif %}">
|
17
17
|
<i class="mdui-list-item-icon mdui-icon material-icons">{{menu.icon}}</i>
|
18
18
|
<div class="mdui-list-item-content">{{menu.name}}</div>
|
19
19
|
</a>
|
data/_includes/script.html
CHANGED
@@ -165,7 +165,7 @@ $(function(){
|
|
165
165
|
{% if page.layout =='search' %}
|
166
166
|
var names = new Array();
|
167
167
|
var urls = new Array();
|
168
|
-
$.getJSON("/search.json").done(function(data){
|
168
|
+
$.getJSON("{{ "/search.json" | relative_url }}").done(function(data){
|
169
169
|
for (var index in data){
|
170
170
|
var item = data[index];
|
171
171
|
names[index] = item.title;
|
@@ -205,7 +205,7 @@ $(function(){
|
|
205
205
|
if(tagid!=null){
|
206
206
|
$.ajax({
|
207
207
|
type: "GET",
|
208
|
-
url:"/tags.json",
|
208
|
+
url:"{{ "/tags.json" | relative_url }}",
|
209
209
|
dataType:"json",
|
210
210
|
success: function(data){
|
211
211
|
var content = "<ul class='mdui-list'>";
|
@@ -235,6 +235,7 @@ $(function(){
|
|
235
235
|
<script src="{{ "/assets/js/pushpin.js" | prepend: site.baseurl }}"></script>
|
236
236
|
<script>
|
237
237
|
$(function(){
|
238
|
+
$('.mdui-card-content').find('a').attr('target','_blank');
|
238
239
|
$("div.k-page-col").css('margin',0);
|
239
240
|
hljs.initHighlightingOnLoad();
|
240
241
|
$('#toc').toc({
|
data/_layouts/default.html
CHANGED
@@ -4,7 +4,7 @@ layout: compress
|
|
4
4
|
<!DOCTYPE html>
|
5
5
|
<html lang="{{site.lang}}">
|
6
6
|
{% include head.html %}
|
7
|
-
<body class="mdui-appbar-with-toolbar mdui-theme-primary-white mdui-theme-accent-blue">
|
7
|
+
<body class="mdui-appbar-with-toolbar mdui-theme-primary-white mdui-theme-accent-blue" style="opacity: 0;">
|
8
8
|
{% include header.html %}
|
9
9
|
{% include main.html %}
|
10
10
|
{% include footer.html %}
|
data/_layouts/home.html
CHANGED
@@ -8,12 +8,12 @@ layout: default
|
|
8
8
|
<div class="mdui-card-media k-post-media" style="background-image: url({{post.img}});">
|
9
9
|
<div class="mdui-card-media-covered mdui-card-media-covered-gradient">
|
10
10
|
<div class="mdui-card-primary">
|
11
|
-
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text" href="{{post.url}}">{{post.title}}</a></div>
|
11
|
+
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text" href="{{post.url| prepend: site.baseurl}}">{{post.title}}</a></div>
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
</div>
|
15
15
|
<div class="mdui-card-content mdui-text-color-black-secondary">
|
16
|
-
{{ post.excerpt | strip_html}} <a class="mdui-typo" href="{{post.url}}">阅读更多</a>
|
16
|
+
{{ post.excerpt | strip_html}} <a class="mdui-typo" href="{{post.url | prepend: site.baseurl}}">阅读更多</a>
|
17
17
|
</div>
|
18
18
|
<div class="mdui-divider"></div>
|
19
19
|
<div class="mdui-card-header">
|
data/_layouts/post.html
CHANGED
@@ -9,7 +9,7 @@ layout: default
|
|
9
9
|
<div class="mdui-card-media k-post-media" style="background-image: url({{page.img}});">
|
10
10
|
<div class="mdui-card-media-covered mdui-card-media-covered-gradient">
|
11
11
|
<div class="mdui-card-primary">
|
12
|
-
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text"
|
12
|
+
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text">{{page.title}}</a></div>
|
13
13
|
</div>
|
14
14
|
</div>
|
15
15
|
</div>
|
data/assets/css/main.css
CHANGED