-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (53 loc) · 2.55 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
---
<!doctype html>
<html class="notranslate" translate="no">
{% include head.html %}
<body>
{% assign target = "target" %}
{% if site.env.HEADER_ENABLED == "1" %}
{% assign headerbgcolor = 'background-color: ' | append: site.env.HEADER_BACKGROUND_COLOR | append: ';' %}
<header id="page-title" style="{{ headerbgcolor }}">{{ site.env.TITLE }}</header>
{% endif %}
<main>
<ul class="grid" id="{{ target }}">
{% if site.env.DEFAULT_REVERSE_SORT == "1" %}
{% assign images = page.images | default: site.static_files | photo_filter | reverse %}
{% else %}
{% assign images = page.images | default: site.static_files | photo_filter %}
{% endif %}
{% include photos.html %}
</ul>
<ul class="links bottom">
{% if site.env.ALLOW_ORDER_SORT_CHANGE == "1" %}
<li class="sort"><a rel="me" href="#" title="Reverse sort order">Sort</a></li>
{% endif %}
{% if site.env.SHOW_RSS_FEED == "1" %}
<li class="rss"><a rel="alternate" type="application/rss+xml" href="{{ site.env.URL }}/feed.xml" title="RSS Feed">RSS Feed</a></li>
{% endif %}
{% if site.env.SHOW_OFFICIAL_GITHUB == "1" %}
<li class="github"><a rel="me" href="https://github.com/waschinski/photo-stream" title="Fork on Github">Github</a></li>
{% endif %}
{% if site.env.TWITTER_USERNAME != "" %}
<li class="twitter"><a rel="me" href="https://twitter.com/{{ site.env.TWITTER_USERNAME }}" title="@{{ site.env.TWITTER_USERNAME }} on Twitter">Twitter</a></li>
{% endif %}
{% if site.env.GITHUB_USERNAME != "" %}
<li class="github"><a rel="me" href="https://github.com/{{ site.env.GITHUB_USERNAME }}" title="@{{ site.env.GITHUB_USERNAME }} on Github">Github</a></li>
{% endif %}
{% if site.env.INSTAGRAM_USERNAME != "" %}
<li class="instagram"><a rel="me" href="https://instagram.com/{{ site.env.INSTAGRAM_USERNAME }}" title="@{{ site.env.INSTAGRAM_USERNAME }} on Instagram">Instagram</a></li>
{% endif %}
{% if site.env.CUSTOM_LINK_URL != "" and site.env.CUSTOM_LINK_NAME != "" %}
<li class="link"><a rel="me" href="{{ site.env.CUSTOM_LINK_URL }}" title="{{ site.env.CUSTOM_LINK_NAME }}">{{ site.env.CUSTOM_LINK_NAME }}</a></li>
{% endif %}
</ul>
</main>
{% include javascript.html %}
{% if site.env.ALLOW_IMAGE_SHARING == "1" %}
<script type="text/javascript" src="{{ '/js/toastify.js' | relative_url }}"></script>
{% endif %}
{% if page.image_slug %}
<script src="{{ '/js/photos.js' | relative_url }}" data-photo-id="{{ page.image_slug }}" data-photo-url="{{ page.image_slug | relative_url }}" data-target-id="{{ target }}"></script>
{% endif %}
</body>
</html>