########## Webpages ##########

# Main page for a host
HostPage ntp1 {
        # Indicate if generation should happen immediately after start up
        InitialRun 1

        # Minutes between generation of page
        Frequency 5

        PageTitle ntp1.example.net

        # Use either 'default' or 'bootstrap'
        Template default

        # Link to peer web pages
        PeerPages ntp1-peers

        # Set to 1 if this page should show a link to pool.ntp.org
        PoolMember 1

        # Links to graphs
        Images {
                # Index in graph destination array
                LinkIndex 1
                
                # Link to graphs in config file
                Graph offset24
                Graph offset72
                Graph offset1
                Graph offset3
                Graph offset15
                Graph offset30
                Graph offset60
        }

        # Link to summary pages
        Summaries {
                PeerSummaryPage ntp1-offset
                PeerSummaryPage ntp1-delay
        }

        # Name and path to generated file.
        # Multiple files is an option.
        Destinations {
                File ntp1.example.net/index.html
        }
}

# Web pages for peers
# Same usage as host configuration options
PeerPages ntp1-peers {
        InitialRun 1
        Frequency 240

        PageTitle ntp1.example.net
        Template default

        Images {
                LinkIndex 1
                Graph offset24
                Graph offset72
                Graph offset1
                Graph offset3
                Graph offset15
                Graph offset15f
                Graph delay
                Graph delayf
                Graph balance
                Graph balancef
        }
        
        # Path to use for generated files.
        Destinations {
                Directory ntp1.example.net/peers/
        }
        
        # Base URL to generated files.
        Link peers/
}

# Web page for summary graphs
# Same usage as host configuration options
PeerSummaryPage ntp1-offset {
        InitialRun 1
        Frequency 1080
        
        PageTitle jitter/offset
        PeerPages ntp1-peers
        Template default
        
        # Links to other configuration sections
        Images {
                LinkIndex 1
                Graph offset15
                Graph offset15f
        }
        
        Destinations {
                File ntp1.example.net/peers/graphs.html
        }
        
        Link peers/graphs.html
}

PeerSummaryPage ntp1-delay {
        InitialRun 1
        Frequency 1080
        
        PageTitle jitter/offset/delay
        PeerPages ntp1-peers
        Template default
                        
        Images {
                LinkIndex 1
                Graph delay
                Graph delayf
        }
        
        Destinations {
                File ntp1.example.net/peers/delaygraphs.html
        }
        
        Link peers/delaygraphs.html
}