{% assign PageLayout = page.layout | replace : ' ','-' | downcase %} {% assign PageBook = page.collection | replace : ' ','-' | downcase %} {% assign PageChapter = page.chapter | replace : ' ','-' | downcase %} {% assign PageTopic = page.topic | replace : ' ','-' | downcase %} {% assign PageTitle = page.title | replace : ' ','-' | downcase %} {% assign PageTag = page.tag | replace : ' ',' tag-' | prepend : ' tag-' | downcase %} {% assign PageLabel = page.label | prepend: '/' | downcase %} {% assign PageUrl = page.url | replace : '.html','' | replace : '/index','' | slice: 1,999 %} {% assign PageShare = PageUrl | prepend : '/' | prepend : site.url %} {% assign PageArtwork = page.url | prepend : 'artwork' | replace : '.html','' %} {% assign PageImage = page.url | prepend : '/assets/img' | replace : '.html','' %} {% assign PageVideo = page.url | prepend : '/assets/vid' | replace : '.html','' %} {% assign PageType = page.type | prepend : 'type-' %} {% assign PageSplit = page.type | prepend : 'split-' %} {% assign PageInfo = page.type | append : '-info' %} {% assign TypeChapter = page.type | append : '-chapter' %} {% assign TypeWeight = page.type | append : '-weight' %} {% assign TypeIcon = page.type | append : '-icon' %} {% assign ChapterID = page.chapter | replace : ' ','-' | append : '-' | downcase %} {% assign PageID = page.title | replace : ' ','-' | downcase %} {% assign ScrollID = ChapterID | append : PageID %} {% assign ChapterWrap = page.chapter | prepend : '' | append : '' %} {% assign ChapterSplit = ChapterWrap | split : ' ' | join : ' ' %} {% assign BookPath = page.collection | replace : ' ','-' | prepend : 'artwork/' | downcase %} {% assign ChapterPath = page.chapter | replace : ' ','-' | prepend : '/' | append : '/' | downcase %} {% assign NameCount = 0 %} {%- if page.type == 'home' -%} {% assign PageIsHome = true %} {%- else -%} {% assign PageIsHome = false %} {%- endif -%} {%- if page.type == 'book' -%} {% assign PageIsBook = true %} {%- else -%} {% assign PageIsBook = false %} {%- endif -%} {%- if page.type == 'chapter' -%} {% assign PageIsChapter = true %} {%- else -%} {% assign PageIsChapter = false %} {%- endif -%} {%- if page.type == 'topic' -%} {% assign PageIsTopic = true %} {%- else -%} {% assign PageIsTopic = false %} {%- endif -%} {%- if page.topic -%} {% assign PageInTopic = true %} {%- else -%} {% assign PageInTopic = false %} {%- endif -%} {%- if page.type == 'page' -%} {% assign PageIsPage = true %} {%- else -%} {% assign PageIsPage = false %} {%- endif -%} {%- if page.type == 'empty' -%} {% assign PageIsEmpty = true %} {%- else -%} {% assign PageIsEmpty = false %} {%- endif -%} {%- unless SiteIsBook -%} {% assign IconPath = BookPath | append : ChapterPath %} {%- else -%} {% assign IconPath = ChapterPath | prepend : 'artwork' %} {%- endunless -%} {%- if page.pies -%} {% assign ClipPies = true %} {%- endif -%} {% assign NoSubtitle = false %} {% unless page.pies %} {% unless page.subtitle %} {% assign NoSubtitle = true %} {% endunless %} {% endunless %}