jekyll-theme-profile 1.12.4 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/_config.yml +6 -4
- data/_includes/breadcrumbs.html +4 -1
- data/_includes/category_index.html +18 -0
- data/_includes/collection-menu.html +1 -1
- data/_includes/custom-colors.html +2 -2
- data/_includes/footer.html +1 -1
- data/_includes/head.html +4 -2
- data/_includes/header-appbar.html +3 -3
- data/_includes/header-sidebar.html +4 -4
- data/_includes/header-stacked.html +1 -1
- data/_includes/header-topbar.html +4 -4
- data/_includes/link-card.html +16 -2
- data/_includes/mini-repo-info-card.html +6 -4
- data/_includes/nav-overlay.html +2 -2
- data/_includes/navbar-underline.html +8 -5
- data/_includes/post-card.html +1 -0
- data/_includes/post-feature-card.html +4 -4
- data/_includes/post-gallery.html +15 -11
- data/_includes/post-index.html +13 -8
- data/_includes/post-timeline-card.html +26 -3
- data/_includes/post-timeline.html +15 -22
- data/_includes/related.html +1 -1
- data/_includes/repo-card.html +16 -12
- data/_includes/user-metadata.html +12 -6
- data/_layouts/category_index.html +3 -2
- data/_layouts/category_layout.html +1 -1
- data/_layouts/default.html +7 -6
- data/_layouts/docs.html +126 -81
- data/_layouts/docs_index.html +32 -0
- data/_layouts/page.html +8 -8
- data/_layouts/paginate.html +1 -1
- data/_layouts/post.html +18 -19
- data/_layouts/profile.html +32 -32
- data/_layouts/tag_index.html +3 -2
- data/_layouts/tags.html +1 -1
- data/_sass/_main.scss +10 -0
- data/assets/css/theme.scss +4 -1
- data/assets/js/topbar.js +19 -0
- metadata +12 -67
- data/README.md +0 -32
- data/_includes/thumbnail.html +0 -19
- data/assets/js/timeline.js +0 -49
data/_includes/repo-card.html
CHANGED
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
<div
|
|
1
|
+
<div
|
|
2
|
+
class="github-component d-flex flex-column flex-justify-between height-full text-left border border-gray-light rounded-1 p-3">
|
|
2
3
|
<div>
|
|
3
4
|
<div class="d-flex flex-justify-between flex-items-start mb-1">
|
|
4
5
|
<h1 class="f4 lh-condensed my-1">
|
|
5
|
-
|
|
6
|
+
<span class="octicon octicon-repo-24"></span>
|
|
6
7
|
<a href="{{repository.html_url}}">{{ repository.name }}</a>
|
|
7
8
|
</h1>
|
|
8
9
|
</div>
|
|
9
10
|
<div class="text-gray mb-2 ws-normal">{{ repository.description }}</div>
|
|
10
11
|
{%- if repository.homepage != blank %}
|
|
11
12
|
<div class="mb-2 d-flex flex-items-center Link--secondary">
|
|
12
|
-
|
|
13
|
+
<div class="mr-2">
|
|
14
|
+
<span class="octicon octicon-link-16"></span>
|
|
15
|
+
</div>
|
|
13
16
|
<span class="flex-auto min-width-0 css-truncate css-truncate-target width-fit">
|
|
14
|
-
<a title="{{ repository.homepage }}" role="link" target="_blank" class="text-bold"
|
|
17
|
+
<a title="{{ repository.homepage }}" role="link" target="_blank" class="text-bold"
|
|
18
|
+
href="{{ repository.homepage }}">{{repository.homepage}}</a>
|
|
15
19
|
</span>
|
|
16
20
|
</div>
|
|
17
21
|
{%- endif %}
|
|
18
22
|
</div>
|
|
19
23
|
<div class="d-flex f6">
|
|
20
24
|
<p class="mb-0 mt-2 f6 color-fg-muted">
|
|
21
|
-
|
|
25
|
+
{%- if repository.language %}
|
|
22
26
|
<span class="d-inline-block mr-1">
|
|
23
27
|
<span class="repo-language-color" data-language="{{ repository.language }}"></span>
|
|
24
28
|
<span itemprop="programmingLanguage">{{ repository.language }}</span>
|
|
25
29
|
</span>
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
{%- endif %}
|
|
31
|
+
{%- if repository.stargazers_count %}
|
|
28
32
|
<a href="{{ repository.html_url }}/stargazers" class="mr-1 Link--muted">
|
|
29
|
-
|
|
33
|
+
<span class="octicon octicon-star-16 v-align-middle"></span> {{ repository.stargazers_count }}
|
|
30
34
|
</a>
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
{%- endif %}
|
|
36
|
+
{%- if repository.forks_count %}
|
|
33
37
|
<a href="{{ repository.html_url }}/network/members" class="mr-1 Link--muted">
|
|
34
|
-
|
|
38
|
+
<span class="octicon octicon-repo-forked-16 v-align-middle"></span> {{ repository.forks_count }}
|
|
35
39
|
</a>
|
|
36
|
-
|
|
40
|
+
{%- endif %}
|
|
37
41
|
</p>
|
|
38
42
|
</div>
|
|
39
43
|
</div>
|
|
@@ -6,24 +6,30 @@
|
|
|
6
6
|
</p>
|
|
7
7
|
{% endif %}
|
|
8
8
|
{%- if user.name %}
|
|
9
|
-
<div class="mb-3">
|
|
10
|
-
|
|
9
|
+
<div class="mb-3 d-inline-flex flex-items-baseline">
|
|
10
|
+
<div class="h2 mr-2 v-align-middle">
|
|
11
|
+
<span class="octicon octicon-mark-github-24"></span>
|
|
12
|
+
</div>
|
|
11
13
|
<a href="https://github.com/{{ user.login }}">
|
|
12
14
|
@{{ user.login }}
|
|
13
15
|
</a>
|
|
14
16
|
</div>
|
|
15
17
|
{%- endif %}
|
|
16
18
|
{%- if user.email %}
|
|
17
|
-
<div class="mb-3">
|
|
18
|
-
|
|
19
|
+
<div class="mb-3 d-inline-flex flex-items-baseline">
|
|
20
|
+
<div class="mr-2 v-align-middle" aria-label:email>
|
|
21
|
+
<span class="octicon octicon-mail-24"></span>
|
|
22
|
+
</div>
|
|
19
23
|
<a href="mailto:{{ user.email }}">
|
|
20
24
|
{{ user.email }}
|
|
21
25
|
</a>
|
|
22
26
|
</div>
|
|
23
27
|
{%- endif %}
|
|
24
28
|
{%- if user.location %}
|
|
25
|
-
<div class="mb-3">
|
|
26
|
-
|
|
29
|
+
<div class="mb-3 d-inline-flex flex-items-baseline">
|
|
30
|
+
<div class="mr-2 v-align-middle" aria-label:Location>
|
|
31
|
+
<span class="octicon octicon-location-24"></span>
|
|
32
|
+
</div>
|
|
27
33
|
{{ user.location }}
|
|
28
34
|
</div>
|
|
29
35
|
{%- endif %}
|
|
@@ -3,9 +3,10 @@ layout: page
|
|
|
3
3
|
title: Category
|
|
4
4
|
---
|
|
5
5
|
{%- assign categories = page.categories | default: site.categories %}
|
|
6
|
-
{%- assign
|
|
6
|
+
{%- assign category_path = page.category_path | default: site.category_path %}
|
|
7
|
+
{% if category_path %}{%- assign category_permalink = category_path | append: '/:cat' %}{% endif %}
|
|
7
8
|
{%- 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
|
|
9
|
+
{%- assign per_section = page.per_section | default: page.pagination.per_page %}
|
|
9
10
|
|
|
10
11
|
{% include post-gallery.html
|
|
11
12
|
collection=categories
|
|
@@ -12,7 +12,7 @@ subtype: Category
|
|
|
12
12
|
{% assign limit = posts.size %}
|
|
13
13
|
{% endif %}
|
|
14
14
|
|
|
15
|
-
<div class="d-flex flex-wrap gutter
|
|
15
|
+
<div class="d-flex flex-wrap gutter border-top">
|
|
16
16
|
<!-- Show post excerpts for the current page -->
|
|
17
17
|
{% for post in posts limit: limit %}
|
|
18
18
|
{%- if post.feature or post == site.categories[page.category][0] %}
|
data/_layouts/default.html
CHANGED
|
@@ -9,20 +9,21 @@
|
|
|
9
9
|
<body class="min-height-full d-flex flex-column">
|
|
10
10
|
{%- if style == 'topbar' %}
|
|
11
11
|
{% include header-topbar.html %}
|
|
12
|
-
<div class="d-
|
|
12
|
+
<div class="d-flex flex-1 flex-column">
|
|
13
13
|
{%- elsif style == 'appbar' %}
|
|
14
14
|
{% include header-appbar.html %}
|
|
15
|
-
<div class="d-
|
|
15
|
+
<div class="d-flex flex-1 flex-column">
|
|
16
16
|
{%- elsif style == 'stacked' %}
|
|
17
17
|
{% include header-stacked.html %}
|
|
18
|
-
<div class="d-
|
|
18
|
+
<div class="d-flex flex-1 flex-column">
|
|
19
19
|
{%- elsif style == 'sidebar' %}
|
|
20
20
|
<div class="d-lg-flex flex-1">
|
|
21
|
-
|
|
21
|
+
{% include header-sidebar.html %}
|
|
22
|
+
{% else %} {% comment %}<!-- Default to appbar -->{% endcomment %}
|
|
23
|
+
{% include header-appbar.html %}
|
|
24
|
+
<div class="d-flex flex-1 flex-column">
|
|
22
25
|
{%- endif %}
|
|
23
|
-
|
|
24
26
|
{{ content }}
|
|
25
|
-
|
|
26
27
|
</div>
|
|
27
28
|
|
|
28
29
|
{%- include footer.html %}
|
data/_layouts/docs.html
CHANGED
|
@@ -6,99 +6,144 @@ toc: true
|
|
|
6
6
|
{% comment %}
|
|
7
7
|
Docs utilize collections to display content
|
|
8
8
|
{% endcomment %}
|
|
9
|
-
{
|
|
9
|
+
{% comment %}
|
|
10
|
+
===================================
|
|
11
|
+
Get the collection
|
|
12
|
+
===================================
|
|
13
|
+
{% endcomment %}
|
|
14
|
+
{%- assign collection_name = page.collection %}
|
|
10
15
|
{%- assign docs = site[collection_name]%}
|
|
11
|
-
{%- assign
|
|
12
|
-
{%- assign
|
|
13
|
-
{%- assign
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
{%- assign default_collection_index = site.baseurl | append: "/" | append: page.collection | append: "/index.html" %}
|
|
17
|
+
{%- assign collection_index = page.index | default: default_collection_index %}
|
|
18
|
+
{%- assign collection_page = docs | where_exp: "item", "item.url == collection_index" | first %}
|
|
19
|
+
{% assign filtered_docs = site.docs | where_exp: "item", "item.url != collection_page.url" %}
|
|
20
|
+
{% comment %}
|
|
21
|
+
===================================
|
|
22
|
+
Group by category
|
|
23
|
+
===================================
|
|
24
|
+
{% endcomment %}
|
|
25
|
+
{% assign doc_categories = filtered_docs | group_by: "category" %}
|
|
26
|
+
{%- assign default_category = page.default_category | default: "" %}
|
|
27
|
+
{% comment %}
|
|
28
|
+
===================================
|
|
29
|
+
Set display info
|
|
30
|
+
===================================
|
|
31
|
+
{% endcomment %}
|
|
32
|
+
{%- assign h_height = 150 %}{% comment %}The height of the header{% endcomment %}
|
|
33
|
+
{%- assign c_height = 0 %}{% comment %}The height of the collection link {% endcomment %}
|
|
34
|
+
{%- assign s_height = 0 %}{% comment %} The height of the section header {% endcomment %}
|
|
35
|
+
{% comment %}
|
|
36
|
+
===================================
|
|
37
|
+
Set edit url
|
|
38
|
+
===================================
|
|
39
|
+
{% endcomment %}
|
|
40
|
+
{%- assign github_edit_url = "https://www.github.com/" | append: site.repository | append: "/blob/main" %}
|
|
41
|
+
{%- assign edit_url = page.edit_url | default: site.edit_url | default: github_edit_url %}
|
|
42
|
+
<div class="d-xl-flex">
|
|
43
|
+
<div class="Layout bgColor-default border-right d-none d-xl-block">
|
|
44
|
+
<div class="Layout-sidebar position-sticky"
|
|
45
|
+
style="top: var(--topbar-height, 150px); height: calc(100vh - var(--topbar-height, 150px));"
|
|
46
|
+
>
|
|
47
|
+
<nav>
|
|
48
|
+
{% if collection_page %}
|
|
49
|
+
{%- assign c_height = 38 %}{% comment %}The height of the collection link {% endcomment %}
|
|
50
|
+
{%- assign s_height = 55 %}{% comment %} The height of the section header {% endcomment %}
|
|
51
|
+
<div class="d-none px-4 pb-3 border-bottom d-xl-block"
|
|
52
|
+
style="height: calc({{c_height}}px + {{s_height}}px);">
|
|
53
|
+
<div class="pt-3">
|
|
54
|
+
|
|
55
|
+
<a class="f6 pl-2 pr-5 ml-n1 pb-1 color-fg-default"
|
|
56
|
+
href="{{ collection_page.url | relative_url }}">
|
|
57
|
+
<span class="octicon octicon-arrow-left-16 mr-1"></span>
|
|
58
|
+
{{ collection_name | capitalize }}
|
|
59
|
+
</a>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
<h2 class="pt-3">
|
|
63
|
+
<div class="d-block pl-1 mb-2 h3 color-fg-default no-underline">
|
|
64
|
+
{{ collection_page.title | capitalize }}
|
|
65
|
+
</div>
|
|
66
|
+
</h2>
|
|
67
|
+
</div>
|
|
27
68
|
{% endif %}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
69
|
+
<div class="d-none d-xl-block bg-primary overflow-y-auto flex-shrink-0 pb-3"
|
|
70
|
+
style="height: calc(100vh - var(--topbar-height, 150px) - {{c_height}}px - {{s_height}}px);">
|
|
71
|
+
<div class="pt-3">
|
|
72
|
+
<ul data-overflow-nav class="menu ActionList border-0 ml-3">
|
|
73
|
+
{%- for category in doc_categories %}
|
|
74
|
+
{%- assign category_name = category.name | default: default_category %}
|
|
75
|
+
<li class="h4">{{ category_name | capitalize }}
|
|
76
|
+
<ul>
|
|
77
|
+
{%- for nav_item in category.items %}
|
|
78
|
+
{% unless nav_item.url == category_page.url %}
|
|
79
|
+
<a href="{{ nav_item.url | relative_url }}" class="ActionListItem-label no-underline">
|
|
80
|
+
<li class="menu-item ActionList-item border-0" {% if page.url==nav_item.url %}
|
|
81
|
+
aria-current="page" {% endif %}>
|
|
82
|
+
{{ nav_item.title }}
|
|
83
|
+
</li>
|
|
84
|
+
</a>
|
|
85
|
+
{% endunless %}
|
|
86
|
+
{%- endfor %}
|
|
87
|
+
</ul>
|
|
42
88
|
</li>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</
|
|
46
|
-
</
|
|
47
|
-
|
|
48
|
-
</ul>
|
|
89
|
+
{%- endfor %}
|
|
90
|
+
</ul>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</nav>
|
|
49
94
|
</div>
|
|
50
95
|
</div>
|
|
51
|
-
<div class="flex-1">
|
|
52
|
-
<div class="
|
|
53
|
-
<div class="
|
|
54
|
-
|
|
55
|
-
{% include collection-menu.html collection=docs name=collection_name index=docs_index %}
|
|
56
|
-
</div>
|
|
57
|
-
{% include breadcrumbs.html %}
|
|
96
|
+
<div class="container-xl flex-1 p-responsive pb-6">
|
|
97
|
+
<div class="py-4 d-flex">
|
|
98
|
+
<div class="d-xl-none">
|
|
99
|
+
{% include collection-menu.html collection=docs name=collection_name index=collection_page %}
|
|
58
100
|
</div>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
101
|
+
{% include breadcrumbs.html %}
|
|
102
|
+
</div>
|
|
103
|
+
<div class="pb-5 p-responsive">
|
|
104
|
+
<h1 class="border-bottom-0">{{ page.title }}</h1>
|
|
105
|
+
<h3 class="f3 color-fg-muted pb-3">{{ page.description }}</h3>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="d-flex flex-wrap-reverse">
|
|
108
|
+
<div class="col-12 col-md-8 markdown-body p-responsive">
|
|
109
|
+
{{ content }}
|
|
66
110
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
111
|
+
<!-- Pagination links -->
|
|
112
|
+
<div class="paginate-container py-3">
|
|
113
|
+
<div role="navigation" aria-label="Pagination" class="d-inline-block pagination">
|
|
114
|
+
{% if page.previous.url %}
|
|
115
|
+
<a class="previous_page" rel="prev" href="{{ page.previous.url | relative_url }}"
|
|
116
|
+
aria-disabled="false">{{page.previous.title | truncate: 20 }}</a>
|
|
117
|
+
{% else %}
|
|
118
|
+
<span class="previous_page disabled" aria-disabled="true">Previous</span>
|
|
119
|
+
{% endif %}
|
|
76
120
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</div>
|
|
121
|
+
{% if page.next.url %}
|
|
122
|
+
<a class="next_page" rel="next" href="{{ page.next.url | relative_url }}"
|
|
123
|
+
aria-disabled="false">{{page.next.title | truncate: 20 }}</a>
|
|
124
|
+
{% else %}
|
|
125
|
+
<span class="next_page disabled" aria-disabled="true">Next</span>
|
|
126
|
+
{% endif %}
|
|
84
127
|
</div>
|
|
128
|
+
</div>
|
|
85
129
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
130
|
+
<!-- Edit link -->
|
|
131
|
+
{% if edit_url %}
|
|
132
|
+
<div class="doc-footer border-top my-8 py-5">
|
|
133
|
+
<a href="{{ edit_url }}/{{ page.path }}">
|
|
134
|
+
<span class="octicon octicon-pencil-16"></span>
|
|
135
|
+
Edit this page</a>
|
|
92
136
|
</div>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</
|
|
100
|
-
{
|
|
137
|
+
{% endif %}
|
|
138
|
+
</div>
|
|
139
|
+
<div class="col-12 col-md-4 markdown-body">
|
|
140
|
+
{% capture page_toc %}{{ content | toc_only }}{% endcapture %}
|
|
141
|
+
{% if page.toc and layout.toc and page_toc != content and page_toc contains "/li" %}
|
|
142
|
+
<div class="position-sticky top-12 ml-5 pb-5">
|
|
143
|
+
<h4 class="ml-3 mb-1">In this article</h4>
|
|
144
|
+
{{ page_toc }}
|
|
101
145
|
</div>
|
|
146
|
+
{% endif %}
|
|
102
147
|
</div>
|
|
103
148
|
</div>
|
|
104
149
|
</div>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
toc: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{% comment %} Ensure collection is defined {% endcomment %}
|
|
7
|
+
{% unless page.collection %}
|
|
8
|
+
<p><strong>Error:</strong> This layout requires a <code>collection</code> in front matter.</p>
|
|
9
|
+
{% assign filtered_docs = "" | split: "" %}
|
|
10
|
+
{% else %}
|
|
11
|
+
{% assign docs = site[page.collection] %}
|
|
12
|
+
{% assign filtered_docs = docs | where_exp: "item", "item.url != page.url" %}
|
|
13
|
+
|
|
14
|
+
{% comment %} Filter docs by category if provided {% endcomment %}
|
|
15
|
+
{% if page.category %}
|
|
16
|
+
{% assign filtered_docs = filtered_docs | where_exp: "doc", "doc.category == page.category" %}
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% endunless %}
|
|
19
|
+
|
|
20
|
+
{{ content }}
|
|
21
|
+
|
|
22
|
+
{% comment %} Group filtered docs by category {% endcomment %}
|
|
23
|
+
{% assign grouped_docs = filtered_docs | group_by: "category"%}
|
|
24
|
+
<div class="d-flex flex-wrap gutter">
|
|
25
|
+
{% for group in grouped_docs %}
|
|
26
|
+
{% assign category_name = group.name | default: page.default_category %}
|
|
27
|
+
{% assign docs_in_category = group.items %}
|
|
28
|
+
{% include category_index.html
|
|
29
|
+
category=category_name
|
|
30
|
+
pages=group.items %}
|
|
31
|
+
{% endfor %}
|
|
32
|
+
</div>
|
data/_layouts/page.html
CHANGED
|
@@ -6,17 +6,17 @@ layout: default
|
|
|
6
6
|
{%- if title == page.tag %}
|
|
7
7
|
{%- assign subtype = "tag" %}
|
|
8
8
|
{%- endif %}
|
|
9
|
-
<div class="Page flex-column flex-1 min-width-0">
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<div class="Page flex-column flex-1 min-width-0 py-6">
|
|
10
|
+
<div class="container-xl mx-auto p-responsive">
|
|
11
|
+
{% if title %}
|
|
12
12
|
{% if subtype %}
|
|
13
13
|
<p class="f4-mktg color-text-tertiary mb-n4">{{ subtype | downcase }}</p>
|
|
14
14
|
{% endif %}
|
|
15
15
|
<h1 class="h3-mktg mt-6 mb-4">{{ title | capitalize }}</h1>
|
|
16
|
+
{% endif %}
|
|
17
|
+
<div class="markdown-body">
|
|
18
|
+
{{ content }}
|
|
19
|
+
</div>
|
|
20
|
+
<div class="flex-1"></div>
|
|
16
21
|
</div>
|
|
17
|
-
{% endif %}
|
|
18
|
-
<div class="container-xl p-3 px-md-5 markdown-body mb-6">
|
|
19
|
-
{{ content }}
|
|
20
|
-
</div>
|
|
21
|
-
<div class="flex-1"></div>
|
|
22
22
|
</div>
|
data/_layouts/paginate.html
CHANGED
data/_layouts/post.html
CHANGED
|
@@ -7,17 +7,14 @@ layout: default
|
|
|
7
7
|
<div class="Blog flex-column flex-1 min-width-0">
|
|
8
8
|
<div class="BlogHeader position-relative border-top">
|
|
9
9
|
<div class="container-xl p-responsive">
|
|
10
|
-
<div class="
|
|
11
|
-
<div class="
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<div class="
|
|
16
|
-
<div class="
|
|
17
|
-
<
|
|
18
|
-
<img src="{{ image | relative_url }}" class="cover-image rounded-2"
|
|
19
|
-
alt="{{ page.title }}" />
|
|
20
|
-
</div>
|
|
10
|
+
<div class="col-12 offset-lg-1 col-lg-10 col-xl-7 mt-5 mt-lg-10 mb-6 mb-lg-8">
|
|
11
|
+
<div class="h3-mktg lh-condensed mb-3 color-header-default">{{ page.title }}</div>
|
|
12
|
+
<p class="f4-mktg color-header-default">{{ page.description }}</p>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="offset-lg-1 col-lg-10">
|
|
15
|
+
<div class="position-relative z-1">
|
|
16
|
+
<div class="image-container">
|
|
17
|
+
<img src="{{ image | relative_url }}" class="cover-image rounded-2" alt="{{ page.title }}" />
|
|
21
18
|
</div>
|
|
22
19
|
</div>
|
|
23
20
|
</div>
|
|
@@ -27,7 +24,8 @@ layout: default
|
|
|
27
24
|
</div>
|
|
28
25
|
<div class="pb-5">
|
|
29
26
|
<div class="container-xl mx-auto p-responsive">
|
|
30
|
-
|
|
27
|
+
<!-- Post metadata -->
|
|
28
|
+
<div class="pt-5">
|
|
31
29
|
<div class="col-12 offset-lg-1 col-lg-10">
|
|
32
30
|
<div class="text-mono f5-mktg color-fg-muted mb-12px">Author</div>
|
|
33
31
|
<div class="d-flex flex-nowrap pb-1 flex-items-start">
|
|
@@ -41,7 +39,7 @@ layout: default
|
|
|
41
39
|
</div>
|
|
42
40
|
</div>
|
|
43
41
|
<div class="mx-auto p-responsive pt-4 pt-md-7 pb-7 pb-md-9">
|
|
44
|
-
<div class="d-flex flex-wrap
|
|
42
|
+
<div class="d-flex flex-wrap">
|
|
45
43
|
<div class="col-12 offset-lg-1 col-lg-1">
|
|
46
44
|
<ul class="list-style-none d-flex flex-lg-column position-sticky top-12">
|
|
47
45
|
<li class="mr-4 mr-lg-0 mb-4">
|
|
@@ -101,22 +99,23 @@ layout: default
|
|
|
101
99
|
{%- else -%}
|
|
102
100
|
{%- capture tag_link %}{{site.tag_archive_path}}{{ tag | slugify }}{% endcapture %}
|
|
103
101
|
{%- endif -%}
|
|
104
|
-
<li class="d-inline-block mt-2 mb-0"><a href="{{ tag_link | relative_url }}">{{ tag
|
|
102
|
+
<li class="d-inline-block mt-2 mb-0"><a href="{{ tag_link | relative_url }}">{{ tag
|
|
103
|
+
}}</a></li>
|
|
105
104
|
{% endfor %}
|
|
106
105
|
</ul>
|
|
107
106
|
</div>
|
|
108
107
|
{%- endif %}
|
|
109
108
|
</div>
|
|
110
109
|
<div class="col-12 col-md-4 col-lg-3 markdown-body">
|
|
111
|
-
<div class="d-none d-md-block position-sticky top-12">
|
|
112
|
-
{
|
|
113
|
-
{
|
|
110
|
+
<div class="d-none d-md-block position-sticky top-12 ml-5">
|
|
111
|
+
{% capture page_toc %}{{ content | toc_only }}{% endcapture %}
|
|
112
|
+
{% if page.toc and page_toc != content %}
|
|
114
113
|
<div class="mb-8 table-of-contents ">
|
|
115
114
|
<h2 class="h6-mktg pt-1">
|
|
116
115
|
Table of Contents
|
|
117
116
|
</h2>
|
|
118
117
|
<div id="table-of-contents">
|
|
119
|
-
{{
|
|
118
|
+
{{ page_toc }}
|
|
120
119
|
</div>
|
|
121
120
|
</div>
|
|
122
121
|
{%- endif %}
|
|
@@ -125,7 +124,7 @@ layout: default
|
|
|
125
124
|
</div>
|
|
126
125
|
</div>
|
|
127
126
|
</div>
|
|
128
|
-
<div class="Related container-xl mx-auto p-responsive
|
|
127
|
+
<div class="Related container-xl mx-auto p-responsive">
|
|
129
128
|
{% include related.html %}
|
|
130
129
|
</div>
|
|
131
130
|
</div>
|
data/_layouts/profile.html
CHANGED
|
@@ -8,41 +8,41 @@ layout: page
|
|
|
8
8
|
{%- assign links = page.links | default: site.links | default: nill %}
|
|
9
9
|
{%- assign collection = page.collection | default: site.posts %}
|
|
10
10
|
{%- assign posts_limit = page.posts_limit | default: site.posts_limit | default: site.paginate %}
|
|
11
|
-
{% assign paginate_path = page.pagination.permalink | default: site.pagination.permalink | default: site.paginate_path
|
|
11
|
+
{% assign paginate_path = page.pagination.permalink | default: site.pagination.permalink | default: site.paginate_path
|
|
12
|
+
%}
|
|
12
13
|
{% assign paginate_first_page_path = paginate_path | replace: 'page:num', '' %}
|
|
13
|
-
{% assign first_page_path = page.first_page_path | default: paginator.first_page_path | default:
|
|
14
|
+
{% assign first_page_path = page.first_page_path | default: paginator.first_page_path | default:
|
|
15
|
+
paginate_first_page_path %}
|
|
14
16
|
|
|
15
|
-
<div class="Profile d-lg-flex flex-justify-center
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
<div class="Profile d-lg-flex flex-justify-center">
|
|
18
|
+
{%- if style != "sidebar" and style != "stacked" %}
|
|
19
|
+
<div class="col-lg-4 border-gray-light px-6 pb-6 text-center">
|
|
20
|
+
{%- include masthead.html %}
|
|
21
|
+
{%- include social.html %}
|
|
22
|
+
</div>
|
|
23
|
+
{%- endif %}
|
|
24
|
+
|
|
25
|
+
<div class="col-lg-8 color-bg-default">
|
|
26
|
+
{%- if content != blank %}
|
|
27
|
+
<div class="mb-8">
|
|
28
|
+
{{ content }}
|
|
20
29
|
</div>
|
|
21
30
|
{%- endif %}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{%- include links.html links=links %}
|
|
32
|
-
{%- endif %}
|
|
33
|
-
{%- unless collection.size == 0 %}
|
|
34
|
-
<div class="container-xl mb-8">
|
|
35
|
-
<div class="pb-3">
|
|
36
|
-
<h2>Latest posts</h2>
|
|
37
|
-
</div>
|
|
38
|
-
{%- include post-timeline.html collection=collection limit=posts_limit index=first_page_path %}
|
|
39
|
-
</div>
|
|
40
|
-
{%- endunless %}
|
|
41
|
-
|
|
42
|
-
{%- if site.repositories %}
|
|
43
|
-
<h2 class="mb-3">Repositories</h2>
|
|
44
|
-
{%- include repositories.html %}
|
|
45
|
-
{%- endif %}
|
|
46
|
-
</div>
|
|
31
|
+
{%- if links %}
|
|
32
|
+
{%- include links.html links=links %}
|
|
33
|
+
{%- endif %}
|
|
34
|
+
{%- if collection.size > 0 %}
|
|
35
|
+
<div class="mb-8">
|
|
36
|
+
<div class="pb-3">
|
|
37
|
+
<h2>Latest posts</h2>
|
|
38
|
+
</div>
|
|
39
|
+
{%- include post-timeline.html collection=collection limit=posts_limit index=first_page_path %}
|
|
47
40
|
</div>
|
|
41
|
+
{%- endif %}
|
|
42
|
+
|
|
43
|
+
{%- if site.repositories and site.github.public_repositories.size > 0 %}
|
|
44
|
+
<h2 class="mb-3">Repositories</h2>
|
|
45
|
+
{%- include repositories.html %}
|
|
46
|
+
{%- endif %}
|
|
47
|
+
</div>
|
|
48
48
|
</div>
|
data/_layouts/tag_index.html
CHANGED
|
@@ -3,9 +3,10 @@ title: Tags
|
|
|
3
3
|
layout: page
|
|
4
4
|
---
|
|
5
5
|
{%- assign tags = page.tags | default: site.tags %}
|
|
6
|
-
{%- assign
|
|
6
|
+
{%- assign tag_path = page.tag_path | default: site.tag_page_dir %}
|
|
7
|
+
{%- if tag_path %}{%- assign tag_permalink = tag_path | append: '/:tag' %}{% endif %}
|
|
7
8
|
{%- assign tag_permalink = page.pagination.permalink | default: site.autopages.tags.permalink | default: tag_permalink %}
|
|
8
|
-
{%- assign per_section = page.per_section | default:
|
|
9
|
+
{%- assign per_section = page.per_section | default: page.pagination.per_page %}
|
|
9
10
|
|
|
10
11
|
{% include post-index.html
|
|
11
12
|
collection=tags
|
data/_layouts/tags.html
CHANGED