• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scriptype / writ-cms / 14481949487
38%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2025 12:23AM UTC
Jobs 9
Files 108
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Apr 2025 12:23AM UTC coverage: 75.488% (-0.03%) from 75.517%
14481949487

push

github

scriptype
[CM2] A collection can render at the root if empty slug

If 'slug:' is added to its frontMatter, its permalink and outputPath will collapse into those of its parent context.

When the parent permalink is just '/', child permalinks would break. So, a simple makePermalink helper is used to encapsulate dealing with this case. This helper is used in all models, with the idea of turning any page into a homepage by using the slug: technique. But this is not implemented in models beyond collection, as it'd take more (and ugly) work.

If turning any entry or index page into a homepage using the slug technique worked easily, it could work behind the scenes of a 'homepage' frontMatter property. But maybe later.

Anyway, rendering a collection in the root is especially helpful for sites with just one collection. The url scheme will work just like it did with CM1.

483 of 756 branches covered (63.89%)

Branch coverage included in aggregate %.

16 of 21 new or added lines in 9 files covered. (76.19%)

2264 of 2883 relevant lines covered (78.53%)

325.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
86.21
-5.1% src/compiler/contentModel2/helpers.js
1
38.89
3.59% src/compiler/contentModel2/models/asset.js
1
56.41
0.0% src/compiler/contentModel2/models/subpage.js
2
43.75
-0.39% src/compiler/contentModel2/index.js
Jobs
ID Job ID Ran Files Coverage
1 14481949487.1 16 Apr 2025 12:23AM UTC 108
75.46
GitHub Action Run
2 14481949487.2 16 Apr 2025 12:23AM UTC 108
75.46
GitHub Action Run
3 14481949487.3 16 Apr 2025 12:23AM UTC 108
75.46
GitHub Action Run
4 14481949487.4 16 Apr 2025 12:23AM UTC 108
75.46
GitHub Action Run
5 14481949487.5 16 Apr 2025 12:23AM UTC 108
75.46
GitHub Action Run
6 14481949487.6 16 Apr 2025 12:23AM UTC 108
75.46
GitHub Action Run
7 14481949487.7 16 Apr 2025 12:24AM UTC 108
75.46
GitHub Action Run
8 14481949487.8 16 Apr 2025 12:24AM UTC 108
75.46
GitHub Action Run
9 14481949487.9 16 Apr 2025 12:24AM UTC 108
75.46
GitHub Action Run
Source Files on build 14481949487
  • Tree
  • List 108
  • Changed 108
  • Source Changed 108
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #14481949487
  • aa4cbb7d on github
  • Prev Build on master (#14457986741)
  • Next Build on master (#18128625706)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc