איך להשתמש ב-.ico favicons נכון ב-Discourse multisite? גוגל מציג favicons שונים עבור האתר הראשי והפורום למרות אותה העלאה

שלום לכולם,

אני מנהל הגדרת ריבוי אתרים (multisite) של Discourse עם אתרים רבים על אותו שרת. לצורך עקביות מיתוגית, אני רוצה להשתמש בקובצי favicon מסוג .ico (בגודל 32x32) הן עבור אתרי העבודה הראשיים והן עבור הפורומים שלהם.

העליתי את ה-favicon זהה מסוג .ico גם לאתרים הראשיים וגם לפורומים — עם זאת, כאשר אני בודק בתוצאות החיפוש של גוגל:

  • האתרים הראשיים מציגים אייקון favicon בגודל 16x16 (PNG או .ico?), כצפוי.
  • הפורומים מציגים אייקון PNG גדול יותר בגודל 26x26, למרות שה-favicon הוא אותו קובץ .ico.

אני חושד ש-Discourse מזריק את ה-favicon PNG ברירת המחדל שלו בנפרד, מה שעלול לגרום לגוגל ולדפדפנים לבחור גרסאות favicon שונות בין האתר הראשי לפורום.

השאלות שלי:

  1. כיצד ניתן להשתמש כראוי בקובצי favicon מסוג .ico ב-Discourse?
  2. כיצד ניתן לעקוף או לבטל לחלוטין את ה-favicon PNG ברירת המחדל של Discourse כך שישמש רק ה-favicon .ico שלי?
  3. האם חוסר העקביות הזה ב-favicon יכול להשפיע על SEO או על תוצאות החיפוש של גוגל? כיצד לתקן זאת?
  4. האם יש שיטות עבודה מומלצות להבטחת תצוגה עקבית של favicon בכל הפורומים בריבוי אתרים והאתרים הראשיים?

אני גם מחפש פתרון עבור הגדרת ריבוי אתרים של Discourse.

תודה על עזרתכם!

לייק 1

שאלה טובה, גם לי יש את זה!

לייק 1

Still looking for help or advice. :eyes:
Thanks!

זה עובד כראוי באירוח שלנו.

האם תוכל לפרסם את שמות המארחים של האתר בפועל, תוך ציון איזהו שורש הריבוי אתרים ואיזהו אורח הריבוי אתרים, כדי שנוכל לבדוק?

לייק 1

@supermathie
Thank you for your response!
I appreciate the suggestion and the clarification on the root and guest sites.

multisite root is forum.getnursingjobs.com and one of guest site is forum.getchefjobs.com
Any suggestion would be

For Discourse sites, the icon is determined by page contents (a link element in head):

○ → curl -s https://forum.getnursingjobs.com/ | htmlq 'link[rel=icon]'
<link href="https://forum.getnursingjobs.com/uploads/default/optimized/1X/931ed11ccda2b78d1b427939901795ee6d2d4b50_2_32x32.png" rel="icon" type="image/png">

○ → curl -s https://forum.getchefjobs.com/ | htmlq 'link[rel=icon]'
<link href="https://forum.getchefjobs.com/uploads/chef/optimized/1X/931ed11ccda2b78d1b427939901795ee6d2d4b50_2_32x32.png" rel="icon" type="image/png">

And those files ( and respectively) are both 32×32 PNGs are expected:

○ → curl -s https://forum.getnursingjobs.com/uploads/default/optimized/1X/931ed11ccda2b78d1b427939901795ee6d2d4b50_2_32x32.png | file -
/dev/stdin: PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced

○ → curl -s https://forum.getchefjobs.com/uploads/chef/optimized/1X/931ed11ccda2b78d1b427939901795ee6d2d4b50_2_32x32.png | file -
/dev/stdin: PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced

Presumably this is what you intended?

I assume that by “main site” you mean e.g. www.getnursingjobs.com; that site has an icon () that is also a 32×32 PNG:

○ → curl -s https://www.getnursingjobs.com/favicon.ico | file -
/dev/stdin: PNG image data, 32 x 32, 8-bit colormap, non-interlaced

All I see are 32×32 PNGs, so everything looks good to me. If the problem for you is that Google is serving up results with icons of different sizes, they’re generating those for you and you have no control over that. But It looks like the only change they’re making is rendering the icons at a different size (in my case, 18x18) even though the icon they’re showing for your site is still a 32×32 PNG:

To me, everything looks fine.

לייק 1

תודה רבה על הניתוח המפורט והיסודי, @supermathie. אני באמת מעריך שלקחת את הזמן לבדוק את זה ולספק הסבר כל כך ברור. הפירוט שלך היה מועיל מאוד.

לייק 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.