소스 검색

update README

Dan Crosta 9 년 전
부모
커밋
4d4e293b0d
1개의 변경된 파일14개의 추가작업 그리고 10개의 파일을 삭제
  1. 14 10
      autopages/README.md

+ 14 - 10
autopages/README.md

@@ -1,17 +1,21 @@
-# Author Pages
+# Auto Pages
 
-This plugin adds an attribute `page` to the author object which can be used
-in templates by themes. The page is processed as an ordinary Pelican page,
-so it can be Markdown, reStructuredText, etc.
+This plugin adds an attribute `page` to the author, category, and tag
+objects which can be used in templates by themes. The page is processed as
+an ordinary Pelican page, so it can be Markdown, reStructuredText, etc.
 
 ## Configuration
 
-| Setting            | Default   | Notes                                                                                                                                                         |
-|--------------------|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `AUTHOR_PAGE_PATH` | `authors` | The location, relative to the project root where author pages can be found. The filename of the author page minus the extension must match the Author's slug. |
+| Setting              | Default      | Notes                                                                                                                                                               |
+|----------------------|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| `AUTHOR_PAGE_PATH`   | `authors`    | The location, relative to the project root where author pages can be found. The filename of the author page minus the extension must match the Author's slug.       |
+| `CATEGORY_PAGE_PATH` | `categories` | The location, relative to the project root where category pages can be found. The filename of the category page minus the extension must match the Category's slug. |
+| `TAG_PAGE_PATH`      | `tags`       | The location, relative to the project root where tag pages can be found. The filename of the tag page minus the extension must match the Tag's slug.                |
 
 ## Template Variables
 
-| Setting       | Notes                                                                                                                                                         |
-|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| `author.page` | The location, relative to the project root where author pages can be found. The filename of the author page minus the extension must match the Author's slug. |
+| Variable        | Notes                                      |
+|-----------------|--------------------------------------------|
+| `author.page`   | The rendered content of the author page.   |
+| `category.page` | The rendered content of the category page. |
+| `tag.page`      | The rendered content of the tag page.      |