{layout='layouts/_blog-layout'} {!-- Redirect ============ This is a blog single entry page, it'll never need a fourth segment, so we use the following code to make sure the page redirects if someone types in an incorrect URL in the browser address bar, by adding new segments. i.e. http://example.com/blog/entry/title/nothing --} {if segment_4} {redirect='{segment_1}/{segment_2}/{segment_3}'} {/if} {!-- page vars (prefix p_) --} {preload_replace:p_title='My Blog'} {preload_replace:p_description='A blog about things, things I like and things I do.'} {preload_replace:p_url='blog'} {preload_replace:p_url_entry='entry'} {!-- channel vars (prefix ch_) --} {preload_replace:ch='blog'} {preload_replace:ch_disable='category_fields|member_data|pagination'} {!-- layout vars, channel/page related --} {layout:set name='ch' value='{ch}'} {layout:set name='p_url' value='{p_url}'} {layout:set name='p_title' value='{p_title}'} {!-- single-entry pagination --}
{gv_comment_expired}
{if:else}{gv_comment_disabled}
{/if}