Skip to content

Commit fe90d2d

Browse files
committed
fix: index; added repobeats to README
1 parent 9130cb6 commit fe90d2d

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,9 @@ The footer message can be customized through your site's configuration file with
207207

208208
This will override the theme's default footer message while maintaining upgradeability, as your configuration takes precedence over the theme's default configuration.
209209

210+
---
211+
212+
<div align="center">
213+
<img src="https://repobeats.axiom.co/api/embed/00d9b6535bf8f99efb9d450cc1600784b0f60bbd.svg" alt="Repobeats analytics image" />
214+
</div>
215+

config/_default/params.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ math = true
5656
# - Contribution calendar - activity tracking based on post creation/modification dates
5757
# - Content filtering throughout the theme (e.g., recent posts, related content)
5858
# Common values: ["posts", "docs", "blog", "articles", "projects"]
59-
mainSections = ["posts", "portfolio", "docs", "blog", "content"] # Add more sections as needed
59+
mainSections = ["posts", "portfolio", "docs", "articles", "projects"] # Add more sections as needed
6060
category = 'categories'
6161
tag = 'tags'
6262

layouts/index.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
{{- /* filepath: /home/gespitia/projects/PKB-theme/layouts/index.json */ -}}
2-
{{- $mainSections := .Site.Params.taxonomies.mainSections | default (slice "posts" "docs" "blog") -}}
1+
{{- $mainSections := .Site.Params.taxonomies.mainSections | default (slice "posts" "docs" "projects") -}}
32
{{- $pages := where .Site.RegularPages "Type" "in" $mainSections -}}
43
{{- $searchData := slice -}}
4+
55
{{- range $pages -}}
6-
{{- if not .Params.private -}}
6+
{{- if and (not .Params.private) (not .Draft) (not .Expired) -}}
77
{{- $item := dict
88
"id" (.File.UniqueID | default .RelPermalink)
99
"title" .Title
10-
"content" (.Plain | htmlUnescape | plainify | truncate 1000)
10+
"content" (.Plain | htmlUnescape | plainify | truncate 1500)
1111
"summary" (.Summary | htmlUnescape | plainify)
12-
"url" .RelPermalink
12+
"url" .Permalink
1313
"date" (.Date.Format "2006-01-02")
1414
"section" .Section
1515
"type" .Type
@@ -19,6 +19,7 @@
1919
{{- $searchData = $searchData | append $item -}}
2020
{{- end -}}
2121
{{- end -}}
22+
2223
{{- if eq (len $searchData) 0 -}}
2324
{{- $debugItem := dict
2425
"id" "debug-info"
@@ -34,4 +35,5 @@
3435
-}}
3536
{{- $searchData = $searchData | append $debugItem -}}
3637
{{- end -}}
37-
{{- $searchData | jsonify -}}
38+
39+
{{- $searchData | jsonify -}}

0 commit comments

Comments
 (0)