This repository was archived by the owner on Nov 18, 2024. It is now read-only.
forked from iluwatar/java-design-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatterns.html
More file actions
117 lines (112 loc) · 3.88 KB
/
Copy pathpatterns.html
File metadata and controls
117 lines (112 loc) · 3.88 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
layout: default
title: Patterns
permalink: /patterns/
icon: fa-th-large
comments: false
page-index: 3
---
<div id="index" class="row">
<!-- MAIN -->
<div class="col-sm-9">
<div class="content-area">
<!-- small button -->
<!-- <p class="pull-right visible-xs">
<button>toggle</button>
</p> -->
<div class="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 %}
<div class="list-item" href="{{ page.url | prepend: site.baseurl }}"
cats='All;{{ page.categories | join: ';' }}'
tags='All;{{ page.tags | join: ';' }}'>
<a href="{{ page.url | prepend: site.baseurl }}"><h2>{{ page.title }}</h2></a>
<span class="cats">
{% for cat in page.categories %}
<a href="javascript:;" class="cat-button" category="{{ cat }}">{{ cat }}</a>
{% endfor %}
</span>
<span class="tags">
{% for tag in page.tags %}
<a href="javascript:;" class="tag-button" tag="{{ tag }}">{{ tag }}</a>
{% endfor %}
</span>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<!-- SIDEBAR -->
<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 cat-button" category="All">
All<span class="my-badge"> {{ allPatterns | size }}</span>
</a>
{% for category in site.data.categories %}
<a href="javascript:;" class="sidebar-list-item cat-button" category="{{ category.name }}"
<!-- add tooltip only if we have something to display -->
{% if category.description %}
data-toggle="tooltip" data-placement="left" title="{{ category.description }}"
{% endif %}<!-- /tooltip, close the a tag now --> >
{{ category.name }} <span class="my-badge">
{% assign counter=0 %}
{% for page in allPatterns %}
{% if page.categories contains category.name %}
{% 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-button" tag="All">
All<span class="my-badge"> {{ allPatterns | size }}</span>
</a>
{% for tag in site.data.tags %}
<a href="javascript:;" class="sidebar-list-item tag-button" tag="{{ tag.name }}"
<!-- add tooltip only if we have something to display -->
{% if tag.description %}
data-toggle="tooltip" data-placement="left" title="{{ tag.description }}"
{% endif %}<!-- /tooltip, close the a tag now --> >
{{ tag.name }} <span class="my-badge">
{% assign counter=0 %}
{% for page in allPatterns %}
{% if page.tags contains tag.name %}
{% 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>