【问题标题】:Singular Jekyll post anomaly not rendering奇异 Jekyll 帖子异常未呈现
【发布时间】:2018-09-07 12:49:54
【问题描述】:

我一直在寻找解决此问题的方法,但没有找到与我的具体案例相关的任何内容。

问题:没有显示一个 Jekyll 帖子。

详情:

  • 这是我推送到的 Github Pages 网站,所以我不会自己渲染 Jekyll
  • 在同一推送到 Github 中的另一个帖子可见并且很好
  • 它与发布的许多其他帖子位于同一文件夹中(特别是 _posts 下的子文件夹)
  • front-matter 的格式与发布的所有其他帖子的格式相同
  • 发帖日期不是未来
  • 我在文件中找不到非法的隐藏字符
  • 文件名格式正确
  • 有一个帖子发布有问题的帖子之后工作正常,我确保清除了我的缓存

背景:这是一个个人D&D相关网站,所以请原谅奇怪的内容,但这里是文件的粘贴。该文件名为“2016-11-10-teacup-of-the-tempest.md”

---
title: Teacup of the Tempest
item_id: 88
category: Wondrous
item_subtypes:
  - Breastplate
  - Half Plate
item_rarity: Very Rare
item_attunement: true
item_requirement: by a Barbarian
item_curse: false
item_classes:
  - Barbarian
item_school: Evocation
item_role:
  - Attack
item_damage:
  - Bludgeoning
tags:
  - Exhaustion
  - Rage
  - Dexterity
  - Strength
  - Aura
  - Bludgeoning
item_idea:
item_co_creator:
item_updated:
last_modified_at:
---

This delicate white teacup is fit for a nobleman, but will not chip or crack. It has been rumored to have been originally found when it was flung through a window, carried from a shipment of china by a violent storm. While you are attuned to the teacup you can gain up to 5 charges that can be used to activate the magic of the teacup.

### Calm Before the Storm
During a short rest if you drink tea from this teacup you regain all expended charges and your exhaustion decreases by 1 level. The tea can be of any type but must be hot when you drink it. You also regain 1 charge each long rest that you take.

### Cyclone
As an action while raging you can expend a charge to attack your enemies with the strength of the storm. As the winds swirl around you you make long sweeping attacks at all enemies within 5 feet. All hostile creatures within range must make a Dexterity saving throw with a DC equal to 8 + your proficiency + your strength modifier. On a failed save they take damage equivalent to two of your weapon attacks.

### Heart of the Storm
When you activate your rage you can choose to expend all 5 charges to release the full power of the tempest. A 20-foot radius sphere of whirling air springs into existence centered on you that follows you until your rage ends. Each creature (not including you) that ends its turn in the sphere must succeed a Strength saving throw with a DC equal to 8 + your proficiency + your strength modifier. On a failed save they take 2d6 bludgeoning damage. Additionally, the sphere’s space is difficult terrain for all creatures besides you.

尽管没有 Github 错误,但它应该正在渲染,但事实并非如此。

注意:它不会在我通过标签呈现帖子或通过转到 url 手动访问的页面中呈现。

【问题讨论】:

    标签: jekyll github-pages


    【解决方案1】:

    如果您在本地运行您的站点,您会看到有五个文件正在生成 “错误:无法读取文件 /path/to/file:UTF-8 中的无效字节序列” ,因为它们有 Western (Windows 1252) 编码,而不是 UTF-8 without BOM 编码。

    确保:

    • wondrous/2016-11-07-urn-of-the-lava-bearer.md,
    • wondrous/2016-11-10-teacup-of-the-tempest.md
    • ring/2016-11-16-ring-of-the-golden-defender.md,
    • weapon/2016-11-16-lead-hex-crossbow.md,
    • wand/2016-11-03-staff-of-thundering-orbs.md

    UTF-8 没有 BOM 编码的。

    【讨论】:

    • 哇,你费了很大的劲才让我回答这个问题。我没想到有人会去找到我的网站并将其拉出来只是为了尝试为我解决问题。非常感谢,以后遇到问题我一定会检查的!
    猜你喜欢
    • 2017-02-25
    • 2014-12-21
    • 2011-10-30
    • 1970-01-01
    • 2022-10-15
    • 1970-01-01
    • 2018-05-07
    • 2015-08-17
    • 1970-01-01
    相关资源
    最近更新 更多