appscms-tools-theme 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 461ff3fbd9a22ed7f285219803ffe94db527762657832ed250312ec4fda3a653
4
- data.tar.gz: 7ebe64968c2af531de314624ef5fac0754eba923f2fb5ab27832877294c60d0d
3
+ metadata.gz: 370a1432d3e9de6298b26b6f5e8b7631c8d98e50eaba5afba19c7f4d507a9234
4
+ data.tar.gz: 3456c50daaf84d6a75856a75e0072d6a69a6946de2c130c0c9794e08d4dc87bf
5
5
  SHA512:
6
- metadata.gz: 12295acc4aa617b9d9821797fee39b4eeefafed9747ce7ccdf5800ffabf90382a8a043c749d2b3bca7951910cac576f6195f4fc8b00a0a9b571e8f98d58075cf
7
- data.tar.gz: b3c512344b3adddda61d88cd8956aa473877d6c50643fc4802b7965e6d0d3213bdbe213518c4a35d1c3889bdde07053c8e61158474fce0b4669c09e36339b3b5
6
+ metadata.gz: 6471169ac94d5aea56f66db1de05ea3a470ad0f26caac99e956238bfb976d7fb4fb5b5a55e19c8f7701321df89047dcf74bbc0d207a3e7fe94bac2ede125cc24
7
+ data.tar.gz: 1e6c56cc39240ad6ef7cd7a8822dff3c6faee22662f89e5dc848b254f07e73548fa78f18ee72b748f815601092c3a630b449c4f0b7f3dc04576cbf27f3f49c76
@@ -1,5 +1,5 @@
1
- Manpreet_singh:
2
- name: Manpreet singh
1
+ ankita:
2
+ name: ankita
3
3
  image: /assets/images/avatar.png
4
4
  bio: Author4 of Mediumish, a Bootstrap Medium styled template available for WordPress, HTML, Ghost and Jekyll. You are currently previewing Jekyll template demo.
5
5
  twitter: https://twitter.com/home
@@ -28,4 +28,6 @@
28
28
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">
29
29
  <link rel="stylesheet" href="{{'/assets/css/blog.css' | relative_url }}">
30
30
  <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
31
+
32
+ {%- include google-analytics.html -%}
31
33
  </head>
@@ -0,0 +1,23 @@
1
+ {% if jekyll.environment == 'production' and site.production_google_analytics %}
2
+ {%- assign GA_ID = site.production_google_analytics -%}
3
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ GA_ID }}"></script>
4
+ <script>
5
+ window.dataLayer = window.dataLayer || [];
6
+ function gtag() { dataLayer.push(arguments); }
7
+ gtag('js', new Date());
8
+
9
+ gtag('config', '{{ GA_ID }}');
10
+ </script>
11
+ {% endif %}
12
+
13
+ {% if jekyll.environment == 'development' and site.development_google_analytics %}
14
+ {%- assign GA_ID = site.development_google_analytics -%}
15
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ GA_ID }}"></script>
16
+ <script>
17
+ window.dataLayer = window.dataLayer || [];
18
+ function gtag(){dataLayer.push(arguments);}
19
+ gtag('js', new Date());
20
+
21
+ gtag('config', '{{ GA_ID }}');
22
+ </script>
23
+ {% endif %}
@@ -108,5 +108,8 @@
108
108
  ]
109
109
  {%- endif -%}}
110
110
  </script>
111
+
112
+
113
+ {%- include google-analytics.html -%}
111
114
  </head>
112
115
 
@@ -0,0 +1,72 @@
1
+ <div class="container">
2
+ <div class="relatedPosts">
3
+
4
+ {%- if page.categories or page.tag-%}
5
+ <h2 class="pt-5 pb-0 related_post_heading">You might also like</h2>
6
+ {%- endif -%}
7
+
8
+ {% assign maxRelated = 2 %}
9
+ {% assign minCommonTags = 1 %}
10
+ {% assign maxRelatedCounter = 0 %}
11
+
12
+ <div class="row">
13
+ {% for post in site.posts %}
14
+ {% assign sameTagCount = 0 %}
15
+ {% assign commonTags = '' %}
16
+
17
+ {% for category in post.categories %}
18
+ {% if post.url != page.url %}
19
+ {% if page.categories contains category %}
20
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
21
+
22
+ {% capture tagmarkup %} <span class="label label-default">{{ category }}</span> {% endcapture %}
23
+ {% assign commonTags = commonTags | append: tagmarkup %}
24
+ {% endif %}
25
+ {% endif %}
26
+ {% endfor %}
27
+
28
+
29
+ {% if sameTagCount >= minCommonTags %}
30
+ <div class="col-lg-4 col-md-6 mb-4 card-group">
31
+ <div class="card h-100">
32
+ <a href="{{ post.url }}">
33
+ <img src="{{ post.image }}" class="card-img-top" alt="">
34
+ </a>
35
+ <div class="card-body">
36
+ <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
37
+ <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
38
+ </a>
39
+ </div>
40
+ {% assign author = site.data.blog.authors[post.author] %}
41
+ <div class="card-footer bg-white">
42
+ <div class="wrapfooter">
43
+ {% if post.author %}
44
+ <span class="meta-footer-thumb">
45
+ <img class="author-thumb" src="{{ author.image }}" alt="{{ author.name }}">
46
+ </span>
47
+ {% endif %}
48
+
49
+ <span class="author-meta">
50
+ <span class="post-name">
51
+ <a target="_blank" href="/blog">{{post.author}}</a>
52
+ </span><br>
53
+ <span class="post-date">{{post.date | date_to_string }}</span>
54
+ </span>
55
+ <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
56
+ title="Read Story">Read More</a></span>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
62
+ {% if maxRelatedCounter >= maxRelated %}
63
+ {% break %}
64
+ {% endif %}
65
+ {% endif %}
66
+ {% endfor %}
67
+ {%- if page.tag -%}
68
+ {%- include section/related_tag_post.html -%}
69
+ {%- endif -%}
70
+ </div>
71
+ </div>
72
+ </div>
@@ -0,0 +1,60 @@
1
+ {% assign maxRelated = 1 %}
2
+ {% assign minCommonTags = 1 %}
3
+ {% assign maxRelatedCounter = 0 %}
4
+
5
+
6
+ {% for post in site.posts %}
7
+ {% assign sameTagCount = 0 %}
8
+ {% assign commonTags = '' %}
9
+
10
+ {% for tag in post.tags %}
11
+ {% if post.url != page.url %}
12
+ {% if page.tag contains tag %}
13
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
14
+
15
+ {% capture tagmarkup %} <span class="label label-default">{{ tag }}</span> {% endcapture %}
16
+ {% assign commonTags = commonTags | append: tagmarkup %}
17
+
18
+ {% endif %}
19
+ {%- endif -%}
20
+ {% endfor %}
21
+
22
+
23
+ {% if sameTagCount >= minCommonTags %}
24
+ <div class="col-lg-4 col-md-6 mb-4 card-group">
25
+ <div class="card h-100">
26
+ <a href="{{ post.url }}">
27
+ <img src="{{ post.image }}" class="card-img-top" alt="">
28
+ </a>
29
+ <div class="card-body">
30
+ <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
31
+ <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
32
+ </a>
33
+ </div>
34
+ {% assign author = site.data.blog.authors[post.author] %}
35
+ <div class="card-footer bg-white">
36
+ <div class="wrapfooter">
37
+ {% if post.author %}
38
+ <span class="meta-footer-thumb">
39
+ <img class="author-thumb" src="{{ author.image }}" alt="{{ author.name }}">
40
+ </span>
41
+ {% endif %}
42
+
43
+ <span class="author-meta">
44
+ <span class="post-name">
45
+ <a target="_blank" href="/blog">{{post.author}}</a>
46
+ </span><br>
47
+ <span class="post-date">{{post.date | date_to_string }}</span>
48
+ </span>
49
+ <span class="post-read-more"><a class="text-dark" href="{{ post.url }}" title="Read Story">Read
50
+ More</a></span>
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
56
+ {% if maxRelatedCounter >= maxRelated %}
57
+ {% break %}
58
+ {% endif %}
59
+ {% endif %}
60
+ {% endfor %}
@@ -6,7 +6,8 @@ layout: blog
6
6
  <div class="row listrecent">
7
7
  {% for category in site.categories %}
8
8
  <div class="section-title col-md-12 mt-4">
9
- <h2 id="{{ category[0] | replace: ' ', '-' }}">Category <span class="text-capitalize">{{ category[0]
9
+ <h2 id="{{ category[0] | replace: ' ', '-' }}">Category
10
+ <span class="text-capitalize">{{ category[0]
10
11
  }}</span>
11
12
  </h2>
12
13
  </div>
@@ -106,8 +106,10 @@
106
106
  </div>
107
107
  {%- include share/socialshare.html -%}
108
108
  {%- include Rating/rating.html -%}
109
+ {%- if page.categories or page.tag-%}
110
+ {%- include section/related_categories_post.html -%}
111
+ {% endif %}
109
112
  {% include footer/index.html %}
110
113
  {% include script.html %}
111
114
  </body>
112
-
113
115
  </html>
data/_layouts/post.html CHANGED
@@ -47,6 +47,9 @@
47
47
  {{ content }}
48
48
  </div>
49
49
  {%- include paginationPostPage.html -%}
50
+ {%- if page.categories or page.tags-%}
51
+ {%- include section/related_categories_post.html -%}
52
+ {% endif %}
50
53
  <div class="commentsection">
51
54
  {%- if site.disqus.shortname -%}
52
55
  {%- include disqus_comments.html -%}
data/assets/css/blog.css CHANGED
@@ -406,6 +406,22 @@ header {
406
406
  outline: none !important;
407
407
  }
408
408
 
409
+ /* recent post heading stlye */
410
+ .recent_post_heading{
411
+ width:100%;
412
+ font-size: 46px;
413
+ text-align: left;
414
+ font-weight: 800;
415
+ font-stretch: normal;
416
+ font-style: normal;
417
+ line-height: 1.24;
418
+ letter-spacing: normal;
419
+ color: rgb(17, 48, 78);
420
+ margin-bottom: 45px;
421
+ padding-top: 75px;
422
+ display: inline-block;
423
+ }
424
+
409
425
  @media (max-width: 768px) {
410
426
  .bd-search {
411
427
  padding: 10px 25px;
data/assets/css/tools.css CHANGED
@@ -1459,3 +1459,54 @@ ul li {
1459
1459
  color: rgb(33, 33, 33);
1460
1460
  padding: 6px;
1461
1461
  }
1462
+
1463
+
1464
+ /* RELATED POST && RECENT POST STYLING */
1465
+ .related_post_heading{
1466
+ width:100%;
1467
+ font-size: 46px;
1468
+ text-align: center;
1469
+ font-weight: 800;
1470
+ font-stretch: normal;
1471
+ font-style: normal;
1472
+ line-height: 1.24;
1473
+ letter-spacing: normal;
1474
+ color: rgb(17, 48, 78);
1475
+ margin-bottom: 45px;
1476
+ padding-top: 75px;
1477
+ display: inline-block;
1478
+ }
1479
+
1480
+
1481
+ /* Blog-card-footer styling */
1482
+ .card-footer {
1483
+ border: none;
1484
+ }
1485
+ .wrapfooter {
1486
+ display: flex;
1487
+ align-items: center;
1488
+ margin-bottom: 15px;
1489
+ }
1490
+ .wrapfooter img {
1491
+ width: 35px;
1492
+ height: 35px;
1493
+ border-radius: 50%;
1494
+ }
1495
+ .wrapfooter .author-meta {
1496
+ /* flex: 1 1 auto; */
1497
+ padding: 0 15px;
1498
+ }
1499
+ .wrapfooter .author-meta a {
1500
+ font-size: 15px;
1501
+ color: #000;
1502
+ text-transform: capitalize;
1503
+ }
1504
+ .wrapfooter .post-read-more {
1505
+ flex: 50;
1506
+ text-align: right;
1507
+ }
1508
+ .post-date {
1509
+ color: rgba(0, 0, 0, 0.44);
1510
+ font-size: 13px;
1511
+ }
1512
+ /* close */
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -93,6 +93,7 @@ files:
93
93
  - _includes/disqus_comments.html
94
94
  - _includes/dropdown/langdropdown.html
95
95
  - _includes/footer/index.html
96
+ - _includes/google-analytics.html
96
97
  - _includes/head/index.html
97
98
  - _includes/header/blogHeader.html
98
99
  - _includes/header/index.html
@@ -102,6 +103,8 @@ files:
102
103
  - _includes/script.html
103
104
  - _includes/section/alertbar.html
104
105
  - _includes/section/count.html
106
+ - _includes/section/related_categories_post.html
107
+ - _includes/section/related_tag_post.html
105
108
  - _includes/share/socialshare.html
106
109
  - _layouts/aboutUs.html
107
110
  - _layouts/blog.html