Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/boombox.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- [ ] `tags` — array of tags from `content/tags.yaml` (optional)

#### Naming & structure
- [ ] Folder placed in `content/boombox/<slug>/`
- [ ] Folder placed in `content/_boombox/<slug>/`
- [ ] Slug is lowercase alphanumeric with hyphens (e.g. `chill-vibes`)
- [ ] No file exceeds 50 MB

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/hornsound.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- [ ] `tags` — array of tags from `content/tags.yaml` (optional)

#### Naming & structure
- [ ] Folder placed in `content/hornsounds/<slug>/`
- [ ] Folder placed in `content/_hornsounds/<slug>/`
- [ ] Slug is lowercase alphanumeric with hyphens (e.g. `la-cucaracha`)
- [ ] No file exceeds 50 MB

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/lightshow.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- [ ] `tags` — array of tags from `content/tags.yaml` (optional)

#### Naming & structure
- [ ] Folder placed in `content/lightshows/<slug>/`
- [ ] Folder placed in `content/_lightshows/<slug>/`
- [ ] Slug is lowercase alphanumeric with hyphens (e.g. `holiday-special`)
- [ ] No file exceeds 50 MB

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/locksound.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- [ ] `tags` — array of tags from `content/tags.yaml` (optional)

#### Naming & structure
- [ ] Folder placed in `content/locksounds/<slug>/`
- [ ] Folder placed in `content/_locksounds/<slug>/`
- [ ] Slug is lowercase alphanumeric with hyphens (e.g. `r2d2-beep`)
- [ ] No file exceeds 50 MB

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/wrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- [ ] `tags` — array of tags from `content/tags.yaml` (optional)

#### Naming & structure
- [ ] Folder placed in `content/wraps/<slug>/`
- [ ] Folder placed in `content/_wraps/<slug>/`
- [ ] Slug is lowercase alphanumeric with hyphens (e.g. `matte-black`)
- [ ] No file exceeds 50 MB

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function buildCatalog(): CatalogItem[] {
const items: CatalogItem[] = [];

for (const category of CATEGORIES) {
const categoryDir = path.join(CONTENT_DIR, category);
const categoryDir = path.join(CONTENT_DIR, `_${category}`);
const slugs = listItemDirs(categoryDir);

for (const slug of slugs) {
Expand Down
13 changes: 6 additions & 7 deletions search.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
layout: null
---
[
{% assign content_pages = "" | split: "" %}
{% assign categories = "lightshows,locksounds,boombox,wraps,hornsounds" | split: "," %}
{% for pg in site.pages %}
{% for cat in categories %}
{% assign cat_prefix = "content/" | append: cat | append: "/" %}
{% if pg.path contains cat_prefix and pg.title %}
{% assign content_pages = content_pages | push: pg %}
{% assign content_pages = "" | split: "" %}
{% for cat in categories %}
{% for item in site[cat] %}
{% if item.title %}
{% assign content_pages = content_pages | push: item %}
{% endif %}
{% endfor %}
{% endfor %}
Expand All @@ -18,7 +17,7 @@ layout: null
"description": {{ item.description | default: "" | jsonify }},
"tags": {{ item.tags | default: "" | jsonify }},
"author": {{ item.author | default: "" | jsonify }},
"category": {% assign found_cat = "" %}{% for cat in categories %}{% assign cat_prefix = "content/" | append: cat | append: "/" %}{% if item.path contains cat_prefix %}{% assign found_cat = cat %}{% endif %}{% endfor %}{{ found_cat | jsonify }},
"category": {{ item.collection | jsonify }},
"url": "{{ item.url | relative_url }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
Expand Down
Loading