Skip to content

Commit

Permalink
fix(aplayer): fix https:// aplayer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Jun 19, 2017
1 parent 4f9763f commit defc1a4
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _data/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uiux:
android_chrome_color: "#eeeeee" # the color of the Chrome address bar
nprogress_color: "#29d" # the color of the top loading progress bar
nprogress_buffer: 200 # the top loading progress bar buffers
meng: true # meng
meng: false # meng

background:
purecolor: "#eeeeee" # the background color
Expand Down
47 changes: 47 additions & 0 deletions _includes/content/page_content_no_toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<style>

.k-post-media {
display:block
cursor: pointer;
max-height: 245px;
min-height: 245px;
background-position: 50% 50%;
background-size: cover;
background-color: white;
}
.k-post-media .mdui-card-primary-title a {
text-decoration: none;
}
</style>
<div id="postpage" class="mdui-container k-container">
<div class="k-posts-list"></div>
<div class="mdui-row">
<div class="mdui-col-sm-12 k-page-col">
<div class="mdui-card">
<div class="mdui-card-media k-post-media" style="background-image: url({{page.img}});">
<div class="mdui-card-media-covered mdui-card-media-covered-gradient">
<div class="mdui-card-primary">
<div class="mdui-card-primary-title"><a class="mdui-text-color-white-text">{{page.title}}</a></div>
</div>
</div>
</div>
<div class="mdui-card-header">
<div class="mdui-card-menu">
{% include content/component/qrcode.html %}
{% include content/component/sns_share.html %}
</div>
<img class="mdui-card-header-avatar" src="{{site.data.site.img.avatar}}" />
<div class="mdui-card-header-title">{{site.author}}</div>
<div class="mdui-card-header-subtitle">{{ page.date | date: "%b %-d, %Y" }}</div>
</div>
<div class="mdui-card-content mdui-typo">
{{ content }}
</div>
{% include comment/disqus.html %}
</div>
</div>
</div>
<br>
<script>
</script>
</div>
2 changes: 1 addition & 1 deletion _includes/meng/aplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="k-music-btn">></div>
</div>

<script src="http://cdn.bootcss.com/aplayer/1.6.0/APlayer.min.js"></script>
<script src="https://cdn.bootcss.com/aplayer/1.6.0/APlayer.min.js"></script>
<script>
var ap = new APlayer({
element: document.getElementById('player1'),
Expand Down
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
layout: default
---

{{ content }}
{% include content/page_content_no_toc.html %}
2 changes: 1 addition & 1 deletion jekyll-theme-mdui.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "jekyll-theme-mdui"
spec.version = "0.4.9"
spec.version = "0.4.9.1"
spec.authors = ["KeJun"]
spec.email = ["[email protected]"]

Expand Down
3 changes: 3 additions & 0 deletions pages/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: page
---

0 comments on commit defc1a4

Please sign in to comment.