@@ -239,7 +239,7 @@ const (
239
239
// E.g. /blog/my-post.md
240
240
PathTypeContentSingle
241
241
242
- // All bewlow are bundled content files.
242
+ // All below are bundled content files.
243
243
244
244
// Leaf bundles, e.g. /blog/my-post/index.md
245
245
PathTypeLeaf
@@ -313,7 +313,7 @@ func (p *Path) norm(s string) string {
313
313
return s
314
314
}
315
315
316
- // IdentifierBase satifies identity.Identity.
316
+ // IdentifierBase satisfies identity.Identity.
317
317
func (p * Path ) IdentifierBase () string {
318
318
return p .Base ()
319
319
}
@@ -368,15 +368,15 @@ func (p *Path) Name() string {
368
368
return p .s
369
369
}
370
370
371
- // Name returns the last element of path withhout any extension.
371
+ // Name returns the last element of path without any extension.
372
372
func (p * Path ) NameNoExt () string {
373
373
if i := p .identifierIndex (0 ); i != - 1 {
374
374
return p .s [p .posContainerHigh : p .identifiers [i ].Low - 1 ]
375
375
}
376
376
return p .s [p .posContainerHigh :]
377
377
}
378
378
379
- // Name returns the last element of path withhout any language identifier.
379
+ // Name returns the last element of path without any language identifier.
380
380
func (p * Path ) NameNoLang () string {
381
381
i := p .identifierIndex (p .posIdentifierLanguage )
382
382
if i == - 1 {
@@ -386,7 +386,7 @@ func (p *Path) NameNoLang() string {
386
386
return p .s [p .posContainerHigh :p .identifiers [i ].Low - 1 ] + p .s [p .identifiers [i ].High :]
387
387
}
388
388
389
- // BaseNameNoIdentifier returns the logcical base name for a resource without any idenifier (e.g. no extension).
389
+ // BaseNameNoIdentifier returns the logical base name for a resource without any identifier (e.g. no extension).
390
390
// For bundles this will be the containing directory's name, e.g. "blog".
391
391
func (p * Path ) BaseNameNoIdentifier () string {
392
392
if p .IsBundle () {
@@ -395,7 +395,7 @@ func (p *Path) BaseNameNoIdentifier() string {
395
395
return p .NameNoIdentifier ()
396
396
}
397
397
398
- // NameNoIdentifier returns the last element of path withhout any identifier (e.g. no extension).
398
+ // NameNoIdentifier returns the last element of path without any identifier (e.g. no extension).
399
399
func (p * Path ) NameNoIdentifier () string {
400
400
if len (p .identifiers ) > 0 {
401
401
return p .s [p .posContainerHigh : p .identifiers [len (p .identifiers )- 1 ].Low - 1 ]
@@ -435,7 +435,7 @@ func (p *Path) PathNoIdentifier() string {
435
435
return p .base (false , false )
436
436
}
437
437
438
- // PathRel returns the path relativeto the given owner.
438
+ // PathRel returns the path relative to the given owner.
439
439
func (p * Path ) PathRel (owner * Path ) string {
440
440
ob := owner .Base ()
441
441
if ! strings .HasSuffix (ob , "/" ) {
0 commit comments