Skip to content

Commit 40af67a

Browse files
author
Mayer László
committed
Testing paginator
1 parent ea4c523 commit 40af67a

11 files changed

Lines changed: 66 additions & 39 deletions

File tree

_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ analytics:
1616
site_fqdn: 'your.site.fqdn'
1717
script_source: 'https://plausible.io/js/script.js'
1818

19+
defaults:
20+
-
21+
scope:
22+
path: "/project/"
23+
type: "posts"
24+
values:
25+
identifier: "project"
26+
1927
# Styling
2028
sass:
2129
sass_dir: _sass

_includes/cards.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<ul class="horizontal-list">
2+
{% for item in include.collection %}
3+
4+
<li class="card">
5+
<a href="{{ item.url }}">
6+
<span class="header">
7+
{{ item.title }}
8+
9+
{% if item.highlight %}
10+
<mark>{{ item.highlight }}</mark>
11+
{% endif %}
12+
13+
</span>
14+
15+
<hr />
16+
17+
{% if item.desc != false %}
18+
<p class="body">
19+
{{ item.desc }}
20+
</p>
21+
{% endif %}
22+
</a>
23+
</li>
24+
25+
{% endfor %}
26+
</ul>

_sass/reset.scss

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,36 @@
11
/* https://www.joshwcomeau.com/css/custom-css-reset/ */
22

3-
/*
4-
1. Use a more-intuitive box-sizing model.
5-
*/
6-
*, *::before, *::after {
3+
*, *::before, *::after { /* Use a more-intuitive box-sizing model. */
74
box-sizing: border-box;
85
}
9-
/*
10-
2. Remove default margin
11-
*/
12-
* {
6+
7+
* { /* Remove default margin */
138
margin: 0;
149
}
15-
/*
16-
3. Allow percentage-based heights in the application
17-
*/
18-
html, body {
10+
11+
html, body { /* Allow percentage-based heights in the application */
1912
height: 100%;
2013
}
21-
/*
22-
Typographic tweaks!
23-
4. Add accessible line-height
24-
5. Improve text rendering
25-
*/
26-
body {
14+
15+
body { /* Add accessible line-height, improve text rendering */
2716
line-height: 1.5;
2817
-webkit-font-smoothing: antialiased;
2918
}
30-
/*
31-
6. Improve media defaults
32-
*/
33-
img, picture, video, canvas, svg {
19+
20+
img, picture, video, canvas, svg { /* Improve media defaults */
3421
display: block;
3522
max-width: 100%;
3623
}
37-
/*
38-
7. Remove built-in form typography styles
39-
*/
40-
input, button, textarea, select {
24+
25+
input, button, textarea, select { /* Remove built-in form typography styles */
4126
font: inherit;
4227
}
43-
/*
44-
8. Avoid text overflows
45-
*/
46-
p, h1, h2, h3, h4, h5, h6 {
28+
29+
p, h1, h2, h3, h4, h5, h6 { /* Avoid text overflows */
4730
overflow-wrap: break-word;
4831
}
49-
/*
50-
9. Create a root stacking context
51-
*/
52-
#root, #__next {
32+
33+
#root, #__next { /* Create a root stacking context */
5334
isolation: isolate;
5435
}
5536

article/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
layout: default
3-
title: LightSpeed Categories
3+
title: Lasz :: article[]
44
---
55

66
<h2>Categories</h2>
77
{% for category in site.categories %}
88
<h3 class="category-header"><b>{{category | first}}</b></h3>
9-
{% for post in category[1] limit:3 %}
9+
{% for post in category[1] limit:0 %}
1010
<span class="post-item">{{ post.date | date: '%Y-%m-%d' }} >> <a href="{{ post.url }}">{{ post.title }}</a></span>
1111
{% endfor %}
1212
<div class="category-all-nav">

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Mayer - Home
3+
title: Lasz
44
---
55

66
## About

project/_posts/test1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: article
3+
title: Sample to Create Pagination
4+
---
5+
6+
Test 1

project/_posts/test2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: article
3+
title: Sample to Create Pagination
4+
---
5+
6+
Test 2!!!!

project/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
layout: default
33
title: 'Lasz :: project[]'
4-
pagination:
5-
enabled: true
4+
65
---
76

87
<h2>Projects</h2>
8+
{% include cards.html paginator.projects %}
99

1010
<h2>Posts</h2>
1111
{% for article in paginator.posts %}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)