forked from kbogdanovs/SmartlingHelp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.html
49 lines (43 loc) · 1.16 KB
/
status.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
---
layout: default
title: Site Status
---
<p><br /> <br /> <br /> <br /> <br /> <br /> <br /> </p>
<div class="container">
<h1>{{page.title}}</h1>
<h2>Duplicated Navigation</h2>
{% assign orphans = site.emptyArray %}
{% for article in site.articles %}
{% assign currentSections = site.emptyArray %}
{% for section in site.sections %}
{% for subarticle in section.subarticles %}
{% if subarticle.title == article.title %}
{% assign currentSections = currentSections | push: section %}
{% endif %}
{% endfor %}
{% endfor %}
{% assign currentSectionsLength = currentSections | size %}
{% if currentSectionsLength > 1 %}
<h5>{{article.title}}</h5>
<ul>
{% for currentSection in currentSections %}
<li><a href="{{currentSection.url}}">{{currentSection.title}}</a></li>
{% endfor %}
</ul>
{% endif %}
{% if currentSectionsLength == 0 %}
{% assign orphans = orphans | push: article %}
{% endif %}
{% endfor %}
<h2>
Unpublished Articles
</h2>
<ul>
{% assign orphans = orphans | sort: 'title' %}
{% for orphan in orphans %}
<li>
<a href="{{orphan.url}}">{{orphan.title}}</a>
</li>
{% endfor %}
</ul>
</div>