appscms-tools-theme 4.5.4 → 4.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,171 +1,145 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
- {% include appscms/head/bloghead.html %}
4
- <style>
5
- .authors-heading {
6
- font-size: 50px;
7
- font-weight: 900;
8
- }
9
-
10
- .authors-info {
11
- padding: 32px;
12
- display: flex;
13
- flex-direction: column;
14
- justify-content: center;
15
- text-align: center;
16
- height: 100%;
17
- width: 100%;
18
- background: white;
19
- box-shadow: 2px 4px 8px #d0cdcd;
20
- border-radius: 15px;
21
- margin-bottom: 100px;
22
- }
23
-
24
- .authors-info .authors-image img {
25
- display: inline-block;
26
- width: 150px;
27
- height: 150px;
28
- padding: 8px;
29
- border-radius: 50%;
30
- object-fit: cover;
31
- user-select: none;
32
- }
33
-
34
- .authors-info .authors-name {
35
- margin: 1rem;
36
- font-size: 23px;
37
- color: #000;
38
- font-weight: 600;
39
- }
40
-
41
- .authors-info .authors-bio {
42
- color: #121315;
43
- font-size: 14px;
44
- }
45
-
46
- .authors-posts-count {
47
- font-size: 16px;
48
- font-weight: 400;
49
- color: #000 !important;
50
- text-decoration: underline !important;
51
- }
52
- </style>
53
-
54
- <body>
55
- {%- include appscms/navbars/navbar.html -%} {%- include
56
- appscms/navbars/toolbar.html -%}
57
- <section class="authors-list" style="margin-top: 50px">
58
- <div class="container">
59
- <div class="row">
60
- <div class="col-md-12">
61
- <h1 class="mb-5 text-center authors-heading">Our Authors</h1>
62
- <div class="row">
63
- {% assign authorsList = "" | split: "" %}
64
- {% assign folder_path = '' %}
65
- {% for file in site.pages %}
66
- {% if file.path contains folder_path %}
67
- {% assign pageData = file | parse_yaml %}
68
- {% assign lang = pageData.lang %}
69
- {% assign foldername = pageData.folderName %}
70
- {% assign filename = pageData.fileName %}
71
- {% assign permalink = pageData.permalink %}
72
- {% assign json_data = site.data[foldername][lang][filename] | json %}
73
-
74
- {% for author in json_data.author %}
75
- {%- assign splitAuthor = author | split: " " -%}
76
- {% assign featureAuthorFirst = splitAuthor.first | downcase %}
77
-
78
- {%- assign collectionData = [featureAuthorFirst] -%}
79
- {%- for item in collectionData -%}
80
- {%- if forloop.index == 1 -%}
81
- {%- assign seoTeamAuthorName = item -%}
82
- {%- assign authorsList = authorsList | push: seoTeamAuthorName -%}
83
- {%- endif -%}
84
- {%- endfor -%}
85
- {% endfor %}
86
- {% endif %}
87
- {%- endfor -%}
88
-
89
- {% assign contributorAuthors = "" | split: "" %}
90
- {% assign folder_path = '' %}
91
- {% for file in site.pages %}
92
- {% if file.path contains folder_path %}
93
- {% assign pageData = file | parse_yaml %}
94
- {% assign lang = pageData.lang %}
95
- {% assign foldername = pageData.folderName %}
96
- {% assign filename = pageData.fileName %}
97
- {% assign permalink = pageData.permalink %}
98
- {% assign json_data = site.data[foldername][lang][filename] | json %}
99
-
100
- {% for contributor in json_data.contributors %}
101
- {%- assign splitAuthor = contributor.name | split: " " -%}
102
- {% assign contributorAuthor = splitAuthor.first | downcase %}
103
- {%- assign collectionData = [contributorAuthor] -%}
104
- {%- for item in collectionData -%}
105
- {%- if forloop.index == 1 -%}
106
- {%- assign contributorAuthor = item -%}
107
- {%- assign contributorAuthors = contributorAuthors | push: contributorAuthor -%}
108
- {% assign mergedArray = authorsList | concat: contributorAuthors %}
109
- {% endif %}
110
- {%- endfor -%}
111
- {% endfor %}
112
- {% endif %}
113
- {% endfor %}
114
-
115
- {% assign postAuthors = "" | split: "" %}
116
- {%- for post in site.posts -%}
117
- {%- if post.author != "" -%}
118
- {%- assign postAuthors = postAuthors | push: post.author -%}
119
- {% assign final_array = mergedArray | concat: postAuthors %}
120
- {%- endif -%}
121
- {%- endfor -%}
122
-
123
-
124
- {% assign uniqueArray = final_array | uniq %}
125
- {% for author in uniqueArray %}
126
- {%- assign splitAuthor = author | split: " " -%}
127
- {%- assign authorFirst = splitAuthor.first | downcase -%}
128
- {%- assign collectionData = [authorFirst] -%}
129
- {%- for item in collectionData -%}
130
- {%- if forloop.index == 1 -%}
131
- {%- assign authorName = item -%}
132
- {%- elsif forloop.index == 2 -%}
133
- {%- assign image = item -%}
134
- {%- elsif forloop.index == 3 -%}
135
- {%- assign bio = item -%}
136
- {%- endif -%}
137
- {%- endfor -%}
138
- <div class="col-md-4 mb-5">
139
- <div class="authors-info">
140
- <a class="authors-image" href="/authors/{{authorName | downcase | replace: ' ', '-' }}">
141
- <img loading="lazy" src="{{image}}" alt="{{ authorName }}" />
142
- </a>
143
- <a class="authors-name" href="/authors/{{authorName | downcase | replace: ' ', '-' }}">{{authorName |
144
- capitalize }}</a>
145
-
146
- {% assign authorPosts = site.posts | where: 'author', author %}
147
- {% assign postCount = authorPosts | size %}
148
-
149
- {% if postCount > 0 %}
150
- <a href="/blog" class="authors-posts-count">{{ postCount }} Posts</a>
151
- {% endif %}
152
-
153
- <p class="authors-bio mt-3">{{bio}}</p>
3
+ {% include appscms/head/bloghead.html %}
4
+ <style>
5
+ .authors-heading {
6
+ font-size: 50px;
7
+ font-weight: 900;
8
+ }
9
+
10
+ .authors-info {
11
+ padding: 32px;
12
+ display: flex;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ text-align: center;
16
+ height: 100%;
17
+ width: 100%;
18
+ background: white;
19
+ box-shadow: 2px 4px 8px #d0cdcd;
20
+ border-radius: 15px;
21
+ margin-bottom: 100px;
22
+ }
23
+
24
+ .authors-info .authors-image img {
25
+ display: inline-block;
26
+ width: 150px;
27
+ height: 150px;
28
+ padding: 8px;
29
+ border-radius: 50%;
30
+ object-fit: cover;
31
+ user-select: none;
32
+ }
33
+
34
+ .authors-info .authors-name {
35
+ margin: 1rem;
36
+ font-size: 23px;
37
+ color: #000;
38
+ font-weight: 600;
39
+ }
40
+
41
+ .authors-info .authors-bio {
42
+ color: #121315;
43
+ font-size: 14px;
44
+ }
45
+
46
+ .authors-posts-count {
47
+ font-size: 16px;
48
+ font-weight: 400;
49
+ color: #000 !important;
50
+ text-decoration: underline !important;
51
+ }
52
+ </style>
53
+
54
+ <body>
55
+ {%- include appscms/navbars/navbar.html -%} {%- include
56
+ appscms/navbars/toolbar.html -%}
57
+ <section class="authors-list" style="margin-top: 50px">
58
+ <div class="container">
59
+ <div class="row">
60
+ <div class="col-md-12">
61
+ <h1 class="mb-5 text-center authors-heading">Our Authors</h1>
62
+ <div class="row">
63
+ {% assign authorsList = "" | split: "" %} {% assign folder_path =
64
+ '' %} {% for file in site.pages %} {% if file.path contains
65
+ folder_path %} {% assign pageData = file | parse_yaml %} {% assign
66
+ lang = pageData.lang %} {% assign foldername = pageData.folderName
67
+ %} {% assign filename = pageData.fileName %} {% assign permalink =
68
+ pageData.permalink %} {% assign json_data =
69
+ site.data[foldername][lang][filename] | json %} {% for author in
70
+ json_data.author %} {%- assign splitAuthor = author | split: " "
71
+ -%} {% assign featureAuthorFirst = splitAuthor.first | downcase %}
72
+ {%- assign collectionData = [featureAuthorFirst] -%} {%- for item
73
+ in collectionData -%} {%- if forloop.index == 1 -%} {%- assign
74
+ seoTeamAuthorName = item -%} {%- assign authorsList = authorsList
75
+ | push: seoTeamAuthorName -%} {%- endif -%} {%- endfor -%} {%
76
+ endfor %} {% endif %} {%- endfor -%} {% assign contributorAuthors
77
+ = "" | split: "" %} {% assign folder_path = '' %} {% for file in
78
+ site.pages %} {% if file.path contains folder_path %} {% assign
79
+ pageData = file | parse_yaml %} {% assign lang = pageData.lang %}
80
+ {% assign foldername = pageData.folderName %} {% assign filename =
81
+ pageData.fileName %} {% assign permalink = pageData.permalink %}
82
+ {% assign json_data = site.data[foldername][lang][filename] | json
83
+ %} {% for contributor in json_data.contributors %} {%- assign
84
+ splitAuthor = contributor.name | split: " " -%} {% assign
85
+ contributorAuthor = splitAuthor.first | downcase %} {%- assign
86
+ collectionData = [contributorAuthor] -%} {%- for item in
87
+ collectionData -%} {%- if forloop.index == 1 -%} {%- assign
88
+ contributorAuthor = item -%} {%- assign contributorAuthors =
89
+ contributorAuthors | push: contributorAuthor -%} {% assign
90
+ mergedArray = authorsList | concat: contributorAuthors %} {% endif
91
+ %} {%- endfor -%} {% endfor %} {% endif %} {% endfor %} {% assign
92
+ postAuthors = "" | split: "" %} {%- for post in site.posts -%} {%-
93
+ if post.author != "" -%} {%- assign postAuthors = postAuthors |
94
+ push: post.author -%} {% assign final_array = mergedArray |
95
+ concat: postAuthors %} {%- endif -%} {%- endfor -%} {% assign
96
+ uniqueArray = final_array | uniq %} {% for author in uniqueArray
97
+ %} {%- assign splitAuthor = author | split: " " -%} {%- assign
98
+ authorFirst = splitAuthor.first | downcase -%} {%- assign
99
+ collectionData = [authorFirst] -%} {%- for item in collectionData
100
+ -%} {%- if forloop.index == 1 -%} {%- assign authorName = item -%}
101
+ {%- elsif forloop.index == 2 -%} {%- assign image = item -%} {%-
102
+ elsif forloop.index == 3 -%} {%- assign bio = item -%} {%- endif
103
+ -%} {%- endfor -%}
104
+ <div class="col-md-4 mb-5">
105
+ <div class="authors-info">
106
+ <a
107
+ class="authors-image"
108
+ href="/authors/{{authorName | downcase | replace: ' ', '-' }}"
109
+ >
110
+ <img
111
+ loading="lazy"
112
+ src="{{image}}"
113
+ alt="{{ authorName }}"
114
+ />
115
+ </a>
116
+ <a
117
+ class="authors-name"
118
+ href="/authors/{{authorName | downcase | replace: ' ', '-' }}"
119
+ >{{authorName | capitalize }}</a
120
+ >
121
+
122
+ {% assign authorPosts = site.posts | where: 'author', author
123
+ %} {% assign postCount = authorPosts | size %} {% if postCount
124
+ > 0 %}
125
+ <a href="/blog/" class="authors-posts-count"
126
+ >{{ postCount }} Posts</a
127
+ >
128
+ {% endif %}
129
+
130
+ <p class="authors-bio mt-3">{{bio}}</p>
131
+ </div>
154
132
  </div>
133
+ {% endfor %}
155
134
  </div>
156
- {% endfor %}
157
135
  </div>
158
136
  </div>
159
137
  </div>
160
- </div>
161
- {% include section/count.html %}
162
- </section>
163
- {%- include appscms/footer/static-footer.html -%}
164
- {%- include appscms/scripts/script.html -%}
165
- </body>
166
-
138
+ {% include section/count.html %}
139
+ </section>
140
+ {%- include appscms/footer/static-footer.html -%} {%- include
141
+ appscms/scripts/script.html -%}
142
+ </body>
167
143
  </html>
168
144
 
169
-
170
-
171
- <!-- author name should be same in feature json or blog posts json -->
145
+ <!-- author name should be same in feature json or blog posts json -->
@@ -1,78 +1,117 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
- {% include appscms/head/bloghead.html %}
3
+ {% include appscms/head/bloghead.html %}
4
4
 
5
- <body>
6
- {%- include appscms/navbars/navbar.html -%} {%- include
7
- appscms/navbars/toolbar.html -%}
5
+ <body>
6
+ {%- include appscms/navbars/navbar.html -%} {%- include
7
+ appscms/navbars/toolbar.html -%}
8
8
 
9
- <section>
10
- <div class="container">
11
- {%- if site.monumetricId -%}
12
- <div class="row">
13
- <div class="col-md-9 mx-auto">
14
- {%- endif -%}
15
- <h1 class="appscms-h1 mt-5 text-center">
16
- {{ site.data.blog.blog.h1 }}
17
- </h1>
18
- <p class="appscms-h2 text-center mb-5" style="font-size: 18px">
19
- {{ site.data.blog.blog.description }}
20
- </p>
21
- {%- if site.monumetricId -%}
22
- </div>
23
- </div>
24
- {%- endif -%}
25
- <div class="main-content">{{content}}</div>
26
- <div class="row">
27
- <div class="col-md-10 mx-auto">
28
- <div class="row allblogs shadow appscms-blogs">
9
+ <section>
10
+ <div class="container">
11
+ {%- if site.monumetricId -%}
12
+ <div class="row">
13
+ <div class="col-md-9 mx-auto">
14
+ {%- endif -%}
15
+ <h1 class="appscms-h1 mt-5 text-center">
16
+ {{ site.data.blog.blog.h1 }}
17
+ </h1>
18
+ <p class="appscms-h2 text-center mb-5" style="font-size: 18px">
19
+ {{ site.data.blog.blog.description }}
20
+ </p>
29
21
  {%- if site.monumetricId -%}
30
- <div class="col-md-9 mx-auto">
31
- <div class="row">
32
- {%- endif -%} {% for post in paginator.posts %}
33
- <div
34
- class="{%- if site.monumetricId -%} col-md-6 mb-4 card-group {%- else -%} col-lg-4 col-md-6 mb-4 card-group {%- endif -%}">
35
- <div class="card h-100 appscms-blog-cards">
36
- <a href="{{ post.url }}">
37
- <img src="{{ post.image }}" loading="lazy" height="215px" width="100%" class="card-img-top"
38
- alt="{{post.title}}" {%- if site.crossorigin -%} crossorigin="anonymous" {%- endif -%} />
39
- </a>
40
- <div class="card-body">
41
- <a href="{{ post.url }}" class="anchor_link">
42
- <h4 class="card-title mb-4">{{ post.title }}</h4>
22
+ </div>
23
+ </div>
24
+ {%- endif -%}
25
+ <div class="main-content">{{content}}</div>
26
+ <div class="row">
27
+ <div class="col-md-10 mx-auto">
28
+ <div class="row allblogs shadow appscms-blogs">
29
+ {%- if site.monumetricId -%}
30
+ <div class="col-md-9 mx-auto">
31
+ <div class="row">
32
+ {%- endif -%} {% for post in paginator.posts %}
33
+ <div
34
+ class="{%- if site.monumetricId -%} col-md-6 mb-4 card-group {%- else -%} col-lg-4 col-md-6 mb-4 card-group {%- endif -%}"
35
+ >
36
+ <div class="card h-100 appscms-blog-cards">
37
+ <a href="{{ post.url }}" aria-label="{{post.title}}">
38
+ <img
39
+ src="{{ post.image }}"
40
+ loading="lazy"
41
+ height="215px"
42
+ width="100%"
43
+ class="card-img-top"
44
+ alt="{{post.title}}"
45
+ {%-
46
+ if
47
+ site.crossorigin
48
+ -%}
49
+ crossorigin="anonymous"
50
+ {%-
51
+ endif
52
+ -%}
53
+ />
43
54
  </a>
44
- {%- include authors/authors.html -%}
55
+ <div class="card-body">
56
+ <a
57
+ href="{{ post.url }}"
58
+ class="anchor_link"
59
+ aria-label="{{post.title}}"
60
+ >
61
+ <h4 class="card-title mb-4">{{ post.title }}</h4>
62
+ </a>
63
+ {%- include authors/authors.html -%}
45
64
  <div class="wrapfooter">
46
65
  {% if post.author %}
47
- <a target="_blank" href="/authors/{{authorName | downcase | replace: ' ' , '-' }}"
48
- class="meta-footer-thumb">
49
- <img class="author-thumb" loading="lazy" src="{{ image }}" alt="{{ authorName }}" {%- if
50
- site.crossorigin -%} crossorigin="anonymous" {%- endif -%} />
66
+ <a
67
+ target="_blank"
68
+ href="/authors/{{authorName | downcase | replace: ' ' , '-' }}"
69
+ class="meta-footer-thumb"
70
+ aria-label="{{authorName}}"
71
+ >
72
+ <img
73
+ class="author-thumb"
74
+ loading="lazy"
75
+ src="{{ image }}"
76
+ alt="{{ authorName }}"
77
+ {%-
78
+ if
79
+ site.crossorigin
80
+ -%}
81
+ crossorigin="anonymous"
82
+ {%-
83
+ endif
84
+ -%}
85
+ />
51
86
  </a>
52
87
  {% endif %}
53
88
 
54
89
  <div class="author-meta">
55
- <a target="_blank" href="/authors/{{authorName | downcase | replace: ' ' , '-' }}">{{authorName}}</a>
56
- <div class="post-date">{{post.date | date_to_string }}</div>
90
+ <a
91
+ target="_blank"
92
+ href="/authors/{{authorName | downcase | replace: ' ' , '-' }}"
93
+ >{{authorName}}</a
94
+ >
95
+ <div class="post-date">
96
+ {{post.date | date_to_string }}
97
+ </div>
57
98
  </div>
58
99
  </div>
100
+ </div>
59
101
  </div>
60
-
61
102
  </div>
103
+ {% endfor %} {%- if site.monumetricId -%}
62
104
  </div>
63
- {% endfor %} {%- if site.monumetricId -%}
64
105
  </div>
106
+ {%- endif -%}
65
107
  </div>
66
- {%- endif -%}
67
108
  </div>
68
109
  </div>
110
+ {%- include paginationBlogPage.html -%}
69
111
  </div>
70
- {%- include paginationBlogPage.html -%}
71
- </div>
72
-
73
- {% include section/count.html %}
74
- </section>
75
- {% include appscms/scripts/script.html %}
76
- </body>
77
112
 
78
- </html>
113
+ {% include section/count.html %}
114
+ </section>
115
+ {% include appscms/scripts/script.html %}
116
+ </body>
117
+ </html>