Permalink
Browse files

add: Update Reminder for IE6/7/8

Yelee is incompatible with IE6/7/8
  • Loading branch information...
MOxFIVE committed May 15, 2016
1 parent 06a8406 commit 6c91bedd2e6179abfe36bd41a2b3ad70798719bf
Showing with 27 additions and 1 deletion.
  1. +12 −0 layout/_partial/ie-updater.ejs
  2. +1 −0 layout/layout.ejs
  3. +14 −1 source/css/_partial/main.styl
@@ -0,0 +1,12 @@
<!--[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]-->
View
@@ -1,5 +1,6 @@
<%- 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,4 +385,17 @@ 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
-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

1 comment on commit 6c91bed

@MOxFIVE

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE
Owner

MOxFIVE commented on 6c91bed May 15, 2016

snip20160516_1

snip20160516_2

Please sign in to comment.