How to display the friend link list in Anqi CMS and distinguish the rel="nofollow" attribute?

Calendar 👁️ 60

Friendship links play an important role in website operation, not only helping to increase the number of external links on the website, but also having a positive impact on search engine optimization (SEO), and providing users with more access to related resources. However, not all friendship links are suitable for passing on weight or obtaining search engines' 'recommendations', at this pointrel="nofollow"The attribute is particularly important.

AnQiCMS (AnQiCMS) is a powerful content management system that fully considers the needs of website operators, provides a convenient link management function, and can control flexiblynofollowAttribute, helps the website better manage external link relationships, balancing SEO benefits and compliance.

Management of friendship links in Anqi CMS

On the Anqi CMS backend, you can easily find and manage friend links.Generally, there will be an option for 'Friend Links' under the 'Function Management' menu.Here, you can add new友情链接, edit the information of existing links.

When adding or editing a friendship link, the system will provide several key settings including:

  • Link NameThis is the text displayed on the website front end for the friendship link, it should be concise and clear, accurately conveying the content of the link.
  • Link AddressThis points to the URL of the target website.
  • Link note: Enter some internal remarks information for easy management and identification.
  • Link nofollowThis is a very critical option. When you check or enable this option, Anqi CMS will automatically add the friendship link.rel="nofollow"Property.This means you are telling the search engine not to track this link and not to pass the weight of your website to the target website.This is very useful when dealing with paid links, links of uncertain content quality, or avoiding over-optimization.

Through the friendly interface of the background, you can manage each link in detail, deciding whether it hasnofollowattributes, thereby better controlling the website's SEO strategy.

Display friendship link list in front-end template

Display the friend links set up in the background on the website front end, which requires implementing through the Anqi CMS template tags. Anqi CMS provides speciallinkListLabels, allowing you to easily retrieve and cycle through all friendship links.

First, in your template file (such as the bottom of the website'sfooter.htmlOr a dedicated friendship link page template), you can uselinkListtag to retrieve friendship link data. This tag will treat the friendship link list as an array object (for example, namedfriendLinksPass to the template.

{% linkList friendLinks %}
    {% if friendLinks %} {# 判断是否存在友情链接 #}
        <div class="friendship-links-section">
            <h3>友情链接</h3>
            <ul>
            {% for item in friendLinks %} {# 循环遍历每一个友情链接 #}
                <li>
                    {# 根据 item.Nofollow 的值来动态添加 rel="nofollow" 属性 #}
                    <a href="{{item.Link}}" {% if item.Nofollow == 1 %} rel="nofollow"{% endif %} target="_blank" title="{{item.Remark}}">
                        {{item.Title}}
                    </a>
                </li>
            {% endfor %}
            </ul>
        </div>
    {% endif %}
{% endlinkList %}

In the above code example,{% linkList friendLinks %}Gathered all friendship links and stored them infriendLinksthe variable. Then,{% for item in friendLinks %}Traversed this list, eachitemrepresenting a friendship link.

The core lies in{% if item.Nofollow == 1 %} rel="nofollow"{% endif %}This logic.item.NofollowIt will return a boolean value or a 0/1 integer indicating whether the link is set asnofollow. If the value is1(ortrue), the template will be<a>added dynamically in the tag.rel="nofollow"Property. At the same time, in order to provide a better user experience and external link specification, we usually addtarget="_blank"to open the link in a new window, and usetitle="{{item.Remark}}"to display the note information.

This way, you can clearly display友情链接 links on the website front-end and flexibly control according to the settings in the backgroundnofollowattributes to ensure that your SEO strategy is effectively implemented

Optimization and注意事项

When managing and displaying friend links, there are some points worth noting to ensure the healthy development of the website:

  • Link location selection: Friend links are usually placed at the bottom (Footer) area of a website or on a separate friend links page.Choosing the right position helps enhance user experience and clarify the nature of these links.
  • Link relevanceChoose links that are highly relevant to the content of your website, as this can bring more precise traffic and is also easier to gain the recognition of search engines.
  • nofollowUse case:
    • Paid link/ad link: Any link obtained through paid means should be addednofollow, to avoid being identified as cheating by search engines.
    • User Generated Content (UGC)In comment sections, forums, and other places where users can freely post links, even if not directly as friend links, it should be considered to addnofollowor similar properties (such asugcTo prevent spam links and SEO risks.
    • Websites with low trustworthiness: Add if the quality of the linked website is poor, the content is illegal or unstable.nofollowCan protect your own website from being involved.
  • AnQi CMS automaticnofollowmechanism: In addition to manually setting the links'nofollowIn addition to the attributes, AnQi CMS also provides the function of 'whether to automatically filter external links' in the 'Content Settings'. If this option is set to 'do not filter external links', the system will automatically add all external links in the article contentrel="nofollow"Property. This is a very practical feature that can prevent content editors from inadvertently passing weight to unnecessary external links, further enhancing the website's SEO control.

Through these functions of AnQi CMS, you can manage and display friend links with precision, enjoying the SEO and traffic benefits brought by friend links while effectively avoiding potential risks to ensure the long-term healthy development of the website.


Frequently Asked Questions (FAQ)

Q1: What is the role of the friendship link attribute?rel="nofollow"What is the role of the attribute?A1: rel="nofollow"The attribute tells the search engine not to follow this link and not to pass the weight of your website or 'link juice' to the target website.It is mainly used to avoid providing SEO recommendations for paid links, untrustworthy content, or external links that do not want to pass on weight.

Q2: Should I add the attribute to all friendship links?nofollowShould I add the attribute?A2: It depends on your specific strategy. If you have pure mutual benefit with the other party, and the content is highly relevant and of good quality, you may consider not addingnofollowPass on the weight. However, it is strongly recommended to add for any form of paid links, advertising links, or links whose content quality and stability you are unsure ofnofollowProperty.

Q3: Besides friend links, what types of links will Anqi CMS automatically add?rel="nofollow"?A3: In the Anqi CMS backend "Content Settings", if the "Auto-filter External Links" feature is enabled and "Do not filter external links" is selected, the system will automatically add all external links in the published content (such as articles, product details, etc.)rel="nofollow"Property. This helps to unify the management of external link behavior in content, preventing unexpected weight loss.

Related articles

How to use Anqi CMS tags and filters to format date and timestamp display?

The timeliness and readability of website content largely depend on the accuracy and aesthetics of date and time information.AnQi CMS as an efficient content management system provides flexible tags and filters, helping us easily implement personalized display of dates and timestamps, making your website content more in line with user habits and enhancing the overall reading experience.This article will deeply explore how to巧妙运用these functions in Anqi CMS, converting raw time data into a clear and understandable display form.### Understand the Date and Time Data in Anqi CMS In Anqi CMS

2025-11-09

How to display related recommended documents on the document detail page of AnQi CMS and customize the recommendation logic?

After visitors have read an interesting document or viewed a product introduction on your website, if they can get more relevant recommendations in a timely manner, it will undoubtedly greatly enhance their visit experience, extend their stay time, and encourage them to explore more corners of the website.AnQi CMS knows this and provides flexible and diverse features to help you cleverly display related recommendations on the document detail page, and can customize the recommendation logic according to your operational strategy. We will delve into how to implement this feature in Anqi CMS in detail.###

2025-11-09

How to display the links and titles of the previous and next documents in AnQi CMS?

How to easily display the link and title of the previous and next document in AnQi CMS?When browsing website articles, we often hope to smoothly jump from the current content to the previous or next related article. This seamless reading experience not only enhances user satisfaction but also has a positive effect on the overall structure of the website's content and SEO optimization.AnQi CMS is well-versed in this, providing content operators with an extremely convenient way to deploy such navigation functions with its flexible and powerful template engine.

2025-11-09

How to display filter conditions on the document list page of Anqi CMS and dynamically update results based on parameters?

In AnQi CMS, adding filtering conditions to the document list page and dynamically updating the results based on user selection is an important aspect of improving the discoverability and user experience of website content.This not only helps visitors quickly locate the content they are interested in, but also has a positive impact on SEO through a clear URL structure.Let's understand step by step how to implement this feature in Anqi CMS. ### Core Function: Content Model and Custom Fields are Basic Everything in Anqi CMS is built based on the "Content Model". The filtering function on the document list page

2025-11-09

How to configure and display the site name, Logo, and filing information for Anqi CMS website?

The identity of a website often starts with its site name, logo, and filing information.In AnqiCMS, configuring and displaying these core information is the first step in building a website and is also a crucial step.The entire process is intuitive and convenient, even if you are a beginner using AnqiCMS, you can easily complete it.Next, we will introduce how to complete these settings in AnqiCMS and display them on your website.--- ### **First Step: Configure the website's basic information** First

2025-11-09

How to safely render HTML content generated by a rich text editor in the Anqi CMS template?

When building a website, a rich text editor (Rich Text Editor, abbreviated as RTE) is undoubtedly a powerful tool for content creation. It allows operators to edit content in a visual way, easily adding formats, images, links, and even tables, greatly enhancing the richness of content presentation.However, when this HTML content generated by RTE needs to be displayed in the front-end template of the website, how to ensure its safe rendering while retaining the expected style and structure is a problem that requires careful consideration.

2025-11-09

How to implement lazy loading of images and automatically convert them to WebP format to optimize display performance in AnQi CMS?

## Speed up website image loading: The secret of AnQiCMS image lazy loading and automatic WebP conversion In today's increasingly rich digital content, the quality and loading speed of website images directly affect user experience, search engine rankings, and the overall conversion rate of the website.Imagine if the images on a website load slowly, visitors are likely to leave before the content is fully displayed.The good news is that AnQiCMS has provided us with a set of efficient solutions, through the two functions of image lazy loading and automatic WebP conversion, so that the visual content of the website can be guaranteed in terms of quality at the same time

2025-11-09

How to display user submitted content in the comment list or message board of Anqi CMS?

In website operation, user-generated content (UGC) is an important aspect for enhancing interaction and activity, whether it is the comments below the articles or the overall message board of the website, it can effectively promote user communication and feedback collection.AnQiCMS was designed with a strong emphasis on user interaction from the beginning and provides powerful and flexible features for managing and displaying the content submitted by users. In order to display user-submitted comments or messages on Anqi CMS, the key is to understand its template mechanism and the corresponding built-in tags.

2025-11-09