appscms-tools-theme 3.3.7 → 3.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/author.html +20 -16
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ee19e7d9928caf80dbd42421fb6733b0ad7f20806fd5c03f12140a7f95447e4
4
- data.tar.gz: 8b42ac30d502b3ccc16b373b9fe9d6349cc990e508e0eee3fd58a415aacc8844
3
+ metadata.gz: b86beb1238793536ec7e4a2b6bcb1ff1d7ed871fef27a13f83c5991835122179
4
+ data.tar.gz: 0aea04f06086f64e7b6b1df50ce8adbf51bd5856140e502e2ac84f621b7ed77e
5
5
  SHA512:
6
- metadata.gz: 0e8b92de27bd4d0bb083d098a26a35b5bf0c8d1954168a364581a22822a9bb242817e947217a49efad31ba4a9a6a1ae4f75f96c35b9ccbd8330b314e92832632
7
- data.tar.gz: 4b31c6839f3f628589499ae3e9416baa91b31278e684744907eb2c4274536127503de792f43ba44310e1418fd9896b28aaae5d95fcf0d3dc03f0f615f1214cbb
6
+ metadata.gz: abb31e46893661b237a22d4255318bf33e8cc0499fdecbc455edb48f570e3edc7e6c4b15701ac7ac3b3419448fe542df2f640a636cccaa4846ffeecee3446f6f
7
+ data.tar.gz: 64f37d4d4d3cdb24ae8fdb81d99e94e450160f65e61e139ed6bd810cd2887a92aadaafe9bd15afcbf94d6132c22a7f2a636d0fe3391514d5fb4a560129b63508
data/_layouts/author.html CHANGED
@@ -320,16 +320,16 @@
320
320
  <div class="card-footer bg-white">
321
321
  <div class="wrapfooter">
322
322
  {% if post.author %}
323
- <span class="meta-footer-thumb">
323
+ <a href="/author/{{authorName | downcase | replace: ' ' , '-' }}" class="meta-footer-thumb">
324
324
  <img class="author-thumb" loading="lazy" src="{{image}}" alt="{{ authorName }}">
325
- </span>
325
+ </a>
326
326
  {% endif %}
327
- <span class="author-meta">
327
+ <div class="author-meta">
328
328
  <span class="post-name">
329
- <a target="_blank" href="/blog">{{authorName | capitalize }}</a>
329
+ <a target="_blank" href="/author/{{authorName | downcase | replace: ' ' , '-' }}">{{authorName | capitalize }}</a>
330
330
  </span><br>
331
331
  <span class="post-date">{{post.date | date_to_string }}</span>
332
- </span>
332
+ </div>
333
333
  </div>
334
334
  </div>
335
335
  </div>
@@ -339,28 +339,32 @@
339
339
  </div>
340
340
 
341
341
  {% for post in posts %}
342
- {%- assign postAuthor = post.author | downcase -%}
343
- {%- assign pageLabel = page.label | downcase -%}
344
- {%- if postAuthor contains pageLabel -%}
342
+ {%- for item in post.contributors -%}
343
+ {%- assign pageAuthorName = pageAuthorName | downcase -%}
344
+ {%- assign contributorAuthor = item.name | downcase -%}
345
+ {%- if pageAuthorName contains contributorAuthor -%}
345
346
  {%- if post.contributors.size > 0 -%}
346
347
  {%- assign all_Contributors = post.contributors -%}
347
348
  {%- assign boolean = true -%}
348
349
  {%- endif -%}
349
350
  {%- endif -%}
350
351
  {% endfor %}
352
+ {% endfor %}
353
+
351
354
 
352
355
  {%- if boolean == true -%}
353
356
  <h3 class="mb-4 mt-5 contributors-articles-label">Contributed Articles</h3>
354
357
  {%- endif -%}
355
358
 
359
+
356
360
  <div class="row">
357
361
  {% assign posts = site.posts | where_exp:"post","post.url != page.url" %}
358
362
  {% for post in posts %}
359
363
  {%- include /authors/authors.html -%}
360
- {%- for item in all_Contributors -%}
361
- {%- assign authors_name = authorName | downcase -%}
364
+ {%- for item in post.contributors -%}
365
+ {%- assign pageAuthorName = pageAuthorName | downcase -%}
362
366
  {%- assign contributorAuthor = item.name | downcase -%}
363
- {%- if authors_name contains contributorAuthor -%}
367
+ {%- if pageAuthorName contains contributorAuthor -%}
364
368
  <div class="col-md-6 mb-4 card-group">
365
369
  <div class="card h-100">
366
370
  <a href="{{ post.url }}">
@@ -376,16 +380,16 @@
376
380
  <div class="card-footer bg-white">
377
381
  <div class="wrapfooter">
378
382
  {% if post.author %}
379
- <span class="meta-footer-thumb">
383
+ <a href="/author/{{authorName | downcase | replace: ' ' , '-' }}" class="meta-footer-thumb">
380
384
  <img class="author-thumb" loading="lazy" src="{{image}}" alt="{{ authorName }}">
381
- </span>
385
+ </a>
382
386
  {% endif %}
383
- <span class="author-meta">
387
+ <div class="author-meta">
384
388
  <span class="post-name">
385
- <a target="_blank" href="/blog">{{authorName | capitalize }}</a>
389
+ <a target="_blank" href="/author/{{authorName | downcase | replace: ' ' , '-' }}">{{authorName | capitalize }}</a>
386
390
  </span><br>
387
391
  <span class="post-date">{{post.date | date_to_string }}</span>
388
- </span>
392
+ </div>
389
393
  </div>
390
394
  </div>
391
395
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.7
4
+ version: 3.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms