Github 页中的 Jekyll 自定义日期

Jekyll custom date in Github Pages

This is now fix

I want to have custom date, in my language. For example, instead of 08 Feb 2015, I could have 08 Février 2015. How can I change this, in my Jekyll website?

My problem is that I am hosted by Github Pages, so no plugins is allowed.

PS: I check this questions, but it's wasn't ansewerd.

此外,我的类似内容总是被重定向到域 0.0.7.222,我该如何解决这个问题?

这是相关内容的代码;

<div class="related">
  <h2>Contenu relié</h2>
  <ul class="related-posts">
    {% for post in site.related_posts limit:3 %}
      <li>
        <h3>
          <a href="{{ site.baseurl }}{{ post.url }}">
            {{ post.title }}
            <small>{% include custom_date_full_fr.html date = post.date %}</small>
          </a>
        </h3>
      </li>
    {% endfor %}
  </ul>
</div>

来自 Lanyon theme.

坦克

好的,我明白了。

设置基地url

作为从根子域提供的服务,您必须将 baseurl 设置为 ""

baseurl: ""

链接到页面和资源

Link 到 post 或通过此 url 的页面是 {{site.baseurl}}{{page.url}} 因为 page/post url 的前缀是 /.

Link 到 css 或 js 或图像之类的资源需要额外的 /

<link rel="stylesheet" href="{{ site.baseurl }}/public/css/poole.css">