www.git

www

~ Personal site — projects, posts, about. Built with sqzass.
git clone https://github.com/debuman/www.git

templates/partials/nav.html (552B)

      1 {#- 갈래 라벨. site.sections 의 제목은 콘텐츠(각 언어의 _index.md)라 한국어
      2     페이지에서 한국어가 된다. 크롬은 두 언어가 같아야 하므로 URL 로 골라 i18n 에서
      3     가져온다 — 알려진 세 갈래 밖은 섹션 제목으로 떨어진다. #}
      4 {% macro nav_label(s, home) -%}
      5 {%- if s.url == home ~ "posts/" %}{{ t("nav_posts") }}
      6 {%- elif s.url == home ~ "projects/" %}{{ t("nav_projects") }}
      7 {%- elif s.url == home ~ "about/" %}{{ t("nav_about") }}
      8 {%- else %}{{ s.title }}{% endif %}
      9 {%- endmacro %}