Jekyll: ์œ ๋™์  ๊ตฌ๋ฌธ ์˜ค๋ฅ˜

์— ๋งŒ๋“  2016๋…„ 09์›” 17์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: jekyll/jekyll

  • [ ] ์ด๊ฒƒ์€ Jekyll ์‚ฌ์šฉ์— ๋Œ€ํ•œ ์งˆ๋ฌธ์ด ์•„๋‹ˆ๋ผ ๋ฒ„๊ทธ๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.
  • [x] ์ตœ์‹  Jekyll(๋˜๋Š”) GitHub ํŽ˜์ด์ง€์—์„œ ์ตœ์‹  github-pages ๋กœ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.
  • [x] https://jekyllrb.com/docs/contributing/ ์—์„œ CONTRIBUTION ํŒŒ์ผ์„ ์ฝ์—ˆ์Šต๋‹ˆ๋‹ค.
  • [ ] ๊ธฐ๋Šฅ์š”์ฒญ์ž…๋‹ˆ๋‹ค.

  • [ ] _macOS _ 10+๋ฅผ ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค(๋˜๋Š” ํ…Œ์ŠคํŠธํ–ˆ์Šต๋‹ˆ๋‹ค).
  • [x] _Debian/Ubuntu _ GNU/Linux๋ฅผ ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค(๋˜๋Š” ํ…Œ์ŠคํŠธํ–ˆ์Šต๋‹ˆ๋‹ค).
  • [ ] _Fedora _ GNU/Linux๋ฅผ ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค(๋˜๋Š” ํ…Œ์ŠคํŠธํ•œ ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค).
  • [ ] _Arch _ GNU/Linux๋ฅผ ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค(๋˜๋Š” ํ…Œ์ŠคํŠธ ์ค‘์ž…๋‹ˆ๋‹ค).
  • [ ] _Other _ GNU/Linux๋ฅผ ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค(๋˜๋Š” ํ…Œ์ŠคํŠธํ•œ ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค).
  • [ ] _Windows _ 10+๋ฅผ ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค(๋˜๋Š” ํ…Œ์ŠคํŠธํ–ˆ์Šต๋‹ˆ๋‹ค).

  • [ ] ์„ค์น˜ํ•˜๋ ค๊ณ  ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • [ ] ๊นจ์ง„ Plugin API๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
  • [ ] GitHub Pages์—์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜์—ฌ ๋กœ์ปฌ์—์„œ ์žฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • [ ] GitHub Pages์— ์˜ค๋ฅ˜๊ฐ€ ์žˆ์—ˆ๊ณ  GitHub ์ง€์›์—์„œ Jekyll ๋ฒ„๊ทธ๋ผ๊ณ  ๋งํ–ˆ์Šต๋‹ˆ๋‹ค.
  • [ ] GitHub Pages์— ์˜ค๋ฅ˜๊ฐ€ ์žˆ์—ˆ๊ณ  ๋กœ์ปฌ์—์„œ ํ…Œ์ŠคํŠธํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.
  • [ ] ๋งŒ๋“ค๋ ค๊ณ  ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • [x] ๋˜ ๋‹ค๋ฅธ ๋ฒ„๊ทธ์˜€์Šต๋‹ˆ๋‹ค.

    ๋‚ด ๋ฒˆ์‹ ๋‹จ๊ณ„

์ปดํŒŒ์ผํ•˜๋Š” ๋™์•ˆ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฝ๊ณ ๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋‚˜์š”?

Liquid Warning: Liquid syntax error (line 5): Expected id but found open_square in "item in site.[item.label]" in feeds/feed.json
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html
    Liquid Warning: Liquid syntax error (line 19): Expected id but found open_square in "post in site.categories.[page.category]" in /_layouts/category.html

category.html

<h1 class="title">{{ page.title }}</h1>

{% unless page.content == '' %}
  <p>{{ page.content }}</p>
{% endunless %}
<ul id="blog-posts" class="posts">
{% for post in site.categories.[page.category] %}
  <li><span>{{ post.date | date: "%d/%m/%Y" }} &raquo;</span><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>

feed.json

{% assign first = true %}
[
{% for collection in site.collections %}
    {% for item in collection %}
        {% for item in site.[item.label] %}
            {% if item.title != null and item.title != empty %}
            {% unless first %},{% endunless %}{
                "title": {{item.title | jsonify}},
                "content": {{item.content | markdownify | strip_html | jsonify}},
                "link": "{{ site.baseurl }}{{ item.url }}",
                "date": "{{ item.date }}",
                "excerpt": "{{ item.snippet }}",
                "search_omit": "{{ item.search_omit }}"
            }
            {% assign first = false %}
            {% endif %}
        {% endfor %}
    {% endfor %}
{% endfor %}


{% for post in site.posts %}
    {% if post.title != null and post.title != empty %}
    {% unless first %},{% endunless %}{
        "title": {{post.title | jsonify}},
        "content": {{post.content | markdownify | strip_html | jsonify}},
        "link": "{{ site.baseurl }}{{ post.url }}",
        "date": "{{ post.date }}",
        "excerpt": "{{ post.snippet }}",
        "search_omit": "{{ post.search_omit }}"
    }
    {% assign first = false %}
    {% endif %}
{% endfor %}

{% for page in site.pages %}
    {% if page.title != null and page.title != empty %}
    {% unless first %},{% endunless %}{
        "title": {{page.title | jsonify}},
        "content": {{page.content | strip_html | jsonify}},
        "link": "{{ site.baseurl }}{{ page.url | replace: 'index.html', '' }}",
        "date": {{ page.date | jsonify }},
        "excerpt": {{ page.description | jsonify }},
        "search_omit": "{{ page.search_omit }}"
    }
    {% assign first = false %}
    {% endif %}
{% endfor %}
]
frozen-due-to-age

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@MertcanGokgoz ๊ท€ํ•˜์˜ ๋งํฌ๋Š” 404ing์ž…๋‹ˆ๋‹ค. ์†”๋ฃจ์…˜์„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

ํŽธ์ง‘: site.tags.[page.tag] ๋ฅผ site.tags[page.tag] (์  ์ œ๊ฑฐ)๋กœ ๋ฐ”๊ฟ”์•ผ ํ•˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋ชจ๋“  3 ๋Œ“๊ธ€

์ด๊ฒƒ์€ ๋ฒ„๊ทธ๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค.

Jekyll ์‚ฌ์šฉ์— ๋Œ€ํ•œ ๋„์›€์ด ํ•„์š”ํ•˜๋ฉด https://talk.jekyllrb.com ์— ์งˆ๋ฌธ์„ ๊ฒŒ์‹œํ•˜์„ธ์š”.

์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€์—์„œ ์•Œ ์ˆ˜ ์žˆ๋“ฏ์ด site.categories.[page.category] ์€(๋Š”) ์œ ํšจํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ๋‹ค

https://talk.jekyllrb.com/t/liquid-syntax-error/2982/7?u=mertcangokgoz

@MertcanGokgoz ๊ท€ํ•˜์˜ ๋งํฌ๋Š” 404ing์ž…๋‹ˆ๋‹ค. ์†”๋ฃจ์…˜์„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

ํŽธ์ง‘: site.tags.[page.tag] ๋ฅผ site.tags[page.tag] (์  ์ œ๊ฑฐ)๋กœ ๋ฐ”๊ฟ”์•ผ ํ•˜๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰