aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/footer.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 16:52:53 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 16:56:55 +0300
commitc8bbc25228a7d199ca6868db7375f1661c3ef6e4 (patch)
treeb6b3c84795e441c05cc2d2a7fbbbfc34a492b377 /_includes/common/footer.html
parentindex.html: reuse page.title (diff)
downloadjekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.tar.gz
jekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.zip
_includes: move everything to jekyll-theme/
Diffstat (limited to '_includes/common/footer.html')
-rw-r--r--_includes/common/footer.html72
1 files changed, 0 insertions, 72 deletions
diff --git a/_includes/common/footer.html b/_includes/common/footer.html
deleted file mode 100644
index 9331784..0000000
--- a/_includes/common/footer.html
+++ /dev/null
@@ -1,72 +0,0 @@
- </div>
- <footer class="navbar-default">
- <div class="container">
- <div class="row">
- <div class="col-xs-12 text-center">
-
-{% if site.settings.project.license_file %}
- {% capture license_file %}{{ '/' | relative_url }}{{ site.settings.project.license_file }}{% endcapture %}
-{% else %}
- {% for file in site.static_files %}
- {% assign path = file.path | downcase %}
- {% if path == 'license' or path == 'license.txt' %}
- {% assign license_file = file.path | relative_url %}
- {% endif %}
- {% endfor %}
-{% endif %}
-{% if site.settings.project.license %}
- {% assign license = site.settings.project.license %}
- {% unless license_file %}
- {% capture license_file %}https://spdx.org/licenses/{{ license }}.html{% endcapture %}
- {% capture license %}{{ license }} License{% endcapture %}
- {% endunless %}
-{% elsif site.github.license %}
- {% assign license = site.github.license.name %}
- {% unless license_file %}
- {% capture license_file %}https://spdx.org/licenses/{{ site.github.license.spdx_id }}.html{% endcapture %}
- {% endunless %}
-{% endif %}
-{% if license %}
- {% capture license_text %}License: <a href="{{ license_file }}">{{ license }}</a>{% endcapture %}
-{% elsif license_file %}
- {% capture license_text %}License: <a href="{{ license_file }}">click here</a>{% endcapture %}
-{% endif %}
-
-{% capture sep %}<span style="padding: 0 1em;">|</span>{% endcapture %}
-{% capture timestamp_text %}Last update: {{ site.time | date: '%-d %B %Y' }}{% endcapture %}
-<div class="small text-muted">
- {% if license_text %}{{ license_text }}{{ sep }}{% endif %}{{ timestamp_text }}
-</div>
-
- </div>
- </div>
- </div>
- </footer>
- </div>
- <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
- <script src="{{ '/assets/bootstrap/js/bootstrap.min.js' | relative_url }}"></script>
-
- {% assign scripts = '' | split: '' %}
- {% if site.settings.scripts %}
- {% assign scripts = scripts | concat: site.settings.scripts %}
- {% endif %}
- {% if page.scripts %}
- {% assign scripts = scripts | concat: page.scripts %}
- {% endif %}
-
- {% for script in scripts %}
- {% assign abs_check = script.src | downcase | split: '//' %}
- {% if abs_check[0] == 'http:' or abs_check[0] == 'https:' or abs_check[0] == '' %}
- {% assign url = script.src %}
- {% else %}
- {% assign abs_check = script.src | slice: 0 %}
- {% if abs_check == '/' %}
- {% assign url = script.src %}
- {% else %}
- {% assign url = script.src | relative_url %}
- {% endif %}
- {% endif %}
- <script src="{{ url }}"{% for attr in script %}{% if attr[0] == 'src' %}{% continue %}{% endif %} {{ attr[0] }}="{{ attr[1] }}"{% endfor %}></script>
- {% endfor %}
- </body>
-</html>