Skip to content

Commit eb0406e

Browse files
committed
file cleanup (and sqlcheats)
1 parent 83c4112 commit eb0406e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

_sql_cheats/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: "SQL Cheats"
3+
layout: collection_index
4+
---
5+
<h1 class="page-heading">SQL Cheats</h1>
6+
7+
8+
<ul class="collection-list" data-path="{{page.path}}">
9+
{% for collection in site.collections %}
10+
<!-- {{ collection.label }} -->
11+
{% if page.path contains collection.label %}
12+
<!-- {{ page.path }} does contain {{ collection.label }} -->
13+
{% assign sorted_docs = (collection.docs | sort: 'title') %}
14+
{% for doc in sorted_docs %}
15+
<!-- Iterating on {{doc.title}} @ {{doc.url}} -->
16+
{% unless doc.url contains "index" %}
17+
<li>
18+
<a class="collection-link" href="{{ doc.url | prepend: site.baseurl }}">{{ doc.title}}</a>
19+
</li>
20+
{% endunless %}
21+
{% endfor %}
22+
{% endif %}
23+
{% endfor %}
24+
</ul>

0 commit comments

Comments
 (0)