diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-10-28 10:35:19 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-10-28 10:35:19 +0200 |
commit | 342b6fe8a584a84b83159da430773fcdb7b174e4 (patch) | |
tree | 90955374e471c749408943e0236e57d34fcb1784 /source | |
parent | 4ad39445efc0f69cb63fc3c76a9e0db579527ab2 (diff) |
Make it clear that Path is relative to content root
Fixes #2290
Diffstat (limited to 'source')
-rw-r--r-- | source/file.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/file.go b/source/file.go index 1fd0e2a97..7e3e7d7c4 100644 --- a/source/file.go +++ b/source/file.go @@ -25,7 +25,7 @@ import ( // File represents a source content file. // All paths are relative from the source directory base type File struct { - relpath string // Original relative path, e.g. content/foo.txt + relpath string // Original relative path, e.g. section/foo.txt logicalName string // foo.txt baseName string // `post` for `post.md`, also `post.en` for `post.en.md` Contents io.Reader @@ -101,8 +101,8 @@ func (f *File) Ext() string { return f.Extension() } -// Path gets the relative path including file name and extension from -// the base of the source directory. +// Path gets the relative path including file name and extension. +// The directory is relative to the content root. func (f *File) Path() string { return f.relpath } |