Permalink
Browse files

refactor: Update Reminder for IE6/7/8

  • Loading branch information...
MOxFIVE committed May 23, 2016
1 parent 31675d5 commit 7814a79f11b824182a49762bd48c2481c0b0ac92
Showing with 16 additions and 27 deletions.
  1. +8 −0 _config.yml
  2. +1 −0 layout/_partial/head.ejs
  3. +6 −12 layout/_partial/ie-updater.ejs
  4. +0 −1 layout/layout.ejs
  5. +1 −14 source/css/_partial/main.styl
View
@@ -182,6 +182,14 @@ open_in_new: false
# Customize feed link 自定义订阅地址
rss: /atom.xml
# Update Reminder for IE6/7/8
# 针对 IE6/7/8 的升级浏览器提示
ie_updater:
on: true
link: //outdatedbrowser.com/
## http://browsehappy.com/
## http://outdatedbrowser.com/
# >>> Vendors | 第三方工具 & 服务 <<<
View
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html <% if (page.lang) { %>lang="<%= page.lang %>"<% } %>>
<head>
<%- partial('ie-updater') %>
<meta charset="utf-8">
<%
var title = page.title;
@@ -1,12 +1,6 @@
<!--[if lt IE 9]>
<style> body { background: orange !important;} div#container { display: none;} </style>
<p id="ie-updater">
<% if (page.lang === "zh-Hans") { %>
珍爱生命,远离 IE!<br>本站不支持 IE6/7/8,请升级浏览器!<br>
<% } else { %>
IE6/7/8 aren't Supported<br>Please UPDATE your Browser!<br>
<% } %>
<a href="//www.bing.com/search?q=Chrome" target="_blank">Chrome</a>, <a href="//www.bing.com/search?q=Firefox" target="_blank">Firefox</a><br>
Hexo Theme <a href="//github.com/MOxFIVE/hexo-theme-yelee" target="_blank">Yelee</a> by MOxFIVE
</p>
<![endif]-->
<% if (theme.ie_updater.on) { %>
<!--[if lt IE 9]>
<style>body {display: none; background: none !important} </style>
<meta http-equiv="Refresh" Content="0; url=<%= theme.ie_updater.link %>" />
<![endif]-->
<% } %>
View
@@ -1,6 +1,5 @@
<%- partial('_partial/head') %>
<body>
<%- partial('_partial/ie-updater') %>
<div id="container">
<div class="left-col">
<%- partial('_partial/left-col', null, {cache: !config.relative_link}) %>
@@ -385,17 +385,4 @@ if hexo-config("progressBar.on") && hexo-config("progressBar.type") == "minimal"
.article-meta time:before
text-rendering auto
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale
#ie-updater
width 100%
height 100%
padding-top 20%
text-align center
color white
font-size 1.5em
font-weight bold
line-height 1.8
a
color white
text-decoration underline
-moz-osx-font-smoothing grayscale

0 comments on commit 7814a79

Please sign in to comment.