_includes/head.html in jekyll-theme-omega-0.1.4 vs _includes/head.html in jekyll-theme-omega-0.1.5
- old
+ new
@@ -1,4 +1,14 @@
+{% assign bgs = '' | split: '' %}
+{% for file in site.static_files %}
+ {% if file.path contains "assets/images/backgrounds" %}
+ {% assign thisImage = file.path | split: '&&&' %}
+ {% assign bgs = bgs | concat:thisImage %}
+ {% endif %}
+{% endfor %}
+
+{% assign randomBackground = bgs | sample %}
+
<meta charset="utf-8">
{% if page.tags %}
<meta name="keywords" content="{{ page.tags | join: ', ' }}">
{% endif %}