diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/extra.js | 13 | ||||
-rw-r--r-- | public/views/head.ejs | 3 | ||||
-rw-r--r-- | public/views/html.hbs | 1 |
3 files changed, 0 insertions, 17 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 48e474a7..953770be 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -81,29 +81,17 @@ function slugifyWithUTF8(text) { //parse meta function parseMeta(md, edit, view, toc, tocAffix) { - var robots = null; var lang = null; var dir = null; var breaks = true; var spellcheck = false; if (md && md.meta) { var meta = md.meta; - robots = meta.robots; lang = meta.lang; dir = meta.dir; breaks = meta.breaks; spellcheck = meta.spellcheck; } - //robots meta - var robotsMeta = $('meta[name=robots]'); - if (robots) { - if (robotsMeta.length > 0) - robotsMeta.attr('content', robots); - else - $('head').prepend('<meta name="robots" content="' + robots + '">') - } - else - robotsMeta.remove(); //text language if (lang) { view.attr('lang', lang); @@ -504,7 +492,6 @@ function exportToHTML(view) { html: src[0].outerHTML, toc: toc.html(), 'toc-affix': tocAffix.html(), - robots: (md && md.meta && md.meta.robots) ? '<meta name="robots" content="' + md.meta.robots + '">' : null, lang: (md && md.meta && md.meta.lang) ? 'lang="' + md.meta.lang + '"' : null, dir: (md && md.meta && md.meta.dir) ? 'dir="' + md.meta.dir + '"' : null }; diff --git a/public/views/head.ejs b/public/views/head.ejs index 3dcf4866..70f6455d 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -4,9 +4,6 @@ <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="mobile-web-app-capable" content="yes"> -<% if(typeof robots !== 'undefined' && robots) { %> -<meta name="robots" content="<%- robots %>"> -<% } %> <title><%- title %></title> <link rel="icon" type="image/png" href="<%- url %>/favicon.png"> <link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png"> diff --git a/public/views/html.hbs b/public/views/html.hbs index 33fbd536..f6e57497 100644 --- a/public/views/html.hbs +++ b/public/views/html.hbs @@ -9,7 +9,6 @@ <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="mobile-web-app-capable" content="yes"> - {{{robots}}} <title> {{title}} </title> |