--- layout: default ---
{%- if page.device != None %} {%- assign device = site.data.devices[page.device] %} {%- capture link %}{{ device | device_link | relative_url }}{% endcapture %} {%- elsif page.tags contains "how-to" %} {%- capture link %}{{ "how-to/" | relative_url }}{% endcapture %} {%- endif %} {%- assign parts = "/build /update /upgrade /install /fw_update" | split: " " %} {%- for part in parts %} {%- if page.url contains part %} {%- assign action = part | remove: "/" %} {%- unless part == "/build" or part == "/update" %} {%- assign notoc = true %} {%- endunless %} {%- break %} {%- endif %} {%- endfor %} {%- if link != None %} keyboard_arrow_left Back to the overview {%- endif %} {%- if page.title contains "variant" %}

Select your {{ page.device }} variant

{%- elsif action %} {%- if action == "build" %} {%- assign firstLine = action | capitalize | append: " LineageOS for" %} {%- elsif action == "fw_update" %} {%- assign firstLine = "Update firmware on" %} {%- else %} {%- assign firstLine = action | capitalize | append: " LineageOS on" %} {%- endif %}

{{ firstLine }}
{{ device.vendor }} {{ device.name }}

{{ device.codename }} {%- else %}

{{ page.title }}

{%- endif %} {% unless page.toc == false or notoc == true -%} {% include toc.html -%} {%- endunless -%} {{ content }}