Permalink¶
-
class
pysmith.contrib.web.permalink.Permalink(match_pattern='*.html', permalink_selector='permalink')[source]¶ Creates permalinks for pages. The permalink will be pulled from the
FileInfoobject as specified by the permalink_selector, and the file will be moved under the correct key for the new path. If the permalink cannot be found in theFileInfo, the file will not be renamed. Leading slashes are ignored in the permalink. If the path ends with a slash, the file will be moved to index.html in the specified folder. Otherwise the permalink will be treated as a literal path for the file.