Локальный jekyll не может загружать URL-адреса Юникода - PullRequest
1 голос
/ 10 февраля 2020

Версия My Local Jekyll - 4.0.0. и ОС Windows 10

Я хочу получить доступ к 'http://localhost: 4000 / 문제 풀이 / 문제 풀이 / ', но не могу. только показывает 404 страницы. С другой стороны, URL-адрес блога github pages 'https://neomindstd.github.io/문제풀이/문제풀이/' является доступным.

Ниже указано Yaml Front Matter '2020-02-11- 문제 풀이 .md'

---
title:  "문제풀이 테스트"
excerpt: "테스트다"

categories:
  - 문제풀이
tags:
  - Blog
date: 2020-02-09 KST 04:34 +0900

toc: true
toc_sticky: true
toc_label: "목차"

published: true
---


часть _config.yml

# Outputting
permalink: /:categories/:title/
paginate: 5 # amount of posts to show
paginate_path: /page:num/
timezone: Asia/Seoul # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones


т., создано: . site / 문제 풀이 / 문제 풀이 /index.html


Я пробовал решение . добавьте _plugins / post.rb.

# https://github.com/jekyll/jekyll-help/issues/129#issuecomment-61255284
# https://stackoverflow.com/questions/41941320/jekyll-encoding-name-of-category-special-characters
# _plugins/post.rb
module Jekyll

    class Post

      # override post method in order to return categories names as slug
      # instead of strings
      #
      # An url for a post with category "category with space" will be in
      # slugified form : /category-with-space
      # instead of url encoded form : /category%20with%20space
      #
      # @see utils.slugify
      def url_placeholders
        {
            :year        => date.strftime("%Y"),
            :month       => date.strftime("%m"),
            :day         => date.strftime("%d"),
            :title       => slug,
            :i_day       => date.strftime("%-d"),
            :i_month     => date.strftime("%-m"),
            :categories  => (categories || []).map { |c| Utils.slugify(c) }.join('/'),
            :short_month => date.strftime("%b"),
            :short_year  => date.strftime("%y"),
            :y_day       => date.strftime("%j"),
            :output_ext  => output_ext
        }
      end

    end

  end

, но он не работает.

Итак, как получить доступ к URL-адресу Юникода на локальном компьютере?

...