jekyll-theme-profile 1.8.6 → 1.10.0

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: 4c338ecc61d0ef11ef731ad95b3dc73329e4161824080d94038b6b040d66c44c
4
- data.tar.gz: 0cc76009af611f8d86b984feb46399501ecb7fddf8259de967f64f01cde81098
3
+ metadata.gz: 1f8cc59151f896025fdc45d90b5cbfc6c6093070bf8cf45161606e275d6f4dc9
4
+ data.tar.gz: 9a9307ad9ded9450fa3854c92b3d005f6ea4c8e2ffaa5bb525932cd71fb8deff
5
5
  SHA512:
6
- metadata.gz: aad022b02d14dccb49e37e9426d0ad969c18bcdd8b9bcb80e8b97baa46335a52edbac218b170ef54f99c910549192a43772a0fd9f32e0131d805f74be6e9a885
7
- data.tar.gz: da4406630319fba0bddd46bf83bd5b072d12e83aae62d0b7fb5b87b27d65dc6cc9508c8fd0391114831e524c55da55287889fea452968df40e32f1aeb6ccc816
6
+ metadata.gz: 47da1253dba00f0e9e6be2ac3aa3bbb12fc67c677d94cd3f99c34d29bca2dd3bd36469dbe01f6db8716508258220ed44c88b6e3f186cb59af14c659e30a2f2b1
7
+ data.tar.gz: '09a4bb3c0c1a596fd25c95c3ef55a33a5f7353995aa9605091953f37cf8661ed6e6eb683b2f22d83291cfb1889075bdfacc400208e59115c6b47af9464da7e03'
data/README.md CHANGED
@@ -132,19 +132,19 @@ style: sidebar # One of "stacked", "sidebar", "topbar", "appbar
132
132
  ---
133
133
  ```
134
134
 
135
- #### [Sidebar](https://www.althack.dev/jekyll-theme-profile/home/sidebar.html)
135
+ #### [Sidebar](https://www.althack.dev/jekyll-theme-profile/sidebar.html)
136
136
 
137
137
  ![Sidebar image](https://raw.githubusercontent.com/athackst/jekyll-theme-profile/main/demo/media/sidebar-preview.png)
138
138
 
139
- #### [Stacked](https://www.althack.dev/jekyll-theme-profile/home/stacked.html)
139
+ #### [Stacked](https://www.althack.dev/jekyll-theme-profile/stacked.html)
140
140
 
141
141
  ![Stacked image](https://raw.githubusercontent.com/athackst/jekyll-theme-profile/main/demo/media/stacked-preview.png)
142
142
 
143
- #### [Topbar](https://www.althack.dev/jekyll-theme-profile/home/topbar.html)
143
+ #### [Topbar](https://www.althack.dev/jekyll-theme-profile/topbar.html)
144
144
 
145
145
  ![Topbar image](https://raw.githubusercontent.com/athackst/jekyll-theme-profile/main/demo/media/topbar-preview.png)
146
146
 
147
- #### [Appbar](https://www.althack.dev/jekyll-theme-profile/home/appbar.html)
147
+ #### [Appbar](https://www.althack.dev/jekyll-theme-profile/appbar.html)
148
148
 
149
149
  ![Appbar image](https://raw.githubusercontent.com/athackst/jekyll-theme-profile/main/demo/media/appbar-preview.png)
150
150
 
@@ -156,10 +156,6 @@ You can even change the background by adding the following to your `_config.yml`
156
156
  background:
157
157
  image: /media/background-img.jpg
158
158
  overlay: rgba(0, 0, 0, 0.5) # Overlay for both light and dark styles
159
- light:
160
- overlay: rgba(255, 255, 255, 0.5)
161
- dark:
162
- overlay: rgba(0, 0, 0, 0.5)
163
159
  ```
164
160
 
165
161
  or
@@ -195,11 +191,11 @@ In the `nav` section, you can add navigation links that will show up on every pa
195
191
  ```yaml
196
192
  nav:
197
193
  - name: Topbar
198
- url: /test/home/topbar.html
194
+ url: /demo/topbar.html
199
195
  - name: Sidebar
200
- url: /test/home/sidebar.html
196
+ url: /demo/sidebar.html
201
197
  - name: Stacked
202
- url: /test/home/stacked.html
198
+ url: /demo/stacked.html
203
199
  ```
204
200
 
205
201
  ### Links
data/_config.yml ADDED
@@ -0,0 +1,144 @@
1
+ # ######## Jekyll Site Settings ##########
2
+ theme: jekyll-theme-profile
3
+ title: Jekyll Theme Profile
4
+ description: Theme built with jekyll-theme-profile
5
+ image: /media/appbar-preview.png
6
+ # repository: athackst/jekyll-theme-profile
7
+ # base_url: "jekyll-theme-profile"
8
+
9
+ collections:
10
+ docs:
11
+ output: true
12
+ sort_by: order
13
+
14
+ defaults:
15
+ - scope:
16
+ path: "" # an empty string here means all files in the project
17
+ type: "posts"
18
+ values:
19
+ image: /assets/img/default.png # The default image used for social and posts.
20
+ layout: "post"
21
+ permalink: :year/:month/:day/:title:output_ext
22
+ toc: true
23
+ - scope:
24
+ path: "" # an empty string here means all files in the project
25
+ type: "docs"
26
+ values:
27
+ layout: "docs"
28
+ image: /assets/img/default.png # The default image used for social and posts.
29
+ index: /docs/index.html
30
+ permalink: /docs/:path:output_ext
31
+ toc: true
32
+
33
+ # ########### Theme settings ###############
34
+ # The style of the website
35
+ style: appbar # One of "stacked", "sidebar", "topbar", "appbar"
36
+ # The user/project avatar. If not set the avatar of the project owner will be used.
37
+ # user_image: /assets/img/user-image.jpg
38
+ # The themes to use for dark and light
39
+ dark_theme: dark_dimmed
40
+ light_theme: light
41
+
42
+ repo_info: true # Show the information for the source of this project
43
+ user_metadata: true # Show the metadata associated with the user
44
+ profile_link: true # Show a link to the github profile for the user
45
+
46
+ ##########################
47
+ # # Social media settings
48
+ # icon_color: "#959da5" # The color of the social media icons on the site
49
+ # social_media: # Your social media accounts
50
+ # behance: your_username
51
+ # dribbble: your_username
52
+ # docker: your_username
53
+ # facebook: your_username
54
+ # github: your_username
55
+ # hackerrank: your_username
56
+ # instagram: your_username
57
+ # keybase: your_username
58
+ # linkedin: your_username
59
+ # mail: email@address
60
+ # mastodon: your_username
61
+ # medium: your_username
62
+ # stackoverflow: your_user_id
63
+ # telegram: your_username
64
+ # threads: your_username
65
+ # tiktok: your_username
66
+ # twitter: your_username
67
+ # unsplash: your_username
68
+ # vk: your_username
69
+ # vscode: your_username
70
+ # youtube: your_username
71
+ # x: your_username
72
+
73
+ ####################
74
+ # Navigation links
75
+ nav:
76
+ - name: Posts
77
+ url: /blog
78
+ - name: Categories
79
+ url: /category/
80
+
81
+ ####################
82
+ # List of links for link cards
83
+ links:
84
+ - name: All blog posts
85
+ url: /blog
86
+ thumbnail: /assets/img/blog-post-icon.png
87
+ - name: Browse by category
88
+ url: /category/
89
+ thumbnail: /assets/img/category-icon.png
90
+
91
+ ###################
92
+ # Repositories to show on home page
93
+ repositories:
94
+ sort_by: stars
95
+ # sort_by options:
96
+ # - pushed
97
+ # - stars
98
+ limit: 24
99
+ exclude:
100
+ archived: true
101
+ forks: true
102
+ repositories:
103
+ # - list of respositories to exclude
104
+
105
+ ########################
106
+ # Post timeline
107
+ posts_limit: 3 # The number of posts to show in home (also can be defined in page)
108
+
109
+ # ########### Plugin settings ###############
110
+ plugins:
111
+ - jekyll-github-metadata
112
+ - jekyll-octicons
113
+ - jekyll-relative-links
114
+ - jekyll-seo-tag
115
+ - jekyll-toc
116
+ - jemoji
117
+
118
+ ####################
119
+ # jekyll-paginate settings
120
+ paginate: 6 # The number of posts to show per page of pagination of blog posts
121
+ paginate_path: "/blog/page:num"
122
+ ###################
123
+ # jekyll-tagging settings
124
+ # Include `gem jekyll-tagging` in your gemfile
125
+ tag_page_layout: tags
126
+ tag_page_dir: tags
127
+ # related
128
+ related_by: "tags or categories"
129
+
130
+ ####################
131
+ # jekyll-category-pages settings
132
+ category_path: category
133
+ category_layout: category_layout.html
134
+
135
+ ######################
136
+ # jekyll-relative-links settings
137
+ relative_links:
138
+ enabled: true
139
+ collections: true
140
+
141
+ # ########### Build settings ###############
142
+ exclude:
143
+ - spec
144
+ - demo
@@ -1,13 +1,17 @@
1
1
  {%- assign collection = include.collection | default: site.docs %}
2
2
  {%- assign collection_name = include.name %}
3
3
  {%- assign collection_index = include.index %}
4
+ {%- assign index_url = collection_index.url %}
5
+ {%- assign collection_without_index = collection | where_exp: "item", "item.url != index_url" %}
6
+
4
7
  <div class="Overlay-backdrop--side Overlay-backdrop--placement-left" data-modal-dialog-overlay>
5
- <modal-dialog class="Overlay Overlay--width-medium Overlay--motion-slideDown height-fit height-full" >
8
+ <modal-dialog class="Overlay Overlay--width-medium Overlay--motion-slideDown height-fit height-full">
6
9
  <div class="Overlay-headerContentWrap d-flex flex-row py-3 px-2 border-bottom">
7
10
  <div class="Overlay-titleWrap d-flex flex-1">
8
11
  <div tabindex="-1" class="d-flex flex-1 ml-3" id="github-logo">
9
12
  {% if collection_index %}
10
- <a href="{{ collection_index.url | relative_url }}" class="AppHeader-link d-flex flex-items-center no-underline mr-3">
13
+ <a href="{{ collection_index.url | relative_url }}"
14
+ class="AppHeader-link d-flex flex-items-center no-underline mr-3">
11
15
  <span class="h3 color-fg-default text-bold">{{ collection_name }}</span>
12
16
  </a>
13
17
  {% else %}
@@ -17,7 +21,7 @@
17
21
  {% endif %}
18
22
  </div>
19
23
  </div>
20
- <div class="Overlay-actionWrap d-flex flex-justify-end" >
24
+ <div class="Overlay-actionWrap d-flex flex-justify-end">
21
25
  <button id="close-contents-btn" class="close-button Overlay-closeButton">
22
26
  {% octicon x height: 16 %}
23
27
  </button>
@@ -25,14 +29,23 @@
25
29
  </div>
26
30
  <div class="Overlay-body d-flex flex-column p-2">
27
31
  <ul data-overflow-nav class="ActionList border-0">
28
- {%- for nav_item in collection %}
29
- {%- if nav_item.url != collection_index %}
30
- <a href="{{ nav_item.url | relative_url }}" class="ActionListItem-label no-underline" >
31
- <li class="menu-item ActionList-item border-0"{% if page.url==nav_item.url %} aria-current="page"{% endif %}>
32
- {{ nav_item.title }}
33
- </li>
34
- </a>
35
- {%- endif %}
32
+ {%- assign collection_categories = collection_without_index | group_by: "category" %}
33
+ {%- for category in collection_categories %}
34
+ {%- assign category_name = category.name | default: collection_name %}
35
+ <li class="ActionListItem no-underline h4">{{ category_name | capitalize }}
36
+ <ul>
37
+ {%- for nav_item in category.items %}
38
+ {%- if nav_item.url != collection_index %}
39
+ <a href="{{ nav_item.url | relative_url }}" class="ActionListItem-label no-underline">
40
+ <li class="menu-item ActionList-item border-0" {% if page.url==nav_item.url %}
41
+ aria-current="page" {% endif %}>
42
+ {{ nav_item.title }}
43
+ </li>
44
+ </a>
45
+ {%- endif %}
46
+ {%- endfor %}
47
+ </ul>
48
+ </li>
36
49
  {%- endfor %}
37
50
  </ul>
38
51
  </div>
@@ -40,7 +40,7 @@
40
40
  <div class="Sidebar d-none d-lg-block Layout Layout-sidebar Layout--sidebar-wide">
41
41
  <div class="text-center">
42
42
  <div class="px-5 py-2">
43
- {%- include masthead.html %}
43
+ {%- include masthead.html class="CircleBadge--large" %}
44
44
  </div>
45
45
  {%- if site.repo_info %}
46
46
  <div class="py-2">
@@ -18,6 +18,9 @@ This builds a link card
18
18
  <img src="{{ link.thumbnail | relative_url }}" width="48" height="48"
19
19
  class="rounded-2 box-shadow-none img-cover float-left" alt="{{ link.name }}">
20
20
  {%- endif %}
21
+ {%- if link.octicon %}
22
+ {% octicon {{ link.octicon }} height:48 %}
23
+ {%- endif %}
21
24
  </div>
22
25
  <div class="p-2">
23
26
  <p class="f3 text-center mb-0">{{ link.name }}</p>
@@ -1,10 +1,10 @@
1
1
  {%- assign user = site.github.owner %}
2
- {%- assign name = site.title | default: user.name | default: user.login %}
2
+ {%- assign name = include.title | default: site.title | default: user.name | default: user.login %}
3
3
  {%- assign user_img = site.user_image | default: user.avatar_url %}
4
4
  {%- assign user_metadata = site.user_metadata -%}
5
5
 
6
6
  <div class="Masthead">
7
- <div class="CircleBadge img-masthead rounded-circle border">
7
+ <div class="CircleBadge img-masthead {{include.class}}">
8
8
  <a href="{{ site.baseurl }}/">
9
9
  <img src="{{ user_img | relative_url }}" alt="{{ name }}" class="cover-image">
10
10
  </a>
@@ -1,4 +1,5 @@
1
1
  {%- assign image = post.image | default: site.image %}
2
+ {%- assign excerpt = post.description | default: post.excerpt %}
2
3
  {%- assign border = include.border %}
3
4
  <div class="col-sm-6 col-lg-4 ">
4
5
  <div class="py-4 d-flex flex-column {{ border }}">
@@ -10,7 +11,7 @@
10
11
  <h3 class="h6-mktg mb-12px">
11
12
  <a class="Link--primary" href="{{ post.url | relative_url }}">{{ post.title }}</a>
12
13
  </h3>
13
- <p class="f4-mktg color-fg-muted mb-0">{{ post.excerpt | default: post.description }}</p>
14
+ <div class="f4-mktg color-fg-muted mb-0">{{ excerpt }}</div>
14
15
  <div class="mt-14px">
15
16
  <div class="d-flex flex-items-center">
16
17
  <div class="d-flex flex-items-end flex-wrap">
@@ -1,4 +1,6 @@
1
1
  {%- assign image = post.image | default: site.image %}
2
+ {%- assign excerpt = post.description | default: post.excerpt %}
3
+
2
4
  <div class="py-4 d-flex flex-column flex-md-row flex-md-row-reverse p-responsive col-12">
3
5
  <div class="col-12 col-lg-8 p-responsive">
4
6
  <div class="image-container">
@@ -11,7 +13,7 @@
11
13
  <h3 class="h4-mktg mb-12px">
12
14
  <a class="Link--primary" href="{{ post.url | relative_url }}">{{ post.title }}</a>
13
15
  </h3>
14
- <p class="f4-mktg color-fg-muted">{{ post.excerpt }}</p>
16
+ <div class="f4-mktg color-fg-muted">{{ excerpt }}</div>
15
17
  <div class="d-flex flex-items-end flex-wrap">
16
18
  {%- if post.author %}
17
19
  <span class="mr-3 mr-12px mt-1 f5-mktg text-bold">{{ post.author }}</span>
@@ -0,0 +1,45 @@
1
+ {%- assign collection = include.collection %}
2
+ {%- assign collection_permalink = include.collection_permalink | default: ':name' %}
3
+ {%- assign replace_value = include.replace_value | default: ':name' %}
4
+ {%- assign per_section = include.per_section | default: 3 %}
5
+
6
+ {%- for section in collection %}
7
+ {%- assign section_name = section | first %}
8
+ {%- assign section_slug = section_name | slugify %}
9
+ {%- assign section_posts = section | last %}
10
+ <div class="section-heading d-flex flex-items-center flex-justify-between mb-4 mb-lg-7">
11
+ <h2 class="h6-mktg border-bottom-0">{{ section_name | capitalize }}</h2>
12
+ {%- if section_posts.size > per_section %}
13
+ <div class="d-none d-lg-flex flex-items-center">
14
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
15
+ </div>
16
+ {%- endif %}
17
+ </div>
18
+ {%- if section_posts.size == 1 %}
19
+ {%- assign image_class = "col-12" %}
20
+ {%- assign text_class = "" %}
21
+ {%- else %}
22
+ {%- assign image_class = "col-md-7 col-xl-9" %}
23
+ {%- assign text_class = "col-md-5 col-xl-3" %}
24
+ {%- endif %}
25
+ <div class="d-flex flex-wrap gutter-spacious {% cycle '', 'flex-row-reverse' %}">
26
+ {%- for post in section_posts limit: per_section %}
27
+ {%- if forloop.first %}
28
+ <div class="{{ image_class }}">
29
+ {% include post-tease-image-card.html %}
30
+ </div>
31
+ <div class="{{ text_class }}">
32
+ {%- else %}
33
+ <div class="{% unless forloop.last %}border-bottom{% endunless %}">
34
+ {% include post-tease-text-card.html %}
35
+ </div>
36
+ {%- endif %}
37
+ {%- endfor %}
38
+ </div>
39
+ </div>
40
+ {%- if section_posts.size > per_section %}
41
+ <div class="mb-7 mb-md-8 pt-5 text-right d-lg-none border-top">
42
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
43
+ </div>
44
+ {%- endif %}
45
+ {%- endfor %}
@@ -0,0 +1,28 @@
1
+ {%- assign collection = include.collection %}
2
+ {%- assign collection_permalink = include.collection_permalink | default: ':name' %}
3
+ {%- assign replace_value = include.replace_value | default: ':name' %}
4
+ {%- assign per_section = include.per_section | default: 6 %}
5
+
6
+ {% for section in collection %}
7
+ {%- assign section_name = section | first %}
8
+ {%- assign section_slug = section_name | slugify %}
9
+ {%- assign section_posts = section | last %}
10
+ <div class="section-heading d-flex flex-items-center flex-justify-between mb-4 mb-lg-7">
11
+ <h2 class="h6-mktg border-bottom-0">{{ section_name | capitalize }}</h2>
12
+ {%- if section_posts.size > per_section %}
13
+ <div class="d-none d-lg-flex flex-items-center">
14
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
15
+ </div>
16
+ {%- endif %}
17
+ </div>
18
+ <div class="d-flex flex-wrap gutter-spacious mb-4">
19
+ {% for post in section_posts limit: per_section %}
20
+ {%- include post-card.html %}
21
+ {% endfor %}
22
+ </div>
23
+ {%- if section_posts.size > per_section %}
24
+ <div class="mb-7 mb-md-8 pt-5 text-right d-lg-none border-top">
25
+ <a href="{{ collection_permalink | replace: replace_value, section_slug | relative_url }}" class="Link--primary arrow-target-mktg text-semibold">View all {% octicon chevron-right height:16 %}</a>
26
+ </div>
27
+ {%- endif %}
28
+ {% endfor %}
@@ -0,0 +1,22 @@
1
+ <!-- post preview with image -->
2
+ {%- assign image = post.image | default: site.image %}
3
+ {%- assign excerpt = post.description | default: post.excerpt %}
4
+ <div class="py-4 d-flex flex-column border-bottom border-md-0">
5
+ <div class="image-container">
6
+ <a href="{{ post.url | relative_url }}">
7
+ <img class="rounded-2" src="{{ image | relative_url }}" width="800" height="425" alt="{{ post.title }}">
8
+ </a>
9
+ </div>
10
+ <div class="col-12">
11
+ <h3 class="h3-mktg h3-alt-mktg mb-12px">
12
+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
13
+ </h3>
14
+ <div class="f4-mktg color-fg-muted">{{ excerpt }}</div>
15
+ <div class="mt-14px">
16
+ {%- if post.author %}
17
+ <span class="mr-3 mr-12px mt-1 f5-mktg text-bold">{{ post.author }}</span>
18
+ {%- endif %}
19
+ <span class="d-inline-block f5-mktg text-mono color-fg-muted mt-1">{{ post.date | date: "%b %d, %Y"}}</span>
20
+ </div>
21
+ </div>
22
+ </div>
@@ -0,0 +1,12 @@
1
+ {%- assign excerpt = post.description | default: post.excerpt %}
2
+ <div class="py-4 d-flex flex-column">
3
+ <div class="col-12">
4
+ <h3 class="h6-mktg mb-2">
5
+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
6
+ </h3>
7
+ <div class="f4-mktg color-fg-muted">{{ excerpt }}</div>
8
+ <div class="mt-12px">
9
+ <span class="mr-3 mr-12px mt-1 f5-mktg text-bold">{{ post.author }}</span>
10
+ </div>
11
+ </div>
12
+ </div>
@@ -20,31 +20,32 @@
20
20
  </div>
21
21
  </div>
22
22
  <div class="col-12 col-md-7">
23
- <div class="ml-5 mt-5">
24
- {%- if post.video %}
25
- <div id="Timeline-video-container" class="image-container mb-5">
26
- <iframe id="Timeline-video" src="{{ post.video }}" frameborder="0" height="inherited" width="inherited"></iframe>
27
- </div>
28
- {%- elsif post.image %}
29
- <div class="image-container mb-5">
30
- <img class="rounded-2" src="{{ post.image}}" width="800" height="425" alt="{{ post.title }}" />
31
- </div>
32
- {%- endif %}
33
- <div class="summary"> {{ post.excerpt }}</div>
34
- {%- if post.content != blank %}
35
- <div class="more">
36
- <a href="{{ post.url | relative_url }}" class="link-mktg arrow-target-mktg text-semibold f4-mktg">
37
- Contiue
38
- <svg xmlns="http://www.w3.org/2000/svg" class="octicon arrow-symbol-mktg" width="16" height="16"
39
- viewBox="0 0 16 16" fill="none">
40
- <path fill="currentColor"
41
- d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z">
42
- </path>
43
- <path stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path>
44
- </svg>
45
- </a>
46
- </div>
47
- {%- endif %}
23
+ <div class="pb-5 pt-0 py-md-7 ml-5 border-bottom">
24
+ {%- if post.video %}
25
+ <div id="Timeline-video-container" class="image-container">
26
+ <iframe id="Timeline-video" src="{{ post.video }}" frameborder="0" height="inherited"
27
+ width="inherited"></iframe>
28
+ </div>
29
+ {%- elsif post.image %}
30
+ <div class="image-container">
31
+ <img class="rounded-2" src="{{ post.image}}" width="800" height="425" alt="{{ post.title }}" />
32
+ </div>
33
+ {%- endif %}
34
+ <div class="summary"> {{ post.excerpt }}</div>
35
+ {%- if post.content != blank %}
36
+ <div class="more">
37
+ <a href="{{ post.url | relative_url }}" class="link-mktg arrow-target-mktg text-semibold f4-mktg">
38
+ Contiue
39
+ <svg xmlns="http://www.w3.org/2000/svg" class="octicon arrow-symbol-mktg" width="16" height="16"
40
+ viewBox="0 0 16 16" fill="none">
41
+ <path fill="currentColor"
42
+ d="M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z">
43
+ </path>
44
+ <path stroke="currentColor" d="M1.75 8H11" stroke-width="1.5" stroke-linecap="round"></path>
45
+ </svg>
46
+ </a>
47
+ </div>
48
+ {%- endif %}
48
49
  </div>
49
50
 
50
51
  </div>
@@ -1,12 +1,21 @@
1
- {%- assign post_limit = include.limit | default: 3 %}
1
+ {%- assign collection = include.collection | default: site.posts | sort: "date" | reverse %}
2
+ {%- assign index = include.index %}
3
+ {%- assign post_limit = include.limit | default: nil %}
2
4
 
3
- <div class="mb-4">
4
- {%- for post in site.posts limit: {{post_limit}} %}
5
- {%- include post-timeline-card.html %}
6
- {%- endfor %}
5
+ <div class="mt-md-7 mb-9 mb-md-12">
6
+ <div class="container-xl mx-auto p-responsive-blog">
7
+ {%- for post in collection | limit: post_limit %}
8
+ {%- include post-timeline-card.html %}
9
+ {%- endfor %}
10
+ </div>
11
+ {%- if collection.size > post_limit %}
12
+ <div class="container-xl mx-auto p-responsive-blog mt-6 mt-md-8 ">
13
+ <div class="d-flex gutter-spacious">
14
+ <div class="col-12 col-md-7 offset-md-5">
15
+ <a href="{{ index | relative_url }}"
16
+ class="Link--primary arrow-target-mktg text-semibold btn ml-5">View all {% octicon chevron-right height:16 %}</a>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ {%- endif %}
7
21
  </div>
8
- {%- if site.paginate %}
9
- <div class="col-12 col-md-7 offset-md-5 mb-5">
10
- <a href="{{ site.paginate_path | relative_url | replace: 'page:num', '' }}" class="btn ml-5">Read more</a>
11
- </div>
12
- {%- endif %}
@@ -5,6 +5,7 @@
5
5
  {%- assign sort_order = 'pushed_at' %}
6
6
  {%- endif %}
7
7
 
8
+ {%- if site.github.public_repositories.size > 0 %}
8
9
  {%- if site.repositories.exclude.archived && site.repositories.exclude.forks %}
9
10
  {%- assign filtered_repos = site.github.public_repositories | where:'archived', false | where:'fork', false | sort: sort_order | reverse %}
10
11
  {%- elsif site.repositories.exclude.archived %}
@@ -14,6 +15,7 @@
14
15
  {%- else %}
15
16
  {%- assign filtered_repos = site.github.public_repositories | sort: sort_order | reverse %}
16
17
  {%- endif %}
18
+ {%- endif %}
17
19
 
18
20
  {%- for repository in filtered_repos | limit: site.repositories.limit %}
19
21
  {%- unless site.repositories.exclude.repositories contains repository.name %}
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: page
3
+ title: Category
4
+ ---
5
+ {%- assign categories = page.categories | default: site.categories %}
6
+ {%- assign category_permalink = site.category_path | default: 'category' | append: '/:cat' %}
7
+ {%- assign category_permalink = page.pagination.permalink | default: site.autopages.categories.permalink | default: category_permalink %}
8
+ {%- assign per_section = page.per_section | default: page.pagination.per_page | default: 3 %}
9
+
10
+ <h1 class="h3-mktg mt-4 mb-6 mb-md-8">{{ page.title }}</h1>
11
+
12
+ {% include post-gallery.html
13
+ collection=categories
14
+ collection_permalink=category_permalink
15
+ replace_value=":cat"
16
+ per_section=per_section
17
+ %}
@@ -1,3 +1,56 @@
1
1
  ---
2
- layout: paginate
2
+ layout: page
3
3
  ---
4
+ {% if page.paginator %}
5
+ <!-- Pagination is active -->
6
+ {% assign paginator = page.paginator %}
7
+ {% endif %}
8
+
9
+ {% if paginator %}
10
+
11
+ {% if paginator.previous_page != nil or paginator.next_page != nil %}
12
+ <!-- Show page number if we have multiple pages -->
13
+ <p class="f4-mktg color-text-tertiary mt-4 mt-md-7 mb-0">Category {{ paginator.page }} / {{ paginator.total_pages }}</p>
14
+ <h1 class="pb-5 mt-0">{{ page.title | capitalize }}</h1>
15
+ {% else %}
16
+ <!-- No page number if we only have a single page -->
17
+ <p class="f4-mktg color-text-tertiary mt-4 mt-md-7 mb-0">Category</p>
18
+ <h1 class="pb-5 mt-0">{{ page.title | capitalize }}</h1>
19
+ {% endif %}
20
+
21
+ <div class="d-flex flex-wrap gutter-spacious">
22
+ <!-- Show post excerpts for the current page -->
23
+ {% for post in paginator.posts limit:paginator.per_page %}
24
+ {%- if post.feature or post == site.categories[page.title][0] %}
25
+ {%- include post-feature-card.html %}
26
+ {%- else %}
27
+ {%- include post-card.html border="border-top" %}
28
+ {%- endif %}
29
+ {% endfor %}
30
+ </div>
31
+ <!-- Show navigation next/previous page links if applicable -->
32
+ <nav><p>
33
+ {% if paginator.previous_page %}<a class="previous_page" rel="prev" href="{{ paginator.previous_page_path | relative_url }}"
34
+ aria-disabled="false">Previous</a>{% endif %}
35
+ {% if paginator.next_page %}<a class="next_page" rel="next" href="{{ paginator.next_page_path | relative_url }}"
36
+ aria-disabled="false">Next</a>{% endif %}
37
+ </p></nav>
38
+
39
+ {% else %}
40
+
41
+ <!-- Pagination is not active -->
42
+ <p class="f4-mktg color-text-tertiary mt-4 mt-md-7 mb-0">Category</p>
43
+ <h1 class="pb-5 mt-0">{{ page.title | capitalize }}</h1>
44
+
45
+ <div class="d-flex flex-wrap gutter-spacious">
46
+ <!-- Show excerpts for all posts in this category -->
47
+ {% for post in page.posts %}
48
+ {%- if post.feature %}
49
+ {%- include post-feature-card.html %}
50
+ {%- else %}
51
+ {%- include post-card.html border="border-top" %}
52
+ {%- endif %}
53
+ {% endfor %}
54
+ </div>
55
+
56
+ {% endif %}