From 42ad10a7719ccfa9537916608bd636e18dbdd3ec Mon Sep 17 00:00:00 2001 From: "Henry.W" <58690749+yahaha-233@users.noreply.github.com> Date: Thu, 13 Jul 2023 09:38:44 -0700 Subject: [PATCH] Remove repeated layout template of cv.html (#1555) The layout template of cv.html has repeated parts. When site.data.resume is not defined, the cv page will be rendered incorrectly. --- _layouts/cv.html | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/_layouts/cv.html b/_layouts/cv.html index 55bcd77..cf8ef48 100644 --- a/_layouts/cv.html +++ b/_layouts/cv.html @@ -4,45 +4,6 @@ layout: default {% unless site.data.resume %}
-
- -
-

{{ page.title }} {% if page.cv_pdf %}{% endif %}

- {% if page.description %}

{{ page.description }}

{% endif %} -
- -

Table of contents

- - -
-
- {% for entry in site.data.cv %} - -
-

{{ entry.title }}

-
- {% if entry.type == "list" %} - {% include cv/list.html %} - {% elsif entry.type == "map" %} - {% include cv/map.html %} - {% elsif entry.type == "nested_list" %} - {% include cv/nested_list.html %} - {% elsif entry.type == "time_table" %} - {% include cv/time_table.html %} - {% elsif entry.type == "list_groups" %} - {% include cv/list_groups.html %} - {% else %} - {{ entry.contents }} - {% endif %} -
-
- {% endfor %} -
-

{{ page.title }} {% if page.cv_pdf %}{% endif %}