Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #62 from Halyul/dev
Browse files Browse the repository at this point in the history
release: 1.5.0
  • Loading branch information
Halyul authored Sep 11, 2017
2 parents 0d72db4 + ec62fa8 commit cc172ac
Show file tree
Hide file tree
Showing 14 changed files with 1,126 additions and 125 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Inspired by [hexo-theme-material](https://github.com/viosey/hexo-theme-material)
## General 概括

[![Author](https://img.shields.io/badge/author-Halyul-blue.svg?style=flat-square)](https://halyul.com)
![Version](https://img.shields.io/badge/version-1.4.9-green.svg?style=flat-square)
![Version](https://img.shields.io/badge/version-1.5.0-green.svg?style=flat-square)
[![Hexo](https://img.shields.io/badge/hexo-3.0+-green.svg?style=flat-square)](https://hexo.io)
![Travis CI](https://travis-ci.org/Halyul/hexo-theme-mdui.svg?branch=master)

Expand Down
6 changes: 3 additions & 3 deletions layout/_partials/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ pageTitle += ' - ' + config.title;
%>
<head>
<script>
window.mduiVersion = "1.4.9"
window.mduiVersion = "1.5.0"
window.oldVersion = [
'1.4.7',
'1.4.8',
'1.4.6',
'1.4.9',
'unknownVersion'
]
</script>
<!--
© HEXO MDUI Theme
https://github.com/Halyul/hexo-theme-mdui
Version: 1.4.9 -->
Version: 1.5.0 -->
<meta charset="UTF-8">
<title><%= pageTitle %></title>

Expand Down
2 changes: 1 addition & 1 deletion layout/_partials/import_js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@
}
})()
/*! Copyright 2017 Halyul */
console.info("%cCopyright © 2017 Halyul\n"+'Theme Version: 1.4.9'+'%c\nhttps://github.com/Halyul/hexo-theme-mdui',"font-size: 14px;color: #3F51B5;","color: #448AFF;text-decoration: none");
console.info("%cCopyright © 2017 Halyul\n"+'Theme Version: 1.5.0'+'%c\nhttps://github.com/Halyul/hexo-theme-mdui',"font-size: 14px;color: #3F51B5;","color: #448AFF;text-decoration: none");
</script>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-mdui",
"version": "1.4.9",
"version": "1.5.0",
"description": "An awesome hexo theme with Material Design.",
"scripts": {
"test": "echo \"Error: no test specified\"",
Expand Down
12 changes: 12 additions & 0 deletions scripts/lib/table.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const table = /<table>([\s\S]*?)<\/table>/igm;
const mduiTableStart = '<div class="mdui-table-fluid"><table class="mdui-table mdui-table-hoverable ">'
const mduiTableEnd = '</table></div>'

function tableRenderer(data) {
data.content = data.content.replace(table, (origin, content) => {
return mduiTableStart + content + mduiTableEnd;
})
return data;
}

hexo.extend.filter.register('after_post_render', tableRenderer);
Loading

0 comments on commit cc172ac

Please sign in to comment.