forked from iluwatar/java-design-patterns
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpatterns.html
More file actions
97 lines (92 loc) · 2.83 KB
/
patterns.html
File metadata and controls
97 lines (92 loc) · 2.83 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
layout: default
title: Patterns
permalink: /patterns/
icon: fa-th-large
comments: false
page-index: 1
---
<div id="index" class="row">
<div class="col-sm-9">
<div class="post-area">
<!-- small button -->
<!-- <p class="pull-right visible-xs">
<button>toggle</button>
</p> -->
<div class="post-list-header">
Patterns
</div>
<div class="pattern-cse">
<gcse:search></gcse:search>
</div>
<div class="post-list-body">
{% assign allPatterns = site.pages | where:"layout","pattern" | sort: 'title' %}
<div>
{% for page in allPatterns %}
<a class="post-list-item" href="{{ page.url | prepend: site.baseurl }}"
cats='All;{{ page.categories | join: ';' }}'
tags='All;{{ page.tags | join: ';' }}'>
<h2>{{ page.title }}</h2>
</a>
{% endfor %}
</div>
</div>
</div>
</div>
<div class="col-sm-3">
<div class="shadow-corner-curl hidden-xs">
<div class="sidebar-list-header">
Categories
</div>
<a href="javascript:;" class="sidebar-list-item category" category="All">
All<span class="my-badge"> {{ allPatterns | size }}</span>
</a>
{% for category in site.category-list %}
<a href="javascript:;" class="sidebar-list-item category" category="{{ category }}">
{{ category }} <span class="my-badge">
{% assign counter=0 %}
{% for page in allPatterns %}
{% if page.categories contains category %}
{% assign counter=counter | plus:1 %}
{% endif %}
{% endfor %}
{{ counter }}
</span>
</a>
{% endfor %}
</div>
<div class="shadow-corner-curl hidden-xs top20">
<div class="sidebar-list-header">
Tags
</div>
<a href="javascript:;" class="sidebar-list-item tag" tag="All">
All<span class="my-badge"> {{ allPatterns | size }}</span>
</a>
{% for tag in site.tag-list %}
<a href="javascript:;" class="sidebar-list-item tag" tag="{{ tag }}">
{{ tag }} <span class="my-badge">
{% assign counter=0 %}
{% for page in allPatterns %}
{% if page.tags contains tag %}
{% assign counter=counter | plus:1 %}
{% endif %}
{% endfor %}
{{ counter }}
</span>
</a>
{% endfor %}
</div>
</div>
<script>
(function() {
var cx = '008960609897446712051:upn_v7v8dba';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
</div>