################################################################################ # Sample Project for middleman-pagegroups ################################################################################ #========================================================================== # Conflicting resources # middleman-pagegroups uses Middleman's resource map to determine # relationships between pages in groups. Be sure to activate other # extensions that might manipulate the resource map before activating # middleman-pagegroups, such as MiddlemanTargets. #========================================================================== # activate :MiddlemanTargets #========================================================================== # Extension Setup #========================================================================== activate :MiddlemanPageGroups do |options| # Indicate whether or not numeric file name prefixes used for sorting # pages should be eliminated during output. This results in cleaner # URI's. Helpers such as `page_name` and Middleman helpers such as # `page_class` will reflect the pretty name. options[:strip_file_prefixes] = true # Indicates whether or not Middleman's built-in `page_class` helper is # extended to include the page_group and page_name. options[:extend_page_class] = true # the following options provide defaults for the built-in helpers, and # also work with the sample partials if you choose to install them. # They'll also work in your own partials and helpers, of course. # Default css class for the nav_breadcrumbs helper/partial. options[:nav_breadcrumbs_class] = 'breadcrumbs' # Default css class for the nav_breadcrumbs_alt helper/partial. options[:nav_breadcrumbs_alt_class] = 'breadcrumbs' # Default "current page" label for the nav_breadcrumbs_alt helper/partial. options[:nav_breadcrumbs_alt_label] = 'Current page' # Default css class for the nav_brethren helper/partial. options[:nav_brethren_class] = 'table_contents' # Default css class for the nav_brethren_index helper/partial. options[:nav_brethren_index_class] = 'related-topics' # Default css class for the nav_legitimate_children helper/partial. options[:nav_legitimate_children_class] = 'table_contents' # Default css class for the nav_prev_next helper/partial. options[:nav_prev_next_class] = 'navigate_prev_next' # Default "previous" label text for the nav_prev_next helper/partial. options[:nav_prev_next_label_prev] = 'Previous' # Default "next" label text for the nav_prev_next helper/partial. options[:nav_prev_next_label_next] = 'Next' # Default css class for the nav_toc_index helper/partial. options[:nav_toc_index_class] = 'help_map' end #========================================================================== # Regular Middleman Setup #========================================================================== set :relative_links, true activate :syntax #========================================================================== # Helpers # These helpers are used by the sample project only; there's no need # to keep them around in your own projects. #========================================================================== # Methods defined in the helpers block are available in templates helpers do def product_name 'middleman-pagegroups' end def product_version '1.0.10' end def product_uri 'http://github.com/middlemac/middleman-pagegroups' end end # Build-specific configuration configure :build do # Minify CSS on build # activate :minify_css # Minify Javascript on build # activate :minify_javascript end