{%- macro branches(categories='', tags='') -%}
{{- '' -}}
{{- '' -}} {%- if tags | length > 0 -%} {{- '' -}} Tag:{{- ' ' -}} {%- else -%} {{- '' -}} Branch:{{- ' ' -}} {%- endif -%} {{- '' -}} {%- if tags | length > 0 -%} {{- tags[0].title -}} {%- elif categories | length > 0 -%} {{- categories[0].title -}} {%- else -%} master{{- '' -}} {%- endif -%} {{- ' ' -}} {{- '' -}}
{{- '' -}}
{{- '' -}}
{{- '' -}}
{{- '' -}} Switch branches/tags{{- '' -}}
{{- '' -}}
{{- '' -}}
{{- '' -}}
{{- '' -}}
Branches
{{- '' -}}
Tags
{{- '' -}}
{{- '' -}}
    {{- '' -}} {%- if categories | length > 0 -%} {%- for category in categories -%}
  • {{- '' -}} {%- if loop.index == 1 -%} {{- '' -}} {%- else -%}
    {{- '' -}} {%- endif -%} {{- '' -}} {{- category.title -}} {{- '' -}}
  • {{- '' -}} {%- endfor -%} {%- else -%}
  • master
  • {{- '' -}} {%- endif -%}
{{- '' -}}
    {{- '' -}} {%- if tags | length > 0 -%} {%- for tag in tags -%}
  • {{- '' -}} {%- if loop.index == 1 -%} {{- '' -}} {%- else -%}
    {{- '' -}} {%- endif -%} {{- '' -}} {{- tag.title -}} {{- '' -}}
  • {{- '' -}} {%- endfor -%} {%- else -%}
  •  
  • {{- '' -}} {%- endif -%}
{{- '' -}}
{{- '' -}}
{{- '' -}}
{{- '' -}} {{- '' -}} {%- endmacro -%}