Javascript baseurl在Jekyll中不工作

Javascript baseurl在Jekyll中不工作,javascript,css,jekyll,Javascript,Css,Jekyll,我试图在“myaccount.github.io/Templates”中创建一个github页面。在使用Jekyll时,我设置了baseurl:/templates,但在访问上述链接时,JS和css文件没有加载。html如下所示(包含在主页中): {%if page.title==“Home”%} {{site.title}}·;{{site.tagline} {%else%} {{page.title}}·;{{site.title} {%endif%} index

我试图在“myaccount.github.io/Templates”中创建一个github页面。在使用Jekyll时,我设置了
baseurl:/templates
,但在访问上述链接时,JS和css文件没有加载。html如下所示(包含在主页中):


{%if page.title==“Home”%}
{{site.title}}·;{{site.tagline}
{%else%}
{{page.title}}·;{{site.title}
{%endif%}
index.html:

---
layout: default
title: Home
---

<div class="posts">
  {% for post in paginator.posts %}
  <div class="post">
    <h1 class="post-title">
      <a href="{{ post.url }}">
        {{ post.title }}
      </a>
    </h1>

    <span class="post-date">{{ post.date | date_to_string }}</span>

    {{ post.content }}
  </div>
  {% endfor %}
</div>

<div class="pagination">
  {% if paginator.next_page %}
    <a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a>
  {% else %}
    <span class="pagination-item older">Older</span>
  {% endif %}
  {% if paginator.previous_page %}
    {% if paginator.page == 2 %}
      <a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
    {% else %}
      <a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a>
    {% endif %}
  {% else %}
    <span class="pagination-item newer">Newer</span>
  {% endif %}
</div>
---
布局:默认值
标题:家
---
{paginator.posts%中的post为%s}
{{post.date | date_to_string}
{{post.content}}
{%endfor%}
{%if paginator.next_page%}
{%else%}
更老的
{%endif%}
{%if paginator.previous_page%}
{%if paginator.page==2%}
{%else%}
{%endif%}
{%else%}
更新的
{%endif%}
布局:(default.html)


{%include head.html%}
{%include sidebar.html%}
{{content}}

我不明白为什么css文件没有加载

如果您的url是myaccount.github.io/Templates,那么您的基本url是:

baseurl: "/Templates" # Uppercase T

您是否查看了生成的源代码和目录,即_站点中的文件?这可能会告诉你发生了什么。你有什么解决办法吗?
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">

  {% include head.html %}

  <body>

    {% include sidebar.html %}

    <div class="content container">
      {{ content }}
    </div>

  </body>
</html>
baseurl: "/Templates" # Uppercase T