From ff76c8eed849d49b8e6d165e650faca6e254a4e1 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 28 Sep 2026 11:02:25 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=B9=B6=E8=A1=A5=E9=BD=90?= =?UTF-8?q?=20SEO=E3=80=81GEO=20=E4=B8=8E=20AEO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 首页改为可直接引用的答案和时代框架,全站增加搜索。发布 llms.txt、产品 JSON 和更完整的结构化数据,方便搜索引擎和回答引擎引用。 Co-authored-by: Gene Dai --- 404.html | 25 +- FAQ.md | 74 ++++- _config.yml | 7 +- _data/products.yml | 5 + _headers | 13 + _includes/cite-this.html | 4 + _includes/extractable-summary.html | 54 +++ _includes/markdown-body.html | 14 + _includes/product-card.html | 26 +- _includes/site-footer.html | 15 + _includes/structured-data.html | 154 +++++++++ _layouts/analysis.html | 33 +- _layouts/article.html | 61 ++-- _layouts/default.html | 254 +++++--------- _layouts/product-detail.html | 35 +- _layouts/tag_page.html | 18 +- _sass/_base.scss | 35 +- _sass/_components.scss | 9 +- _sass/_experience.scss | 512 +++++++++++++++++++++++++++++ _sass/_layouts.scss | 9 +- _sass/_variables.scss | 7 + _scripts/convert_svg_to_png.sh | 10 + assets/css/main.scss | 1 + assets/images/og-image.svg | 28 +- assets/js/experience.js | 219 ++++++++++++ assets/js/main.js | 81 +++-- index.html | 284 ++++++++-------- llms.txt | 44 +++ product-directory.md | 27 +- products.json | 35 ++ robots.txt | 41 ++- sitemap.xml | 42 +++ tags.md | 9 +- 33 files changed, 1703 insertions(+), 482 deletions(-) create mode 100644 _includes/cite-this.html create mode 100644 _includes/extractable-summary.html create mode 100644 _includes/markdown-body.html create mode 100644 _includes/site-footer.html create mode 100644 _includes/structured-data.html create mode 100644 _sass/_experience.scss create mode 100644 assets/js/experience.js create mode 100644 llms.txt create mode 100644 products.json create mode 100644 sitemap.xml diff --git a/404.html b/404.html index 4222850..ebc577a 100644 --- a/404.html +++ b/404.html @@ -1,7 +1,8 @@ --- layout: default -title: Page Not Found - 404 Error -description: "The page you're looking for doesn't exist or has been moved. Explore our HR AI product directory or search for what you need." +title: Page Not Found +seo_title: "Page not found | HireAI" +description: "The page you're looking for doesn't exist or has been moved. Explore the HR AI product directory or search for a product." permalink: /404.html robots: noindex, follow --- @@ -51,21 +52,23 @@

Popular Pages

+{%- else -%} +
+ {{ content }} +
+{%- endif -%} diff --git a/_includes/product-card.html b/_includes/product-card.html index 3887c7f..20ac2b0 100644 --- a/_includes/product-card.html +++ b/_includes/product-card.html @@ -1,17 +1,31 @@ -
+{% assign analysis_path = "" %} +{% if include.product.analysis %} + {% assign analysis_path = include.product.analysis | replace: "_analyses/", "" | replace: ".md", "" %} +{% endif %} +
{% include product-favicon.html url=include.product.url %} -

{{ include.product.name | escape }}

+

+ {% if analysis_path != "" %} + {{ include.product.name | escape }} + {% else %} + {{ include.product.name | escape }} + {% endif %} +

+ {% if include.category %} +

{{ include.category.era | split: " - " | first | escape }}

+ {% endif %}

{{ include.product.description | escape }}

- {% if include.product.analysis %}
- Read Analysis + Website + {% if analysis_path != "" %} + Analysis + {% endif %}
- {% endif %} -
+ diff --git a/_includes/site-footer.html b/_includes/site-footer.html new file mode 100644 index 0000000..b06e1bd --- /dev/null +++ b/_includes/site-footer.html @@ -0,0 +1,15 @@ + diff --git a/_includes/structured-data.html b/_includes/structured-data.html new file mode 100644 index 0000000..1875713 --- /dev/null +++ b/_includes/structured-data.html @@ -0,0 +1,154 @@ +{%- assign page_lang = page.lang | default: site.default_lang | default: "en" -%} +{%- assign schema_lang = "en-US" -%} +{%- if page_lang == "zh" -%} + {%- assign schema_lang = "zh-CN" -%} +{%- endif -%} +{%- assign page_modified = page.last_modified_at | default: page.last_updated -%} +{%- capture search_template -%}{{ site_root }}/product-directory/?q={search_term_string}{%- endcapture -%} +{%- assign webpage_id = canonical_url | append: "#webpage" -%} +{%- assign website_id = site_root | append: "/#website" -%} +{%- assign org_id = site_root | append: "/#organization" -%} + +{% if page.layout == "product-detail" %} +{% assign app_description = page.product_tagline | default: page.description | default: "" %} +{% assign app_description = app_description | strip_html | strip_newlines | strip %} + +{% endif %} +{% if page.layout == "analysis" or page.layout == "article" %} +{% assign article_description = page.description | default: page.page_description | default: "" %} +{% assign article_description = article_description | strip_html | strip_newlines | strip %} +{% assign published_at = page.date | default: page.last_modified_at | default: page.last_updated %} +{% assign modified_at = page.last_modified_at | default: page.last_updated | default: published_at %} + +{% endif %} diff --git a/_layouts/analysis.html b/_layouts/analysis.html index 15d184d..fb8332d 100644 --- a/_layouts/analysis.html +++ b/_layouts/analysis.html @@ -15,26 +15,9 @@ {% include product-favicon.html url=page.website %}

{{ page.title | escape }}

- {% if page.description %} -

{{ page.description | escape }}

- {% endif %} - {% assign website = page.website | default: page.product_url %} - {% assign updated_at = page.last_modified_at | default: page.last_updated %} - {% if website or page.tags or page.era %} - - {% endif %} + {% include extractable-summary.html %} {% if page.tags %} {% endif %} -
- {{ content }} -
+ - + {% include markdown-body.html %} - {%- comment -%} 添加相关产品推荐 {%- endcomment -%} {% include related-products.html current_product=page limit=4 %} + {% include cite-this.html %} + + diff --git a/_layouts/article.html b/_layouts/article.html index 6aa93a0..57a986c 100644 --- a/_layouts/article.html +++ b/_layouts/article.html @@ -2,28 +2,49 @@ layout: default ---
+ + - {% if page.website or page.tags or page.last_modified_at %} - - {% endif %} + {% include extractable-summary.html %} {% if page.tags %} {% endif %} -
- {{ content }} -
+ + + {% include markdown-body.html %} + + {% include cite-this.html %}
diff --git a/_layouts/default.html b/_layouts/default.html index 5325779..8942138 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,5 +1,5 @@ - + @@ -7,18 +7,28 @@ + - {% include search-engine-verification.html %} - - {% assign meta_title = site.title %} - {% if page.title %} + {% if page.seo_title %} + {% assign meta_title = page.seo_title %} + {% elsif page.title %} {% assign meta_title = page.title | append: ' | ' | append: site.title %} {% elsif page.tag %} - {% assign meta_title = page.tag | append: ' | ' | append: site.title %} + {% assign meta_title = page.tag | append: ' HR AI products | ' | append: site.title %} + {% else %} + {% assign meta_title = site.title %} {% endif %} {% assign meta_description = page.description | default: page.page_description | default: page.product_tagline %} @@ -39,214 +49,102 @@ {% endif %} {% assign site_root = site.url | append: site.baseurl %} {% assign canonical_url = site_root | append: page.url | replace: 'index.html', '' %} + {% assign word_count = content | strip_html | number_of_words %} - {{ meta_title | escape }} - + - - - {% include hreflang.html %} - - + + + + {% if page.layout == 'analysis' or page.layout == 'article' %} + {% assign og_modified = page.last_modified_at | default: page.last_updated %} + {% if og_modified %} + + {% endif %} + + {% endif %} - - + - - - - - - {%- comment -%} 预加载关键资源 {%- endcomment -%} - - + + + - {%- comment -%} 性能优化 meta 标签 {%- endcomment -%} - + - {%- comment -%} 添加资源优先级提示 {%- endcomment -%} - {%- if page.layout == 'product-detail' or page.layout == 'analysis' -%} - - {%- endif -%} + - - - - - - - - - - - + - {% if page.layout == 'product-detail' %} - - {% assign app_description = page.product_tagline | default: page.description | default: '' %} - {% assign app_description = app_description | strip_html | strip_newlines | strip %} - - {% endif %} + {% include structured-data.html %} - {% if page.layout == 'analysis' or page.layout == 'article' %} - - {% assign article_description = page.description | default: page.page_description | default: '' %} - {% assign article_description = article_description | strip_html | strip_newlines | strip %} - {% assign published_at = page.date | default: page.last_modified_at | default: page.last_updated | default: site.time %} - {% assign modified_at = page.last_modified_at | default: page.last_updated | default: site.time %} - {% assign word_count = content | strip_html | number_of_words %} - - {% endif %} - - - - + + + -