appscms-tools-theme 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,16 @@
1
1
  <section class="related-posts-section">
2
2
  <div class="container">
3
- <div class="relatedPosts">
4
3
 
5
- <h2 class="pt-5 pb-0 related_post_heading">You might also like</h2>
4
+ <div class="relatedPosts">
5
+ {%- if site.monumetricId -%}
6
+ <div class="row">
7
+ <div class="col-md-9 mx-auto">
8
+ {%- endif -%}
9
+ <h2 class="pt-5 pb-0 related_post_heading mb-3">You might also like</h2>
10
+ {%- if site.monumetricId -%}
11
+ </div>
12
+ </div>
13
+ {%- endif -%}
6
14
 
7
15
  {% assign blogData= site.data.blog.blog %}
8
16
 
@@ -24,151 +32,181 @@
24
32
  {% assign tags= page.tags %}
25
33
  {%- endif -%}
26
34
  <div class="row">
27
- {% for post in blogData %}
28
- {% assign sameTagCount = 0 %}
29
- {% assign commonTags = '' %}
30
-
31
-
32
- {%- if categories-%}
33
- {% for category in post.categories %}
34
- {% if post.url != page.url %}
35
- {% if categories contains category %}
36
- {% assign sameTagCount = sameTagCount | plus: 1 %}
37
- {% endif %}
38
- {% endif %}
39
- {% endfor %}
40
- {%- endif -%}
41
-
42
- {%- if tags -%}
43
- {% for tag in post.tags %}
44
- {% if post.url != page.url %}
45
- {% if tags contains tag %}
46
- {% assign sameTagCount = sameTagCount | plus: 1 %}
47
- {% endif %}
48
- {%- endif -%}
49
- {% endfor %}
50
- {%- endif -%}
51
-
52
-
53
- {% if sameTagCount >= minCommonTags %}
54
- {%- include authors/authors.html-%}
55
- <div class="col-lg-4 col-md-6 mb-4 card-group">
56
- <div class="card h-100">
57
- <a href="{{ post.url }}">
58
- <img src="{{ post.image }}" loading="lazy" class="card-img-top" height="auto" width="100%"
59
- alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin {%- endif -%}>
60
- </a>
61
- <div class="card-body">
62
- <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
63
- <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
64
- </a>
65
- </div>
66
- <div class="card-footer bg-white">
67
- <div class="wrapfooter">
68
- {% if post.author %}
69
- <span class="meta-footer-thumb">
70
- <img class="author-thumb" loading="lazy" src="{{ image }}" alt="{{ authorName }}"
71
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
72
- </span>
73
- {% endif %}
74
-
75
- <span class="author-meta">
76
- <span class="post-name">
77
- <a target="_blank" href="/blog">{{authorName}}</a>
78
- </span><br>
79
- <span class="post-date">{{post.date | date_to_string }}</span>
80
- </span>
81
- <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
82
- title="Read Story">Read
83
- More</a></span>
35
+ {%- if site.monumetricId -%}
36
+
37
+ <div class="col-md-9 mx-auto">
38
+ <div class="row">
39
+ {%- endif -%}
40
+
41
+ {% for post in blogData %}
42
+ {% assign sameTagCount = 0 %}
43
+ {% assign commonTags = '' %}
44
+
45
+
46
+ {%- if categories-%}
47
+ {% for category in post.categories %}
48
+ {% if post.url != page.url %}
49
+ {% if categories contains category %}
50
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
51
+ {% endif %}
52
+ {% endif %}
53
+ {% endfor %}
54
+ {%- endif -%}
55
+
56
+ {%- if tags -%}
57
+ {% for tag in post.tags %}
58
+ {% if post.url != page.url %}
59
+ {% if tags contains tag %}
60
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
61
+ {% endif %}
62
+ {%- endif -%}
63
+ {% endfor %}
64
+ {%- endif -%}
65
+
66
+
67
+ {% if sameTagCount >= minCommonTags %}
68
+ {%- include authors/authors.html-%}
69
+ <div class="
70
+ {%- if site.monumetricId -%}
71
+ col-md-6 mb-4 card-group
72
+ {%- else -%}
73
+ col-lg-4 col-md-6 mb-4 card-group
74
+ {%- endif -%}
75
+
76
+ ">
77
+ <div class="card h-100">
78
+ <a href="{{ post.url }}">
79
+ <img src="{{ post.image }}" loading="lazy" class="card-img-top" height="auto"
80
+ width="100%" alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin {%-
81
+ endif -%}>
82
+ </a>
83
+ <div class="card-body">
84
+ <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
85
+ <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
86
+ </a>
87
+ </div>
88
+ <div class="card-footer bg-white">
89
+ <div class="wrapfooter">
90
+ {% if post.author %}
91
+ <span class="meta-footer-thumb">
92
+ <img class="author-thumb" loading="lazy" src="{{ image }}"
93
+ alt="{{ authorName }}" {%- if site.crossorigin -%} crossorigin {%- endif
94
+ -%}>
95
+ </span>
96
+ {% endif %}
97
+
98
+ <span class="author-meta">
99
+ <span class="post-name">
100
+ <a target="_blank" href="/blog">{{authorName}}</a>
101
+ </span><br>
102
+ <span class="post-date">{{post.date | date_to_string }}</span>
103
+ </span>
104
+ <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
105
+ title="Read Story">Read
106
+ More</a></span>
107
+ </div>
108
+ </div>
84
109
  </div>
85
110
  </div>
86
- </div>
87
- </div>
88
- {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
89
- {% if maxRelatedCounter >= maxRelated %}
90
- {% break %}
91
- {% endif %}
111
+ {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
112
+ {% if maxRelatedCounter >= maxRelated %}
113
+ {% break %}
114
+ {% endif %}
115
+ {%- else -%}
116
+ {%- endif -%}
117
+ {% endfor %}
118
+ {%- assign remamingPosts = maxRelated | minus: maxRelatedCounter -%}
119
+
120
+
121
+
122
+
123
+ {%- if remamingPosts > 0 -%}
124
+ {% assign posts = blogData | where_exp:"post","post.url != page.url" %}
125
+ {% for post in posts %}
126
+ {%- if remamingPosts > 0 -%}
127
+ {%- assign tagData = true -%}
128
+ {%- assign catData = true -%}
129
+ {%- if tags -%}
130
+ {% for tag in post.tags %}
131
+ {% if post.url != page.url %}
132
+ {% if tags contains tag %}
133
+ {%- assign tagData = false -%}
134
+ {%- break -%}
135
+ {% endif %}
136
+ {%- endif -%}
137
+ {% endfor %}
138
+ {%- endif -%}
139
+ {%- if categories-%}
140
+ {%- if tagData == false -%}
141
+ {%- continue -%}
142
+ {%- else -%}
143
+ {% for category in post.categories %}
144
+ {% if post.url != page.url %}
145
+ {% if categories contains category %}
146
+ {%- assign catData = false -%}
147
+ {%- break -%}
148
+ {% endif %}
149
+ {% endif %}
150
+ {% endfor %}
151
+ {%- endif -%}
152
+ {%- if catData == false -%}
153
+ {%- continue -%}
154
+ {%- endif -%}
155
+ {%- assign remamingPosts = remamingPosts | minus: 1 -%}
156
+ {%- include authors/authors.html-%}
157
+ <div class="
158
+ {%- if site.monumetricId -%}
159
+ col-md-6 mb-4 card-group
92
160
  {%- else -%}
93
- {%- endif -%}
94
- {% endfor %}
95
- {%- assign remamingPosts = maxRelated | minus: maxRelatedCounter -%}
96
-
161
+ col-lg-4 col-md-6 mb-4 card-group
162
+ {%- endif -%}
163
+
164
+
165
+ ">
166
+ <div class="card h-100">
167
+ <a href="{{ post.url }}">
168
+ <img src="{{ post.image }}" class="card-img-top" height="215px" width="100%"
169
+ loading="lazy" alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin {%-
170
+ endif -%}>
171
+ </a>
172
+ <div class="card-body">
173
+ <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
174
+ <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
175
+ </a>
176
+ </div>
177
+ <div class="card-footer bg-white">
178
+ <div class="wrapfooter">
179
+ {% if post.author %}
180
+ <span class="meta-footer-thumb">
181
+ <img class="author-thumb" loading="lazy" src="{{image}}"
182
+ alt="{{ authorName }}" {%- if site.crossorigin -%} crossorigin {%- endif
183
+ -%}>
184
+ </span>
185
+ {% endif %}
186
+ <span class="author-meta">
187
+ <span class="post-name">
188
+ <a target="_blank" href="/blog">{{authorName}}</a>
189
+ </span><br>
190
+ <span class="post-date">{{post.date | date_to_string }}</span>
191
+ </span>
192
+ <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
193
+ title="Read Story">Read
194
+ More</a></span>
195
+ </div>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ {%- endif -%}
200
+ {%- endif -%}
97
201
 
202
+ {% endfor %}
203
+ {%- endif -%}
98
204
 
205
+ {%- if site.monumetricId -%}
99
206
 
100
- {%- if remamingPosts > 0 -%}
101
- {% assign posts = blogData | where_exp:"post","post.url != page.url" %}
102
- {% for post in posts %}
103
- {%- if remamingPosts > 0 -%}
104
- {%- assign tagData = true -%}
105
- {%- assign catData = true -%}
106
- {%- if tags -%}
107
- {% for tag in post.tags %}
108
- {% if post.url != page.url %}
109
- {% if tags contains tag %}
110
- {%- assign tagData = false -%}
111
- {%- break -%}
112
- {% endif %}
113
- {%- endif -%}
114
- {% endfor %}
115
- {%- endif -%}
116
- {%- if categories-%}
117
- {%- if tagData == false -%}
118
- {%- continue -%}
119
- {%- else -%}
120
- {% for category in post.categories %}
121
- {% if post.url != page.url %}
122
- {% if categories contains category %}
123
- {%- assign catData = false -%}
124
- {%- break -%}
125
- {% endif %}
126
- {% endif %}
127
- {% endfor %}
128
- {%- endif -%}
129
- {%- if catData == false -%}
130
- {%- continue -%}
131
- {%- endif -%}
132
- {%- assign remamingPosts = remamingPosts | minus: 1 -%}
133
- {%- include authors/authors.html-%}
134
- <div class="col-lg-4 col-md-6 mb-4 card-group">
135
- <div class="card h-100">
136
- <a href="{{ post.url }}">
137
- <img src="{{ post.image }}" class="card-img-top" height="215px" width="100%" loading="lazy"
138
- alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin {%- endif -%}>
139
- </a>
140
- <div class="card-body">
141
- <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
142
- <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
143
- </a>
144
- </div>
145
- <div class="card-footer bg-white">
146
- <div class="wrapfooter">
147
- {% if post.author %}
148
- <span class="meta-footer-thumb">
149
- <img class="author-thumb" loading="lazy" src="{{image}}" alt="{{ authorName }}" {%-
150
- if site.crossorigin -%} crossorigin {%- endif -%}>
151
- </span>
152
- {% endif %}
153
- <span class="author-meta">
154
- <span class="post-name">
155
- <a target="_blank" href="/blog">{{authorName}}</a>
156
- </span><br>
157
- <span class="post-date">{{post.date | date_to_string }}</span>
158
- </span>
159
- <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
160
- title="Read Story">Read
161
- More</a></span>
162
- </div>
163
- </div>
164
207
  </div>
165
208
  </div>
166
209
  {%- endif -%}
167
- {%- endif -%}
168
-
169
- {% endfor %}
170
- {%- endif -%}
171
-
172
210
  </div>
173
211
  </div>
174
212
  </div>