Can Json-LD directly reference the image resource address of AnQiCMS, such as the thumbnail URL?

Calendar 81

Empower structured data: Direct reference strategy of AnQi CMS image resources in Json-LD

As an experienced website operation expert, I know that the importance of structured data (Structured Data) in the field of search engine optimization (SEO) in today's era is self-evident.It not only helps search engines better understand page content, but is also the key to obtaining rich search results (Rich Snippets).While Json-LD is the mainstream implementation of structured data, its accuracy and completeness directly affect the exposure and click-through rate of the website.Today, let's delve into a frequently asked question: Can the image resource address of AnQiCMS (AnQiCMS) be directly referenced in Json-LD, especially the thumbnail URL?

The answer is affirmative, it can be directly quoted, and the Anqi CMS has fully considered the accessibility and search engine friendliness of the content from the beginning, making the reference to image resources very intuitive and efficient.

Image management and content presentation of AnQi CMS

AnQi CMS is an enterprise-level content management system based on Go language, and it has many highlights in content management and SEO optimization.It is not just a content publishing tool, but also an intelligent content asset management platform.In terms of image resources, Anqi CMS provides a series of powerful features:

Firstly, the system supports users to directly upload images to the media library and can classify and manage them.This means that every uploaded image will get a unique, accessible storage path within the CMS.It is especially worth mentioning that Anqi CMS has the ability to automatically process images, for example, in the "Content Settings", we can configure whether to automatically download remote images, whether to enable WebP format conversion to optimize loading speed, and whether to automatically compress large images, etc.At the same time, it can also automatically generate and process thumbnails (Thumb) and cover logos (Logo), and even batch regenerate thumbnails of different sizes to adapt to the display needs of different terminals.

These processed images are presented in the front-end template through specific tags such asarchiveDetail/categoryDetail/pageDetailWhen called, Anqi CMS is responsible for outputting the complete URLs of these images.Whether it is the thumbnail of the article detail page, the Banner image of the category page, or the single page illustration, they will eventually be displayed on the page as a directly accessible HTTP or HTTPS address that can be accessed by the browser.This mechanism lays the foundation for directly referencing image addresses in Json-LD.

Json-LD's requirements for image URLs

Json-LD is a lightweight data format that allows website administrators to describe content on web pages in a standardized way, such as the title of the article, the author, the publication date, and most importantly - the accompanying image. Search engines, when parsing Json-LD, pay attention to images (imageThe requirement is usually an absolute URL that can be directly accessed. This means that the image address cannot be a relative path such as/uploads/image.jpgAn absolute URL must include a protocol, domain, and full path, such ashttps://www.yourdomain.com/uploads/image.jpgThis is because search engine crawlers need to be able to accurately locate image resources when crawling and understanding structured data.

Seamless connection of AnQi CMS image resources with Json-LD

Because the image address output by AnQi CMS in the template is a complete and accessible URL, it is perfectly feasible to directly refer to it in Json-LD. The template system of AnQi CMS provides rich tags, allowing us to accurately obtain the URL of the required image:

  • Document thumbnail (Thumb) or cover logo (Logo)For articles, products, and other content models, we can usearchiveDetailEasily obtain the thumbnail or Logo address after CMS processing. For example,{% archiveDetail with name="Thumb" %}It will directly output the thumbnail URL of the current document.
  • Multiple image sets (Images)If the content contains multiple images,Imagesthe field will return an array of image URLs. Typically, we would reference the first image as the representative in Json-LD.
  • Category or page imageLikewise,categoryDetailandpageDetailTags can also retrieve the Logo, Thumb, or Images of the category or page.

The built-in of AnQi CMSjsonLdThe tag further simplifies this process. This tag allows us to customize the Json-LD content in the template and intelligently merge it with the Json-LD data generated by the system by default.This allows us to directly embed the image URL obtained from the template variable intoimageIn the attribute, ensure that the output structured data conforms to the Schema.org specification and accurately points to the image resources of the website.

For example, on the article detail page, we can build Json-LD in this way, referencing the article thumbnail:

{% jsonLd %}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "{{archive.Link}}"
  },
  "headline": "{{archive.Title}}",
  "image": [
    "{% archiveDetail with name="Thumb" %}" // 直接引用缩略图URL
  ],
  "datePublished": "{{stampToDate(archive.CreatedTime, "2006-01-02T15:04:05+08:00")}}",
  "dateModified": "{{stampToDate(archive.UpdatedTime, "2006-01-02T15:04:05+08:00")}}",
  "author": {
    "@type": "Person",
    "name": "AnQiCMS 编辑团队"
  },
  "publisher": {
    "@type": "Organization",
    "name": "{% system with name="SiteName" %}",
    "logo": {
      "@type": "ImageObject",
      "url": "{% system with name="SiteLogo" %}" // 引用网站Logo
    }
  },
  "description": "{{archive.Description}}"
}
</script>
{% endjsonLd %}

In the above example,{% archiveDetail with name="Thumb" %}The absolute URL of the current article thumbnail will be replaced to meet the Json-LD requirement for image address. Similarly,{% system with name="SiteLogo" %}The absolute URL of the website logo is also output. Even if the image has been converted to WebP or resized in the AnQi CMS backend, the output is still the accessible final image URL.

In summary, Anqi CMS, through its comprehensive image management functions and flexible template tag system, provides website operators with a convenient way to seamlessly integrate optimized image resource addresses into Json-LD structured data.This not only simplifies the SEO workflow, but also ensures that the website can be displayed in a richer, more attractive form on the search engine results page, thereby enhancing the overall operational effect.


Frequently Asked Questions (FAQ)

  1. Ask: If my article content has multiple images, which image should Json-LD refer to?Answer: In Json-LD'simageIn the attribute, it is usually recommended to refer to the most representative single image, such as the cover image or thumbnail of the article. If the document content contains multiple images, you can use the AnQiCMS template tag to obtain the image list (such asarchive.ImagesThen select the first image URL from the list for reference, as search engines usually prioritize the first URL in the array.

  2. Ask: Is the image URL generated by AnQi CMS relative or absolute? Is Json-LD required to use an absolute path?Answer: The image URL called by the tag in the front-end template of AnQi CMS is usually an absolute path (including domain and protocol) or a root relative path (starting with/Starting). For Json-LD, search engines explicitly require the use of complete absolute URLs. 幸运的是,AnQiCMS in handling image paths, even if the root relative path is directly displayed in your template, in the final HTML rendering, combined with the website's BaseUrlSettings (can be configured in the backend system), and can also ensure that these paths are correctly parsed as absolute URLs.Even so, when referencing directly in Json-LD, it is best to confirm that the output is a complete absolute URL to ensure safety.

  3. Ask: If the Anqie CMS performs WebP conversion or automatic compression on images in the background, will these optimizations affect the image references in Json-LD?Answer: Not at all. The image optimization function of Anqi CMS is processed on the server side. When you use template tags such as{{archive.Thumb}}When getting the image URL, the one returned is the final accessible image after these optimization processes

Related articles

How to debug Json-LD output in AnQiCMS template?

In the operation practice of AnQiCMS (AnQiCMS), structured data (usually presented in the form of Json-LD) plays a crucial role.It can help search engines better understand the content of the page, thus potentially obtaining rich search results (Rich Snippets), significantly improving the visibility and click-through rate of the website.

2025-11-06

Does Json-LD automatically add `itemprop` and other microdata tags, or only support JSON-LD?

As an experienced website operations expert, I am happy to give you a detailed explanation of AnQiCMS's support strategy for structured data, especially JSON-LD and traditional microdata tags.In today's Search Engine Optimization (SEO) environment, structured data plays a crucial role, helping search engines to accurately understand your web page content, thereby improving the visibility and display format of your website in search results.### The structured data support of AnQi CMS: Deep analysis of JSON-LD and microdata tags In content operation practice

2025-11-06

The website is closed, will Json-LD still output normally or how should it be handled?

In website operation, we often encounter situations where we need to maintain, upgrade, or even temporarily close the website.In this "closed station" state, many operators will have doubts: Will the JSON-LD structured data we have carefully configured for SEO still be output normally?How should it be handled to minimize the impact on search engine optimization (SEO) as much as possible?As an experienced website operation expert, I will combine the characteristics of AnQiCMS (AnQiCMS) to deeply analyze this issue for everyone.### Deeply understand the "shutdown" mechanism of Anqi CMS First

2025-11-06

How to ensure the correct setting of the `@type` attribute for different page types when customizing Json-LD?

As an experienced website operations expert, I fully understand the importance of structured data (Structured Data) in modern search engine optimization (SEO).It is like a 'resume' of your website content, directly telling search engines what your page is about and what key information it contains.While Json-LD is a recommended structured data format, the correct setting of its `@type` attribute is crucial to ensure that search engines can accurately understand the core content of your page.Today, let's delve deeply into AnQiCMS (AnQiCMS)

2025-11-06

Can AnQiCMS's Json-LD combine `nextArchive` and `prevArchive` tags to generate structured data for related articles?

As an experienced website operations expert, I know that structured data plays a crucial role in modern search engine optimization.It can help search engines understand web content more accurately, thus giving them the opportunity to display richer search results (Rich Snippets), attracting more users to click.AnQiCMS (AnQiCMS) is an enterprise-level content management system that attaches great importance to SEO and naturally provides strong support and flexible customization space in this regard.

2025-11-06

How to get the list of all configured multilingual sites in AnQiCMS?

As an experienced website operations expert, I am well aware that having a website that supports multiple languages is crucial for businesses to expand their markets and enhance brand influence in today's global digital world.AnQiCMS (AnQi CMS) is an efficient and flexible content management system that provides excellent support in this regard.It can not only help us build multiple independent sites, but also allow these sites to easily switch between different languages, meeting the needs of global users.

2025-11-06

How to use the `languages` tag in AnQiCMS templates to display language options?

In today's globalized digital world, multilingual support for websites has become crucial for expanding markets and serving a diverse range of user groups.AnQiCMS (AnQiCMS) is well-versed in this field, deeply integrating multilingual functionality into its core architecture, committed to providing lightweight and efficient content management services to support the company's global layout.For website operators and template developers, understanding how to efficiently use the `languages` tag in AnQiCMS templates to display multilingual options is a required course for building internationalized websites.###

2025-11-06

What are the available return fields supported by the AnQiCMS multilingual site list tag?

In the powerful feature matrix of AnQiCMS (AnQiCMS), multi-language support is undoubtedly one of its highlights, helping businesses easily expand into the international market and bringing content directly to global users.In order to achieve this goal, it is crucial to flexibly use template tags.Today, let's delve into the `languages` tag used in AnQiCMS to retrieve the list of multilingual sites, see what valuable fields it can return to us, and how we can skillfully use these fields to build an excellent multilingual website.### Revealing the `languages` tag

2025-11-06