
שפה 🇮🇱 עברית
תיעוד
התחלת העבודה
הגדרות
הוספת תגובות לאתר ה-Jekyll שלך
זוהי הספרייה הרשמית של Jekyll עבור FastComments.
הטמעו ווידג'טים של תגובות חיות, צ'אט וביקורות באתר ה-Jekyll שלכם.
מאגר
הדגמה חיה 
נסו כל הווידג'טים בשידור חי ב־https://fastcomments.com/commenting-system-for-jekyll.
תצוגה חיה 
כדי לראות כל תג שפועל מקומית מול ה-demo tenant הציבורי, שכפל את המאגר והפעל:
cd example
bundle install
bundle exec jekyll serve
לכל ווידג'ט יש דף משלו תחת example/ שאותו אתה יכול להעתיק ישירות לתוך אתר Jekyll שלך.
התחלה מהירה 
הגדר את מזהה הדייר פעם אחת בקובץ _config.yml:
fastcomments:
tenant_id: demo
לאחר מכן הוסף תג במקום שבו אתה רוצה שהווידג'ט יופיע, בתבנית, בפוסט או בדף:
{% raw %}{% fastcomments %}{% endraw %}
זהו. החלף את demo במזהה הדייר של FastComments שלך (תמצא אותו תחת
Settings > API/SSO).
תגיות 
| תג | תיאור |
|---|---|
fastcomments | מערכת תגובות חיה עם תגובות משנה, הצבעה, ניהול ועדכונים בזמן אמת |
fastcomments_comment_count | ספירת תגובות עבור העמוד הנוכחי |
fastcomments_comment_count_bulk | ספירות תגובות עבור דפים מרובים בעמוד רשימה/אינדקס אחד |
fastcomments_live_chat | ווידג'ט צ'אט בזמן אמת |
fastcomments_collab_chat | תגובות שיתופיות בתוך הטקסט (הערות טקסט) |
fastcomments_image_chat | הערות על תמונות |
fastcomments_recent_comments | תגובות אחרונות ברחבי האתר |
fastcomments_recent_discussions | שרשורי דיון פעילים לאחרונה |
fastcomments_reviews_summary | סיכום ביקורות בדירוג כוכבים |
fastcomments_top_pages | הדפים הנדונים ביותר |
fastcomments_user_activity_feed | פיד פעילות לכל משתמש |
דוגמאות
{% raw %}{# ספירת תגובות. הווידג'ט מציג את התווית שלו, לדוגמה "0 תגובות" #}
{% fastcomments_comment_count %}
{# צ'אט בזמן אמת #}
{% fastcomments_live_chat %}
{# צ'אט שיתופי. כוונו אותו לאלמנט תוכן באמצעות בוחר CSS #}
<article id="post-body">
<p>Highlight me to leave a comment.</p>
</article>
{% fastcomments_collab_chat target="#post-body" %}
{# צ'אט תמונה. כוונו אותו לאלמנט תמונה באמצעות בוחר CSS #}
<img id="hero" src="/hero.jpg" alt="Hero image">
{% fastcomments_image_chat target="#hero" %}
{# סיכום ביקורות #}
{% fastcomments_reviews_summary %}
{# פיד פעילות משתמש. דורש מזהה משתמש #}
{% fastcomments_user_activity_feed user_id="demo:demo-user" %}
{# ספירות תגובות מרובות עבור אינדקס בלוג #}
{% for post in site.posts %}
<a href="\{{ post.url }}">\{{ post.title }}</a>
<span class="fast-comments-count" data-fast-comments-url-id="\{{ post.url }}"></span>
{% endfor %}
{% fastcomments_comment_count_bulk %}{% endraw %}
הגדרות 
Config comes from three places. Later sources win:
- Global defaults in
_config.ymlunder thefastcomments:key. - Page context, derived automatically for page-scoped widgets (see below).
- Tag attributes written on the tag itself.
So a url_id on the tag overrides the page-derived value, which overrides any global default.
תחביר התכונות
Attributes are key=value pairs in snake_case:
{% raw %}{% fastcomments url_id="my-stable-id" readonly=true count=20 %}{% endraw %}
- Quoted values (
"..."or'...') are literal strings. - Unquoted
true/falsebecome booleans, and numbers become numbers. - Unquoted anything else is resolved as a Liquid variable from the page context, e.g.
url_id=page.slug. (Liquid does not expand{% raw %}\{{ ... }}{% endraw %}inside a tag's attributes, so use the barepage.slugform rather than"{% raw %}\{{ page.slug }}{% endraw %}".)
Snake_case attribute and config keys are mapped automatically to the camelCase keys FastComments
expects (tenant_id → tenantId, url_id → urlId, page_title → pageTitle,
has_dark_background → hasDarkBackground, and so on). Any other option from the
widget configuration
passes straight through the same way.
ערכים נגזרים מהדף
For the page-scoped widgets (fastcomments, fastcomments_comment_count, fastcomments_live_chat,
fastcomments_collab_chat, fastcomments_image_chat) these are filled in automatically from the
current page unless you set them yourself:
url_id←page.url(a stable identifier independent of the visiting domain)url←site.url+page.url(only whenurlis set in_config.yml)page_title←page.title
Site-wide widgets (recent comments/discussions, top pages, reviews summary, user activity feed, bulk count) are not tied to a page and do not derive these.
שהות נתונים באיחוד האירופי
EU customers add region: eu, either globally:
fastcomments:
tenant_id: your-tenant-id
region: eu
or per tag: {% raw %}{% fastcomments region="eu" %}{% endraw %}. Widgets then load from the EU CDN.
מצב תחזוקה 
אלו רכיבים שהם עטיפות סביב רכיבי ה-VanillaJS הליבה שלנו. אנחנו יכולים לעדכן את אותם רכיבים באופן אוטומטי (לתקן באגים, להוסיף תכונות) בלי לפרסם את הספרייה הזו, כך שאפילו אם היא לא תפורסם לזמן מה — זה לא אומר ש-FastComments אינו בפיתוח פעיל! אתם מוזמנים לבדוק את הבלוג שלנו לעדכונים. שינויים מפרים ב-API או תכונות משמעותיות לעולם לא ישולבו בספריית הליבה הבסיסית ללא העלאת גרסה בספרייה הזו.
צריך עזרה?
אם תיתקל בבעיות או יש לך שאלות לגבי ספריית Jekyll, אנא:
תרומות
תרומות מתקבלות בברכה! אנא בקר במאגר ה-GitHub לקבלת הנחיות לתרומה.