github-pages
Π― ΠΏΠΎΠ»ΡΡΠ°Ρ ΡΠ»Π΅Π΄ΡΡΡΠ΅Π΅ ΠΏΡΠ΅Π΄ΡΠΏΡΠ΅ΠΆΠ΄Π΅Π½ΠΈΠ΅ Π²ΠΎ Π²ΡΠ΅ΠΌΡ ΠΊΠΎΠΌΠΏΠΈΠ»ΡΡΠΈΠΈ, ΠΊΠ°ΠΊ Ρ ΠΌΠΎΠ³Ρ ΡΡΠΎ ΠΈΡΠΏΡΠ°Π²ΠΈΡΡ
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
ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΡ.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" }} »</span><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
ΡΠΈΠ΄.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 %}
]
ΠΡΠΎ Π½Π΅ ΠΎΡΠΈΠ±ΠΊΠ°.
Π§ΡΠΎΠ±Ρ ΠΏΠΎΠ»ΡΡΠΈΡΡ ΠΏΠΎΠΌΠΎΡΡ ΠΏΠΎ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ 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]
(ΡΠ΄Π°Π»ΠΈΠ² ΡΠΎΡΠΊΡ)
Π‘Π°ΠΌΡΠΉ ΠΏΠΎΠ»Π΅Π·Π½ΡΠΉ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΉ
@MertcanGokgoz ΠΠ°ΡΠ° ΡΡΡΠ»ΠΊΠ° 404ing. ΠΠΎΠΆΠ΅ΡΠ΅ Π»ΠΈ Π²Ρ ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠΈΡΡ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅?
Π Π΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ: ΠΊΠ°ΠΆΠ΅ΡΡΡ, ΡΡΠΎ
site.tags.[page.tag]
ΡΠ»Π΅Π΄ΡΠ΅Ρ Π·Π°ΠΌΠ΅Π½ΠΈΡΡ Π½Π°site.tags[page.tag]
(ΡΠ΄Π°Π»ΠΈΠ² ΡΠΎΡΠΊΡ)