jekyll-theme-centos 2.2.0.beta.8 → 2.2.0.beta.10

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: a9f7090b38f57d36ab7f8d8309259265734554f72873c08a3df49dc62b52b1d3
4
- data.tar.gz: 6aca1fc21f225c1fbfdc4867465562decfcaca16448f616e42232f1b53764528
3
+ metadata.gz: e2f59ee3cd43267b2024140651cc5dfc73b835713eb0bd4906dd8fc2573f5f56
4
+ data.tar.gz: 1f1b6d43fa58ff3197cab5dc875bf150e2bf977d002e19140a9f87716cb12583
5
5
  SHA512:
6
- metadata.gz: 16fe7fd437f4fe527d5804cdf9def617343ea6c65dd9431ab898e73d0f4ad857efbdec05dc212bff4a041b88cdd5fe0d5186c93fd52ec08df5eae9def550e496
7
- data.tar.gz: d785aa95939dc531592bfd23e94a70fb9ddf1e99fea422ed51b1b161b568f96b952aa55afd56d26e42a133475153cd0f8e9def8d3b3e7bea1558fb0fb1ab8d72
6
+ metadata.gz: 190ca85d998032d35013b26739c87bff045ae11fc84acb624831b5ced9ccf7e4de50348a729f03998d373316414874729af57b9d34f2c0c41910e3d08c4b4f31
7
+ data.tar.gz: 2c199dc0b3ad7ff325c84a29ca9f47e180b1fbe0d1e426c4e3a593963349329c958ed294ce291b6b0f162dad3223592649d8e3af7d74b827cf063f0717c0956e
@@ -6,7 +6,7 @@
6
6
  {% if forloop.last %}
7
7
  <li class="breadcrumb-item active">{{ page.title }}</li>
8
8
  {% else %}
9
- <li class="breadcrumb-item"><a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
9
+ <li class="breadcrumb-item"><a href="{{ site.baseurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
10
10
  {% endif %}
11
11
  {% endfor %}
12
12
  </ol>
@@ -1,27 +1,25 @@
1
- {% assign username = page.username %}
2
- {% assign person = site.data.centos.people | where: "username", username %}
3
-
4
- {% for item in person %}
5
- <div class="container py-5 text-center border-top"{% if item.about.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
1
+ {% if page.about.section.visible == true %}
2
+ <div class="container py-5 text-center border-top"{% if page.about.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
6
3
 
7
4
  <div class="row">
8
5
  <div class="col">
9
- {% if item.about.section.icon %}<div class="display-6">{{ item.about.section.icon }}</div>{% endif %}
10
- {% if item.about.section.name %}<div class="display-6">{{ item.about.section.name }}</div>{% endif %}
11
- {% if item.about.section.preamble %}<p>{{ item.about.section.preamble }}</p>{% endif %}
6
+ {% if page.about.section.icon %}<div class="display-6">{{ page.about.section.icon }}</div>{% endif %}
7
+ {% if page.about.section.name %}<div class="display-6">{{ page.about.section.name }}</div>{% endif %}
8
+ {% if page.about.section.preamble %}<p>{{ page.about.section.preamble }}</p>{% endif %}
12
9
  </div>
13
10
  </div>
14
11
 
15
- {% if item.about.content.size > 0 %}
16
12
  <div class="row mt-3">
17
13
  <div class="col">
18
- {% for p in item.about.content %}
14
+ {% if page.about.content.size > 0 %}
15
+ {% for p in page.about.content %}
19
16
  <p>{{ p }}</p>
20
17
  {% endfor %}
18
+ {% else %}
19
+ <div class="alert alert-light border shadow" role="alert">Nothing posted here, yet.</div>
20
+ {% endif %}
21
21
  </div>
22
22
  </div>
23
- {% endif %}
24
23
 
25
24
  </div>
26
- {% endfor %}
27
-
25
+ {% endif %}
@@ -1,25 +1,25 @@
1
1
  {% assign username = page.username %}
2
- {% assign entries = site.posts | where: "username", username %}
3
- {% assign person = site.data.centos.people | where: "username", username %}
2
+ {% assign entries = site.posts | where: "author", username %}
3
+ {% assign limit = page.posts.section.limit %}
4
4
 
5
- {% if entries.size > 0 %}
6
- {% for item in person %}
7
- <div class="container py-5 text-center border-top"{% if item.posts.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
5
+ {% if page.posts.section.visible == true %}
6
+ <div class="container py-5 text-center border-top"{% if page.posts.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
8
7
 
9
8
  <div class="row">
10
9
  <div class="col">
11
- {% if item.posts.section.icon %}<div class="display-6">{{ item.posts.section.icon }}</div>{% endif %}
12
- {% if item.posts.section.name %}<div class="display-6">{{ item.posts.section.name }}</div>{% endif %}
13
- {% if item.posts.section.preamble %}<p>{{ item.posts.section.preamble }}</p>{% endif %}
10
+ {% if page.posts.section.icon %}<div class="display-6">{{ page.posts.section.icon }}</div>{% endif %}
11
+ {% if page.posts.section.name %}<div class="display-6">{{ page.posts.section.name }}</div>{% endif %}
12
+ {% if page.posts.section.preamble %}<p>{{ page.posts.section.preamble }}</p>{% endif %}
14
13
  </div>
15
14
  </div>
16
15
 
17
- <div class="row text-start">
16
+ <div class="row">
18
17
  <div class="col">
19
- <div class="list-group shadow">
20
- {% for i in entries limit:5 %}
18
+ {% if entries.size > 0 %}
19
+ <div class="list-group shadow text-start">
20
+ {% for i in entries limit: limit %}
21
21
  {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
22
- <a href="{{ i.link }}" class="list-group-item list-group-item-action">
22
+ <a href="{{ site.baseurl }}{{ i.url }}" class="list-group-item list-group-item-action">
23
23
  <div class="d-flex gap-2w-100 justify-content-between">
24
24
  <h5 class="pt-0 mt-1 mb-1 fw-bold text-primary">{{ i.title }}</h5>
25
25
  <small class="text-muted">{{ i.date | date: date_format }}</small>
@@ -28,9 +28,11 @@
28
28
  </a>
29
29
  {% endfor %}
30
30
  </div>
31
+ {% else %}
32
+ <div class="alert alert-light border shadow" role="alert">Nothing posted here, yet.</div>
33
+ {% endif %}
31
34
  </div>
32
35
  </div>
33
36
 
34
37
  </div>
35
- {% endfor %}
36
38
  {% endif %}
@@ -1,26 +1,28 @@
1
- {% assign username = page.username %}
2
- {% assign person = site.data.centos.people | where: "username", username %}
3
-
4
- {% for item in person %}
5
- {% if item.projects.content.size > 0 %}
6
- <div class="container py-5 text-center border-top"{% if item.projects.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
7
-
1
+ {% if page.projects.section.visible == true %}
2
+ <div class="container py-5 text-center border-top"{% if page.projects.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
8
3
  <div class="row">
9
4
  <div class="col">
10
- {% if item.projects.section.icon %}<div class="display-6">{{ item.projects.section.icon }}</div>{% endif %}
11
- {% if item.projects.section.name %}<div class="display-6">{{ item.projects.section.name }}</div>{% endif %}
12
- {% if item.projects.section.preamble %}<p>{{ item.projects.section.preamble }}</p>{% endif %}
5
+ {% if page.projects.section.icon %}<div class="display-6">{{ page.projects.section.icon }}</div>{% endif %}
6
+ {% if page.projects.section.name %}<div class="display-6">{{ page.projects.section.name }}</div>{% endif %}
7
+ {% if page.projects.section.preamble %}<p>{{ page.projects.section.preamble }}</p>{% endif %}
13
8
  </div>
14
9
  </div>
15
- <div class="row">
16
- {% for project in item.projects.content %}
17
- <div class="col-sm-6 py-5{% cycle ' border-end', '' %}">
18
- <div class="display-6 fw-bold"><a href="{{ project.link }}">{{ project.name }}</a></div>
19
- <div class="lead">{{ project.description }}</div>
10
+
11
+ {% if page.projects.content.size > 0 %}
12
+ <div class="row mt-3">
13
+ {% for project in page.projects.content %}
14
+ <div class="col-sm-6{% cycle ' border-end', '' %}">
15
+ <div class="display-6 pt-3 fw-bold"><a href="{{ project.link }}">{{ project.name }}</a></div>
16
+ <div class="lead pb-3">{{ project.description }}</div>
20
17
  </div>
21
18
  {% endfor%}
22
19
  </div>
20
+ {% else %}
21
+ <div class="row mt-3">
22
+ <div class="col">
23
+ <div class="alert alert-light border shadow" role="alert">Nothing posted here, yet.</div>
24
+ </div>
25
+ </div>
26
+ {% endif %}
23
27
  </div>
24
-
25
28
  {% endif %}
26
- {% endfor%}
@@ -1,30 +1,29 @@
1
- {% assign username = page.username %}
2
- {% assign person = site.data.centos.people | where: "username", username %}
3
-
4
- {% for item in person %}
5
- <div class="container py-5 text-center border-top"{% if item.pubkeys.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
1
+ {% if page.pubkeys.section.visible == true %}
2
+ <div class="container py-5 text-center border-top"{% if page.pubkeys.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
6
3
 
7
4
  <div class="row">
8
5
  <div class="col">
9
- {% if item.pubkeys.section.icon %}<div class="display-6">{{ item.pubkeys.section.icon }}</div>{% endif %}
10
- {% if item.pubkeys.section.name %}<div class="display-6">{{ item.pubkeys.section.name }}</div>{% endif %}
11
- {% if item.pubkeys.section.preamble %}<p>{{ item.pubkeys.section.preamble }}</p>{% endif %}
6
+ {% if page.pubkeys.section.icon %}<div class="display-6">{{ page.pubkeys.section.icon }}</div>{% endif %}
7
+ {% if page.pubkeys.section.name %}<div class="display-6">{{ page.pubkeys.section.name }}</div>{% endif %}
8
+ {% if page.pubkeys.section.preamble %}<p>{{ page.pubkeys.section.preamble }}</p>{% endif %}
12
9
  </div>
13
10
  </div>
14
11
 
12
+ {% if page.pubkeys.content.size > 0 %}
15
13
  <div class="row">
16
- {% for pubkey in item.pubkeys.content %}
14
+ {% for pubkey in page.pubkeys.content %}
17
15
  <div class="col-sm-6 px-5">
18
16
  <p class="fw-bold">{{ pubkey.name }}</p>
19
-
20
17
  <div class="input-group">
21
18
  <textarea id="{{ pubkey.name }}-key-{{ forloop.index }}" class="form-control font-monospace" placeholder="User's key" aria-label="User's key" aria-describedby="{{ pubkey.name }}-button-{{ forloop.index }}" readonly rows="5">{{ pubkey.content }}</textarea>
22
19
  <button id="{{ pubkey.name }}-button-{{ forloop.index }}" class="btn btn-clipboard btn-outline-primary" type="button" data-clipboard-target="#{{ pubkey.name }}-key-{{ forloop.index }}" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard"><i class="fa-solid fa-clipboard"></i></button>
23
20
  </div>
24
-
25
21
  </div>
26
22
  {% endfor %}
27
23
  </div>
24
+ {% else %}
25
+ <div class="alert alert-light border shadow" role="alert">Nothing posted here, yet.</div>
26
+ {% endif %}
28
27
 
29
28
  </div>
30
- {% endfor%}
29
+ {% endif %}
@@ -1,22 +1,25 @@
1
- {% assign username = page.username %}
2
- {% assign person = site.data.centos.people | where: "username", username %}
3
-
4
- {% for item in person %}
5
- <div class="container py-5 text-center border-top"{% if item.support.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
1
+ {% if page.support.section.visible == true %}
2
+ <div class="container py-5 text-center border-top"{% if page.support.section.highlight == true %} style="background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(248,249,250,0) 100%);"{% endif %}>
6
3
 
7
4
  <div class="row">
8
5
  <div class="col">
9
- {% if item.support.section.icon %}<div class="display-6">{{ item.support.section.icon }}</div>{% endif %}
10
- {% if item.support.section.name %}<div class="display-6">{{ item.support.section.name }}</div>{% endif %}
11
- {% if item.support.section.preamble %}<p>{{ item.support.section.preamble }}</p>{% endif %}
6
+ {% if page.support.section.icon %}<div class="display-6">{{ page.support.section.icon }}</div>{% endif %}
7
+ {% if page.support.section.name %}<div class="display-6">{{ page.support.section.name }}</div>{% endif %}
8
+ {% if page.support.section.preamble %}<p>{{ page.support.section.preamble }}</p>{% endif %}
12
9
  </div>
13
10
  </div>
14
11
 
12
+ {% if page.support.content.size > 0 %}
15
13
  <div class="row">
14
+ {% for support in page.support.content %}
16
15
  <div class="col">
17
- {{ item.support.content }}
16
+ {{ support }}
18
17
  </div>
18
+ {% endfor %}
19
19
  </div>
20
+ {% else %}
21
+ <div class="alert alert-light border shadow" role="alert">Nothing posted here, yet.</div>
22
+ {% endif %}
20
23
 
21
24
  </div>
22
- {% endfor %}
25
+ {% endif %}
@@ -1,6 +1,6 @@
1
1
  /* CentOS Links
2
2
  */
3
- main {
3
+ main, footer {
4
4
  a {
5
5
  text-decoration: none;
6
6
  }
data/people.md CHANGED
@@ -1,8 +1,63 @@
1
1
  ---
2
+ layout: people
2
3
 
3
4
  username: username
4
5
  fullname: username
5
- layout: people
6
+ about:
7
+ section:
8
+ icon: '<i class="fa-solid fa-fingerprint"></i>'
9
+ name: "About Me"
10
+ preamble: ""
11
+ highlight: false
12
+ visible: true
13
+ content:
14
+ - "..."
15
+ projects:
16
+ section:
17
+ icon: '<i class="fa-solid fa-toolbox"></i>'
18
+ name: "Projects"
19
+ preamble: "Opensource projects I work on my free time."
20
+ highlight: true
21
+ visible: true
22
+ content:
23
+ - name: Project1
24
+ link: ...
25
+ description: ...
26
+ - name: Project2
27
+ link: ...
28
+ description: ...
29
+ posts:
30
+ section:
31
+ icon: '<i class="fa-solid fa-newspaper"></i>'
32
+ name: Posts
33
+ preamble: "Random ideas about opensource and the projects I use to work on."
34
+ highlight: true
35
+ visible: true
36
+ limit: 5
37
+ pubkeys:
38
+ section:
39
+ icon: '<i class="fa-solid fa-key"></i>'
40
+ name: "Public Keys"
41
+ preamble: "This is what you need to validate the identity of my signed messages, and grant me access to your servers."
42
+ highlight: true
43
+ visible: true
44
+ content:
45
+ - name: GPG
46
+ content: |
47
+ ...
48
+ - name: SSH
49
+ content: |
50
+ ...
51
+ support:
52
+ section:
53
+ icon: '<i class="fa-solid fa-circle-dollar-to-slot"></i>'
54
+ name: Support
55
+ preamble: |
56
+ If you value my work and want to support me, you can buy me a cup of coffee ☕😎
57
+ highlight: false
58
+ visible: true
59
+ content:
60
+ - "--- Put your Liberapay code here. ---"
6
61
 
7
62
  ---
8
63
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.beta.8
4
+ version: 2.2.0.beta.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Release
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-31 00:00:00.000000000 Z
11
+ date: 2023-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll