aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-11-05 20:39:13 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-11-05 20:39:13 +0300
commit68073adacff5fec44d7e541a3a6f926f7b305843 (patch)
treed42304b004461e04e58ba7d41139f290a5aac78a /_includes/common
parentadd serve.sh (same as serve.bat) (diff)
downloadegor-tensin.github.io-68073adacff5fec44d7e541a3a6f926f7b305843.tar.gz
egor-tensin.github.io-68073adacff5fec44d7e541a3a6f926f7b305843.zip
_includes/ -> _includes/common/
Diffstat (limited to '_includes/common')
-rw-r--r--_includes/common/bootstrap_css.html5
-rw-r--r--_includes/common/bootstrap_js.html5
-rw-r--r--_includes/common/footer.html25
-rw-r--r--_includes/common/header.html20
-rw-r--r--_includes/common/ie_compat.html11
-rw-r--r--_includes/common/jquery.html5
6 files changed, 71 insertions, 0 deletions
diff --git a/_includes/common/bootstrap_css.html b/_includes/common/bootstrap_css.html
new file mode 100644
index 0000000..f47b856
--- /dev/null
+++ b/_includes/common/bootstrap_css.html
@@ -0,0 +1,5 @@
+{% if site.minified_externals %}
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/css/bootstrap.min.css">
+{% else %}
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/css/bootstrap.css">
+{% endif %}
diff --git a/_includes/common/bootstrap_js.html b/_includes/common/bootstrap_js.html
new file mode 100644
index 0000000..e724257
--- /dev/null
+++ b/_includes/common/bootstrap_js.html
@@ -0,0 +1,5 @@
+{% if site.minified_externals %}
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.min.js"></script>
+{% else %}
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.js"></script>
+{% endif %}
diff --git a/_includes/common/footer.html b/_includes/common/footer.html
new file mode 100644
index 0000000..282c768
--- /dev/null
+++ b/_includes/common/footer.html
@@ -0,0 +1,25 @@
+ </div>
+ </div>
+ <div class="footer-wrapper-collapse">
+ <footer class="navbar-default">
+ <div class="container">
+ <div style="display: table; width: 100%;">
+ <div style="display: table-row;">
+ <div style="display: table-cell;">
+ <div class="text-center text-muted"><small>This project is licensed under the terms of the MIT License. See <a href="{{ site.github.repository_url }}/blob/master/README.md#license">License</a> for details.</small></div>
+ </div>
+ </div>
+ <div style="display: table-row;">
+ <div style="display: table-cell;">
+ <div class="text-center text-muted"><small>This page was last updated on: {{ site.time | date_to_long_string }}.</small></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </footer>
+ </div>
+ </div>
+ {% include common/jquery.html %}
+ {% include common/bootstrap_js.html %}
+ </body>
+</html>
diff --git a/_includes/common/header.html b/_includes/common/header.html
new file mode 100644
index 0000000..697d8f9
--- /dev/null
+++ b/_includes/common/header.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <title>{{ page.title }} - {{ site.personal_info.name }}</title>
+
+ {% include common/bootstrap_css.html %}
+
+ <link rel="stylesheet" href="/css/common/footer.css">
+ <link rel="stylesheet" href="/css/common/misc.css">
+
+ {% include common/ie_compat.html %}
+ </head>
+ <body>
+ <div class="top-level-footer-wrapper">
+ <div class="footer-wrapper-expand">
+ <div class="container">
diff --git a/_includes/common/ie_compat.html b/_includes/common/ie_compat.html
new file mode 100644
index 0000000..3cef67d
--- /dev/null
+++ b/_includes/common/ie_compat.html
@@ -0,0 +1,11 @@
+{% if site.minified_externals %}
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/html5shiv/{{ site.html5shiv_version }}/html5shiv.min.js"></script>
+ <script src="https://oss.maxcdn.com/respond/{{ site.respond_version }}/respond.min.js"></script>
+ <![endif]-->
+{% else %}
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/html5shiv/{{ site.html5shiv_version }}/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/respond/{{ site.respond_version }}/respond.js"></script>
+ <![endif]-->
+{% endif %}
diff --git a/_includes/common/jquery.html b/_includes/common/jquery.html
new file mode 100644
index 0000000..aa6d2fd
--- /dev/null
+++ b/_includes/common/jquery.html
@@ -0,0 +1,5 @@
+{% if site.minified_externals %}
+ <script src="https://code.jquery.com/jquery-{{ site.jquery_version }}.min.js"></script>
+{% else %}
+ <script src="https://code.jquery.com/jquery-{{ site.jquery_version }}.js"></script>
+{% endif %}