|
14 | 14 | <!-- ...or you can use (faster) external CSS files e.g. <link rel="stylesheet" href="<txp:page_url type="theme_path" />/styles/default.css"> --> |
15 | 15 |
|
16 | 16 | <meta name="generator" content="Textpattern CMS"> |
17 | | - <txp:meta_description /> |
18 | | - <txp:meta_keywords separator="," /> |
19 | 17 |
|
20 | | - <txp:if_individual_article> |
21 | | - <meta name="robots" content="<txp:if_expires>unavailable_after: <txp:expires gmt="1" format="%d-%b-%y %T" /> GMT<txp:else />index, follow</txp:if_expires>"> |
22 | | - <link rel="canonical" href="<txp:permlink />"> |
23 | | - <txp:meta_author title="1" /> |
24 | | - <txp:else /> |
| 18 | + <txp:if_author> |
25 | 19 | <meta name="robots" content="noindex, follow"> |
26 | | - <link rel="canonical" href="<txp:section url="1" />"> |
27 | | - </txp:if_individual_article> |
| 20 | + <txp:else /> |
| 21 | + <txp:meta_description /> |
| 22 | + <txp:if_article_list> |
| 23 | + <txp:article pgonly="1" limit="10" /> |
| 24 | + <txp:variable name="page" value='<txp:page_url type="pg" />' /> |
| 25 | + <txp:if_variable name="page" value="1"> |
| 26 | + <meta name="robots" content="index, follow"> |
| 27 | + <link rel="canonical" href="<txp:section url="1" />"> |
| 28 | + <txp:else /> |
| 29 | + <meta name="robots" content="noindex, follow"> |
| 30 | + <link rel="canonical" href="<txp:section url="1" />?pg=<txp:page_url type="pg" />"> |
| 31 | + </txp:if_variable> |
| 32 | + <txp:else /> |
| 33 | + <txp:meta_keywords separator="," /> |
| 34 | + <txp:meta_author title="1" /> |
| 35 | + <meta name="robots" content="<txp:if_expires>unavailable_after: <txp:expires gmt="1" format="%d-%b-%y %T" /> GMT<txp:else />index, follow</txp:if_expires>"> |
| 36 | + <link rel="canonical" href="<txp:permlink />"> |
| 37 | + </txp:if_article_list> |
| 38 | + </txp:if_author> |
28 | 39 |
|
29 | 40 | <!-- content feeds --> |
30 | 41 | <txp:feed_link flavor="atom" format="link" label="Atom" /> |
|
50 | 61 | <h1 itemprop="name"> |
51 | 62 | <txp:section title="1" /> |
52 | 63 | </h1> |
53 | | - <txp:article class="article-list" form="article_listing" limit="5" wraptag="ul" /> |
| 64 | + <txp:article class="article-list" form="article_listing" limit="10" wraptag="ul" /> |
54 | 65 | <!-- ...or if you want to list all articles from all sections instead, then replace txp:article with txp:article_custom --> |
55 | 66 |
|
56 | 67 | <!-- add pagination links to foot of article listings if there are more articles available --> |
|
0 commit comments