Header fixes (#25)
* #21 changing logic to selecting cover image - For categories, tags - Some code refactor and indenting * #21 initial codes for pelican unit tests * #21 few more testing changes * Ref #21 unit tests for article tests coverimages * Ref #21 unit tests for page, tags, category and author coverimages * Ref #21 readme updated
This commit is contained in:
parent
994b999633
commit
7b26ad1013
39 changed files with 1283 additions and 127 deletions
7
tests/content/article_with_cover_image.rst
Normal file
7
tests/content/article_with_cover_image.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
:title: With Cover Images
|
||||
:date: 2018-04-29 00:45
|
||||
:author: arul
|
||||
:category: foo
|
||||
:tags: footag
|
||||
:slug: with-cover-images
|
||||
:cover: /assets/images/article_cover.jpg
|
7
tests/content/article_with_http_cover_image.rst
Normal file
7
tests/content/article_with_http_cover_image.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
:title: With Cover Images
|
||||
:date: 2018-04-29 00:45
|
||||
:author: arul
|
||||
:category: foo
|
||||
:tags: footag
|
||||
:slug: with-http-cover-images
|
||||
:cover: http://example.com/cover.jpg
|
7
tests/content/article_with_og_image.rst
Normal file
7
tests/content/article_with_og_image.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
:title: With OG Cover Images
|
||||
:date: 2018-04-29 00:59
|
||||
:author: raj
|
||||
:category: bar
|
||||
:tags: bartag
|
||||
:slug: with-og-cover-images
|
||||
:og_image: /assets/images/og_cover.jpg
|
6
tests/content/article_without_cover.rst
Normal file
6
tests/content/article_without_cover.rst
Normal file
|
@ -0,0 +1,6 @@
|
|||
:title: Without Cover Images
|
||||
:date: 2018-04-29 00:55
|
||||
:author: arul
|
||||
:category: foo
|
||||
:tags: footag
|
||||
:slug: without-cover-images
|
0
tests/content/assets/css/myblog.css
Normal file
0
tests/content/assets/css/myblog.css
Normal file
0
tests/content/assets/favicon.ico
Normal file
0
tests/content/assets/favicon.ico
Normal file
1
tests/content/assets/images/article_cover.jpg
Symbolic link
1
tests/content/assets/images/article_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
1
tests/content/assets/images/arul_author_cover.jpg
Symbolic link
1
tests/content/assets/images/arul_author_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
BIN
tests/content/assets/images/avatar.png
Normal file
BIN
tests/content/assets/images/avatar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
1
tests/content/assets/images/bar_category_cover.jpg
Symbolic link
1
tests/content/assets/images/bar_category_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
1
tests/content/assets/images/bar_tag_cover.jpg
Symbolic link
1
tests/content/assets/images/bar_tag_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
BIN
tests/content/assets/images/cover.jpg
Normal file
BIN
tests/content/assets/images/cover.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
1
tests/content/assets/images/foo_category_cover.jpg
Symbolic link
1
tests/content/assets/images/foo_category_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
1
tests/content/assets/images/foo_tag_cover.jpg
Symbolic link
1
tests/content/assets/images/foo_tag_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
1
tests/content/assets/images/header_cover.jpg
Symbolic link
1
tests/content/assets/images/header_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
1
tests/content/assets/images/og_cover.jpg
Symbolic link
1
tests/content/assets/images/og_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
1
tests/content/assets/images/page_cover.jpg
Symbolic link
1
tests/content/assets/images/page_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
1
tests/content/assets/images/raj_author_cover.jpg
Symbolic link
1
tests/content/assets/images/raj_author_cover.jpg
Symbolic link
|
@ -0,0 +1 @@
|
|||
cover.jpg
|
0
tests/content/assets/robots.txt
Normal file
0
tests/content/assets/robots.txt
Normal file
7
tests/content/pages/page_with_cover_image.rst
Normal file
7
tests/content/pages/page_with_cover_image.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
:title: Page With Cover Images
|
||||
:date: 2018-04-29 00:45
|
||||
:author: arul
|
||||
:category: foo
|
||||
:tags: footag
|
||||
:slug: page-with-cover-images
|
||||
:cover: assets/images/page_cover.jpg
|
7
tests/content/pages/page_with_http_cover_image.rst
Normal file
7
tests/content/pages/page_with_http_cover_image.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
:title: Page With Cover Images
|
||||
:date: 2018-04-29 00:45
|
||||
:author: arul
|
||||
:category: foo
|
||||
:tags: footag
|
||||
:slug: page-with-http-cover-images
|
||||
:cover: http://example.com/page-cover.jpg
|
7
tests/content/pages/page_with_og_image.rst
Normal file
7
tests/content/pages/page_with_og_image.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
:title: Page With OG Cover Images
|
||||
:date: 2018-04-29 00:59
|
||||
:author: raj
|
||||
:category: bar
|
||||
:tags: bartag
|
||||
:slug: page-with-og-cover-images
|
||||
:og_image: assets/images/og_cover.jpg
|
6
tests/content/pages/page_without_cover_image.rst
Normal file
6
tests/content/pages/page_without_cover_image.rst
Normal file
|
@ -0,0 +1,6 @@
|
|||
:title: Page Without Cover Images
|
||||
:date: 2018-04-29 00:55
|
||||
:author: arul
|
||||
:category: foo
|
||||
:tags: footag
|
||||
:slug: page-without-cover-images
|
Loading…
Add table
Add a link
Reference in a new issue