subroutinesummary_sectionprivate
subroutine summary_section(site, title, ids, b)
Write a section of short entries that link to the pages of ids.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| site | type(site_t) | in | the site | |
| title | character(len=*) | in | the heading | |
| ids | integer | in | dimension(:) | the entities |
| b | type(buffer_t) | inout | the HTML |
Calls
Source
Show the code
subroutine summary_section(site, title, ids, b)
type(site_t), intent(in) :: site !! the site
character(len=*), intent(in) :: title !! the heading
integer, intent(in) :: ids(:) !! the entities
type(buffer_t), intent(inout) :: b !! the HTML
integer :: k
if (size(ids) == 0) return
call add(b, '<h2 id="'//section_id(title)//'">'//title//'</h2>'//achar(10))
do k = 1, size(ids)
call summary_item(site, ids(k), b)
end do
end subroutine summary_section