Add test for section-bundle content page (_index.md) (Hugo v0.32+)

master
Kaushal Modi 8 years ago
parent b8690659b6
commit c2546f2d70
  1. 5
      test/site/content-org/all-posts.org
  2. 7
      test/site/content/bundles/_index.md
  3. 4
      test/site/themes/bare_min/layouts/_default/list.html

@ -1801,6 +1801,11 @@ This ! does not need to be escaped as there is no ambiguity.
:PROPERTIES:
:EXPORT_HUGO_SECTION: bundles
:END:
** Bundles Section
:PROPERTIES:
:EXPORT_FILE_NAME: _index
:END:
This is the content for the "bundles" section landing page.
** Page Bundle A
:PROPERTIES:
:EXPORT_HUGO_BUNDLE: page-bundle-a

@ -0,0 +1,7 @@
+++
title = "Bundles Section"
tags = ["page-bundles"]
draft = false
+++
This is the content for the "bundles" section landing page.

@ -6,6 +6,10 @@
<h2>Posts with the {{ .Type | singularize }} ‘{{ .URL | replaceRE (printf "/%s/" .Type) "" | replaceRE "/" "" }}’</h2>
{{ end }}
{{ with .Content }}
{{ . }}
{{ end }}
<section>
<ul class="post-list">
{{ range .Pages }}

Loading…
Cancel
Save