Skip to content

Commit

Permalink
Centralizing default headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelkiessling committed Jun 21, 2017
1 parent a182b4f commit 867aee1
Show file tree
Hide file tree
Showing 29 changed files with 75 additions and 59 deletions.
3 changes: 3 additions & 0 deletions _defaultheaders.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<link rel="icon" href="favicon.png" type="image/png" />
2 changes: 1 addition & 1 deletion _googleanalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-2127388-6', 'auto');
ga('send', 'pageview');
Expand Down
3 changes: 2 additions & 1 deletion book.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=/" />

<link rel="canonical" href="https://www.nodebeginner.org/" />
Expand Down
3 changes: 2 additions & 1 deletion buy-bundle-bottom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy-bundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy-bundle/oldindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy-bundle/oldsalespitch.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy-bundle/salespitch.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy-chinese/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="1; url=https://leanpub.com/nodebeginner-chinese" />

<link rel="canonical" href="https://leanpub.com/nodebeginner-chinese" />
Expand Down
3 changes: 2 additions & 1 deletion buy-ibook/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy-kindle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy-kindle/reviews.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/b/node-beginner-and-craftsman-bundle" />

<link rel="canonical" href="https://leanpub.com/b/node-beginner-and-craftsman-bundle" />
Expand Down
3 changes: 2 additions & 1 deletion buy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="1; url=https://leanpub.com/nodebeginner" />

<link rel="canonical" href="https://leanpub.com/nodebeginner" />
Expand Down
3 changes: 2 additions & 1 deletion hipsters.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=/" />

<link rel="canonical" href="https://www.nodebeginner.org/" />
Expand Down
3 changes: 2 additions & 1 deletion home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=/" />

<link rel="canonical" href="https://www.nodebeginner.org/" />
Expand Down
3 changes: 2 additions & 1 deletion hyperdev.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=/" />

<link rel="canonical" href="https://www.nodebeginner.org/" />
Expand Down
2 changes: 2 additions & 0 deletions imprint.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<html>
<head>
<?php require_once('_defaultheaders.php'); ?>

<title>Imprint / Impressum / Datenschutz / Haftung</title>

<meta name="robots" content="noindex">
Expand Down
3 changes: 2 additions & 1 deletion index-br.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es-BR" xml:lang="es-BR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=https://leanpub.com/iniciante-node" />

<link rel="canonical" href="https://leanpub.com/iniciante-node" />
Expand Down
2 changes: 1 addition & 1 deletion index-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<title>The Node Beginner Book » A comprehensive Node.js tutorial</title>
<meta name="description" content="A comprehensive Node.js tutorial for beginners: Learn how to build a full blown web application with server-side JavaScript" />
Expand Down
6 changes: 3 additions & 3 deletions index-es.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<link href="prettify/prettify.css" type="text/css" rel="stylesheet" />

<title>El Libro para Principiantes en Node.js» Un tutorial completo de node.js</title>
<meta name="description" content="Un tutorial completo de Node.js para principiantes: Aprende como construir una aplicación web completa con Javascript del lado del servidor" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="https://www.nodebeginner.org/index-es.html" />

Expand Down Expand Up @@ -136,7 +136,7 @@

<div id="book">
<h1>El Libro para Principiantes en Node.js</h1>
<div id="author">Un tutorial de Node.js por: <a href="http://twitter.com/manuelkiessling">Manuel Kiessling</a> &amp; <a href="http://twitter.com/hermanjunge">Herman A. Junge</a></div>
<div id="author">Un tutorial de Node.js por: <a href="https://twitter.com/manuelkiessling">Manuel Kiessling</a> &amp; <a href="http://twitter.com/hermanjunge">Herman A. Junge</a></div>

<h2>Sobre el Tutorial</h2>
<p>
Expand Down
5 changes: 2 additions & 3 deletions index-jp.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<title>Nodeビギナーズブック » Node.jsチュートリアル » Node.js 教程</title>
<meta name="description" content="本書は、Node.jsでのアプリケーション開発を始めようとする皆さんに、”高度な”JavaScriptについて知るべきあらゆることを解説します。よくある”Hello World”チュートリアルの、はるか上をいくものです。" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="https://www.nodebeginner.org/index-jp.html" />

Expand Down Expand Up @@ -146,7 +145,7 @@
<h1>Nodeビギナーズブック</h1>

<div id="author">
A Node.js tutorial by <a href="http://twitter.com/manuelkiessling">Manuel Kiessling</a>
A Node.js tutorial by <a href="https://twitter.com/manuelkiessling">Manuel Kiessling</a>
<br>
Translated by <a href="http://il-all.blogspot.com/">Yuki Kawashima</a>
</div>
Expand Down
5 changes: 2 additions & 3 deletions index-kr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<title>The Node Beginner Book (Korean version) » A comprehensive Node.js tutorial</title>
<meta name="description" content="A comprehensive Node.js tutorial for beginners (Korean version): Learn how to build a full blown web application with server-side JavaScript" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="https://www.nodebeginner.org/index-kr.html" />

Expand Down Expand Up @@ -136,7 +135,7 @@
<div id="book">
<h1>The Node Beginner Book</h1>

<div id="author">A Node.js tutorial by <a href="http://twitter.com/manuelkiessling">Manuel Kiessling</a><br/>
<div id="author">A Node.js tutorial by <a href="https://twitter.com/manuelkiessling">Manuel Kiessling</a><br/>
translated into korean by <a href="http://facebook.com/stoneshim">심형석</a>, <a href="http://blog.doortts.com/">채수원</a></div>

<a name="about"></a>
Expand Down
3 changes: 2 additions & 1 deletion index-ru.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<meta http-equiv="Refresh" content="2; url=http://www.nodebeginner.ru/" />

<link rel="canonical" href="http://www.nodebeginner.ru/" />
Expand Down
7 changes: 3 additions & 4 deletions index-vi.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="vi" xml:lang="vi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<title>Node.js cho người mới bắt đầu » Tài liệu hướng dẫn toàn diện về Node.js</title>
<meta name="description" content="Một tài liệu hướng dẫn toàn diện cho người mới bắt đầu: Học cách xây dựng ứng dụng web sử dụng 'server-side' Javascript" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="default.css" />

<link rel="canonical" href="https://www.nodebeginner.org/index-vi.html" />
Expand Down Expand Up @@ -123,8 +122,8 @@
<div>
<h1>Node.js cho người mới bắt đầu</h1>

<div id="author">Tài liệu hướng dẫn về Node.js bởi <a href="http://twitter.com/manuelkiessling">Manuel Kiessling</a></br>
Dịch bởi <a href="http://twitter.com/tuanva">Tuan Vu</a>
<div id="author">Tài liệu hướng dẫn về Node.js bởi <a href="https://twitter.com/manuelkiessling">Manuel Kiessling</a></br>
Dịch bởi <a href="https://twitter.com/tuanva">Tuan Vu</a>
</div>

<a name="about"></a>
Expand Down
11 changes: 5 additions & 6 deletions index-zh-cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-Hant" xml:lang="zh-Hant">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<title>Node入门 » 一本全面的Node.js教程</title>
<meta name="description" content="一本适合Node.js初学者的全面教程:教你如何使用服务端JavaScript来构建一个完整的web应用" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="https://www.nodebeginner.org/index-zh-cn.html" />

Expand Down Expand Up @@ -127,10 +126,10 @@
<div id="book">
<h1>Node入门</h1>

<div id="author">作者: <a href="http://twitter.com/manuelkiessling">Manuel Kiessling</a><br />
翻译: <a href="http://weibo.com/goddyzhao">goddyzhao</a> &
<a href="http://www.otakustay.com">GrayZhang</a> &
<a href="http://weibo.com/cmonday">MondayChen</a></div>
<div id="author">作者: <a href="https://twitter.com/manuelkiessling">Manuel Kiessling</a><br />
翻译: <a href="https://weibo.com/goddyzhao">goddyzhao</a> &
<a href="https://www.otakustay.com">GrayZhang</a> &
<a href="https://weibo.com/cmonday">MondayChen</a></div>

<a name="about"></a>

Expand Down
13 changes: 6 additions & 7 deletions index-zh-tw.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-Hans" xml:lang="zh-Hans">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php require_once('_defaultheaders.php'); ?>

<title>Node入門 » 一本全面的Node.js教學課程</title>
<meta name="description" content="一本適合Node.js初學者的全面教學課程:教你如何使用伺服器端JavaScript來建構一個完整的web應用" />

<link rel="icon" href="favicon.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="olddefault.css" />
<link rel="canonical" href="https://www.nodebeginner.org/index-zh-tw.html" />

Expand Down Expand Up @@ -127,11 +126,11 @@
<div id="book">
<h1>Node入門</h1>

<div id="author">作者: <a href="http://twitter.com/manuelkiessling">Manuel Kiessling</a><br />
翻譯: <a href="http://weibo.com/goddyzhao">goddyzhao</a> &
<a href="http://www.otakustay.com">GrayZhang</a> &
<a href="http://weibo.com/cmonday">MondayChen</a> &
<a href="http://blog.miniasp.com/">Will 保哥</a>
<div id="author">作者: <a href="https://twitter.com/manuelkiessling">Manuel Kiessling</a><br />
翻譯: <a href="https://weibo.com/goddyzhao">goddyzhao</a> &
<a href="https://www.otakustay.com">GrayZhang</a> &
<a href="https://weibo.com/cmonday">MondayChen</a> &
<a href="https://blog.miniasp.com/">Will 保哥</a>
</div>

<a name="about"></a>
Expand Down
Loading

0 comments on commit 867aee1

Please sign in to comment.