830830 -- stringResult = parseAndRunTemplate( page, path, template, fileType=fromPage, useCache, onPageInit=nil, packedArguments=nil )
831831 -- onPageInit = function( wrappedPage )
832832 function _G.parseAndRunTemplate(page, path, template, fileType, useCache, onPageInit, args)
833- -- timestampPrintVerbose("--> Template(start): %s", maybeFullPath(path))
834833 local result
835834
836835 if template == "" and not onPageInit then
864863 end
865864 end
866865
867- -- timestampPrintVerbose("--> Template(finish): %s", maybeFullPath(path))
868866 return result
869867 end
870868
@@ -991,7 +989,7 @@ function _G.writeOutputFile(category, pathRel, url, data, modTime, sourcePath)
991989 if site._fileProcessors[extLower] then
992990 !PUSH_CONTEXT "none"
993991 local sourceSitePathRel = (sourcePath ~= "") and pathToSitePath(sourcePath) or ""
994- data = site._fileProcessors[extLower](data, sourceSitePathRel) -- @Doc sourceSitePathRel?
992+ data = site._fileProcessors[extLower](data, sourceSitePathRel)
995993 !POP_CONTEXT()
996994
997995 if type(data) ~= "string" then
@@ -1901,10 +1899,10 @@ function _G.generateFromTemplateString(page, template, modTime, onPageInit)
19011899 local pathRelOut = page._pathOut
19021900
19031901 if page._isGenerated then
1904- errorf(2, "Page has already generated. (%s)", maybeFullPath(pathRel ))
1902+ errorf(2, "Page has already generated. (%s)", maybeFullPath(page._contentRealPath ))
19051903 end
19061904 if page._isGenerating or site._pagesGenerating[pathRelOut] then
1907- errorf(2, "Recursive page generation detected. (You may want to call lock() in '%s')", maybeFullPath(pathRel ))
1905+ errorf(2, "Recursive page generation detected. (You may want to call lock() in '%s')", maybeFullPath(page._contentRealPath ))
19081906 end
19091907
19101908 page._isGenerating = true
@@ -1914,7 +1912,7 @@ function _G.generateFromTemplateString(page, template, modTime, onPageInit)
19141912 local ext = getExtension(filename)
19151913 local extLower = ext:lower()
19161914
1917- timestampPrintVerbose("--> Processing(start): %s", maybeFullPath(pathRel ))
1915+ timestampPrintVerbose("--> Processing(start): %s", maybeFullPath(page._contentRealPath ))
19181916 local result
19191917
19201918 if page.isPage.v then
@@ -1927,7 +1925,7 @@ function _G.generateFromTemplateString(page, template, modTime, onPageInit)
19271925 (page.isDraft.v and not includeDrafts ) or -- Is draft?
19281926 (datetimeToTime(page.publishDate:g()) > nowTime) -- Is in future?
19291927 then
1930- timestampPrintVerbose("--> Processing(abort): %s", maybeFullPath(pathRel ))
1928+ timestampPrintVerbose("--> Processing(abort): %s", maybeFullPath(page._contentRealPath ))
19311929
19321930 page._isSkipped = true
19331931 site._outputFileSkippedPageCount = site._outputFileSkippedPageCount + 1
@@ -1939,7 +1937,7 @@ function _G.generateFromTemplateString(page, template, modTime, onPageInit)
19391937
19401938 if not (page.isIndex.v or page.isSpecial.v) and not page._dateHasBeenUpdated then
19411939 -- @UX: Should there be an option to disable this? Maybe an option for suppressing all warnings?
1942- timestampPrintWarning("%s did not update page.date.", maybeFullPath(pathRel ))
1940+ timestampPrintWarning("%s did not update page.date.", maybeFullPath(page._contentRealPath ))
19431941 end
19441942
19451943 page.content.v = pageContent
@@ -1959,7 +1957,7 @@ function _G.generateFromTemplateString(page, template, modTime, onPageInit)
19591957 result = parseAndRunTemplate(page, page._contentRealPath, template, nil, false, onPageInit, nil)
19601958 end
19611959
1962- timestampPrintVerbose("--> Processing(finish): %s", maybeFullPath(pathRel ))
1960+ timestampPrintVerbose("--> Processing(finish): %s", maybeFullPath(page._contentRealPath ))
19631961
19641962 writeOutputFile(page._category, pathRelOut, page.url.v, result, modTime, pathRel)
19651963 page._isGenerated = true
@@ -2129,7 +2127,7 @@ function _G.getLayoutTemplate(page)
21292127
21302128 local template, err = getFileContentsText(path)
21312129 if not template then
2132- errorf("%s: Could not load layout '%s'. (%s)", maybeFullPath(page._path ), page.layout.v, err)
2130+ errorf("%s: Could not load layout '%s'. (%s)", maybeFullPath(page._contentRealPath ), page.layout.v, err)
21332131 end
21342132
21352133 site._layoutTemplates[path] = template
0 commit comments