}
- @* Display the teasers for Archive Blog posts *@
-
- @{ var hideTeaser = false;
- for (var n = 0; n < posts; n += 2)
- {
-
- @for (var i = n; i < Math.Min(posts, n + 2); i++)
- {
-
-
-
- @if (i == 0)
- {
- n--;
- break;
- }}
-
- @if (!hideTeaser && n + 2 < posts && n == 3)
- {
- // if we have more than 5 teasers, we hide them until "show more" will be clicked
- hideTeaser = true;
-} } }
-