Skip to content

Commit

Permalink
fix: Add about.md code in for
Browse files Browse the repository at this point in the history
  • Loading branch information
anso33 committed Nov 14, 2023
1 parent 5680c09 commit 6b3c2de
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions _includes/views/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,34 @@
</label>

<div class="trigger">
{%- for path in page_paths -%} {%- assign my_page = site.pages |
where: "path", path | first -%} {%- if my_page.title -%}
<!-- 추가: about.md 페이지에 대한 링크 -->
<a class="page-link" href="{{ '/about' | relative_url }}">ABOUT</a>

<a class="page-link" href="{{ my_page.url | relative_url }}"
>{{ my_page.title | upcase | escape }}</a
{%- for path in page_paths -%} {%- assign my_page = site.pages |
where: "path", path | first -%} {%- if my_page.title -%} {% if
my_page.path == 'about.md' %}
<a
class="page-link"
href="{{ my_page.url | relative_url }}"
class="custom-page-link"
>
{%- endif -%} {%- endfor -%}
<!-- 추가: about.md 페이지에 대한 링크 -->
<a class="page-link" href="{{ '/about/' | relative_url }}">ABOUT</a>
<!-- {{ my_page.title | upcase | escape }} -->
ABOUT
</a>
{% else %}
<a class="page-link" href="{{ my_page.url | relative_url }}">
{{ my_page.title | upcase | escape }}
</a>
{% endif %}

{%- assign name = 'translate_langs' -%} {%- include functions.html
func='get_value' -%} {%- assign translate_langs = return -%} {%- if
translate_langs.size > 0 -%} {%- assign name = 'lang' -%} {%- include
functions.html func='get_value' default='en' -%} {%- assign lang =
return -%}
<!-- <a class="page-link" href="{{ my_page.url | relative_url }}"
>{{ my_page.title | upcase | escape }}</a
> -->
{%- endif -%} {%- endfor -%} {%- assign name = 'translate_langs' -%}
{%- include functions.html func='get_value' -%} {%- assign
translate_langs = return -%} {%- if translate_langs.size > 0 -%} {%-
assign name = 'lang' -%} {%- include functions.html func='get_value'
default='en' -%} {%- assign lang = return -%}
<!-- <span class="page-link">
{%- include extensions/google-translate.html -%}
</span> -->
Expand Down

0 comments on commit 6b3c2de

Please sign in to comment.