Website page publishing method and device, content management system and storage medium

By writing crawling configuration files and content configuration files in the content management system and generating rendered web page tag files, the problem of search engine crawling is solved, and the rapid crawling of website pages and traffic improvement is achieved.

CN119226645APending Publication Date: 2024-12-31DEEPAL AUTOMOBILE NANJING RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310780264.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the prior art, the website page requested by the search engine is a model page rather than a final rendered page, which makes the content crawled by the search engine unfavorable to the natural ranking and traffic of the website.

Method used

Through the content management system, obtain the publishing request of the website page, write the crawling configuration file and content configuration file to the server, use the content configuration file and model page to generate the rendered web page tag file, realize the publishing of the website page on the client, and searching The website information corresponding to the crawl configuration file is displayed when the engine requests.

Benefits of technology

This improves the website's natural ranking and traffic, ensuring that the newly created website pages can be quickly crawled by search engines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119226645A_ABST
    Figure CN119226645A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of website page application, in particular to a website page publishing method and device, a content management system and a storage medium, and the method comprises the steps: obtaining a publishing request of a website page; writing a crawling configuration file of the website page into a root directory of a server according to the publishing request, storing a content configuration file of the website page into the server, and generating a rendered webpage label file by utilizing the content configuration file and the model page; and issuing the website page at the client according to the webpage label file, and displaying website information in a crawling range corresponding to the crawling configuration file on the website page when a search request of a search engine is obtained. Therefore, the problems that in the related technology, a search engine requests a model page instead of content needing to be finally displayed, grabbing of the search engine is not facilitated, and the natural ranking of websites and the flow of the websites are reduced are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of website page application, and in particular to a website page publishing method, device, content management system and storage medium. Background Art

[0002] Single-page web applications are the mainstream of today's website development technology. Many traditional websites are or have been transformed into single-page web applications, including mobile development technology is also transforming to single-page H5. Vue is also a web application framework for creating single-page applications. Using single-page web applications, you can create an information website such as a portal website or an official website. Since these websites often need to publish new information or modify old information, frequent development and deployment are definitely not applicable, so CMS (Content Management System) came into being. CMS is equivalent to the backend manager of this type of information website, which can control the content of the front-end website information. Content creators, editors, and publishers use the content management system to submit, modify, approve, and publish content.

[0003] In the related art, the text, pictures and other data that need to be displayed on the information website are stored in a database, and the data in the database is obtained through network access requests. At this time, the HTML on the server side will not render the data part, and the data can only be rendered on the browser side. That is, the HTML requested by the search engine is a model page rather than a rendering page of the final data, which is not conducive to the search engine's crawling, and the crawled content is not the rendering page of the final data, that is, the content that the website needs to display, which reduces the website's traffic. Summary of the invention

[0004] The present application provides a website page publishing method, device, content management system and storage medium to solve the problem in the prior art that the search engine requests a model page instead of the final content to be displayed, which is not conducive to the search engine's crawling, thereby reducing the website's natural ranking and website traffic.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] The first aspect of the present application provides a method for publishing a website page, which uses a content management system to publish a website page. The method includes the following steps: obtaining a publishing request for a website page; writing a crawling configuration file of the website page to a root directory of a server according to the publishing request, and storing a content configuration file of the website page to the server, and generating a rendered web page tag file using the content configuration file and a model page; publishing the website page on a client according to the web page tag file, and displaying website information within a crawling range corresponding to the crawling configuration file on the website page when a search request from a search engine is obtained.

[0007] According to the above technical means, the embodiment of the present application crawls the website page's crawling configuration file and the content according to the website page's publishing request.

[0008] The content configuration file is written to the corresponding location, and the rendered web page tag file is generated using the content configuration file and the model page to realize the publishing of the website page on the client. When the search engine's search request is obtained, the website page displays the website information within the crawling range corresponding to the crawling configuration file, so that the newly created website page can be quickly crawled by the search engine, thereby improving the website's natural ranking and website traffic.

[0009] Furthermore, the use of the content configuration file and the model page to generate a rendered web page tag file includes: creating a server-side rendering application based on a preset application framework of the client; integrating the content configuration file into the model page, and using the server-side rendering application to render the model page to obtain the web page tag file.

[0010] According to the above-mentioned technical means, the embodiment of the present application creates a server-side rendering application based on the preset application framework of the client, and integrates the content configuration file into the model page, and uses the server-side rendering application to render the model page to obtain a web page tag file, so that the page subsequently obtained by the search engine is the rendered website page.

[0011] Furthermore, writing the crawling configuration file of the website page into the root directory of the server according to the publishing request and storing the content configuration file of the website page into the server includes: triggering a publishing application according to the publishing request; using the publishing application to read the crawling configuration file and the content configuration file from a database, writing the crawling configuration file into the root directory of the server, and storing the content configuration file into the server in a preset format.

[0012] According to the above technical means, the embodiment of the present application triggers the publishing application according to the publishing request, uses the publishing application to read the crawling configuration file and the content configuration file from the database, and writes them to the corresponding location, so as to facilitate the subsequent crawling of the corresponding website information and web page content through the search engine.

[0013] Furthermore, before using the publishing application to read the crawl configuration file and the content configuration file from the database, it also includes: setting a first crawl file and a second crawl file for the website page, generating the crawl configuration file according to the first crawl file and the second crawl file, and storing it in the database, wherein the first crawl file is used to declare the crawling range of the search engine, and the second crawl file is used to declare the directory of the crawled website; configuring the crawling fields and text content of the website page to obtain the content configuration file, and storing the content configuration file in the database.

[0014] According to the above technical means, the crawling configuration file of the embodiment of the present application is mainly used to declare the crawling range of the search engine and declare the directory of the crawled website, so as to enable the search engine to crawl website information more efficiently in the future.

[0015] A second aspect of the present application provides a method for displaying website pages, wherein the method utilizes a content management system to display website pages, wherein the method comprises the following steps: obtaining a search request from a search engine; crawling a web page tag file of one or more website pages according to the search request, wherein the web page tag file is a format file corresponding to a rendered web page generated based on a content configuration file and a model page of the website page; sending the web page tag file of the website page to a client, wherein the client displays the website page according to the web page tag file, and displays website information within the crawling range corresponding to the crawling configuration file in the website page.

[0016] The third aspect of the present application provides a website page publishing device, which uses a content management system to publish website pages, wherein the device includes: a first acquisition module, which is used to obtain a website page publishing request; a writing module, which is used to

[0017] The crawling configuration file of the website page is written into the root directory of the server according to the publishing request, and the content configuration file of the website page is stored in the server, and the rendered web page tag file is generated by using the content configuration file and the model page; a display module is used to realize the publishing of the website page on the client according to the web page tag file, and when a search request of the search engine is obtained, the website information within the crawling range corresponding to the crawling configuration file is displayed on the website page.

[0018] Furthermore, the writing module is further used to: create a server-side rendering application according to a preset application framework of the client; integrate the content configuration file into the model page, and use the server-side rendering application to render the model page to obtain the web page tag file.

[0019] Furthermore, the writing module is further used to: trigger a publishing application according to the publishing request; use the publishing application to read the crawling configuration file and the content configuration file from the database, write the crawling configuration file to the root directory of the server, and store the content configuration file to the server in a preset format.

[0020] Furthermore, the writing module is further used to: set the first crawl file and the second crawl file of the website page, generate the crawl configuration file according to the first crawl file and the second crawl file, and store it in the database, wherein the first crawl file is used to declare the crawling range of the search engine, and the second crawl file is used to declare the directory of the crawled website; configure the crawling fields and text content of the website page to obtain the content configuration file, and store the content configuration file in the database.

[0021] The fourth aspect of the present application provides a device for displaying website pages, wherein the device uses a content management system to display website pages, wherein the device includes: a second acquisition module, used to obtain a search request from a search engine; a crawling module, used to crawl one or more web page tag files of a website page according to the search request, wherein the web page tag file is a format file corresponding to the rendered web page generated based on the content configuration file of the website page and the model page; a sending module, which sends the web page tag file of the website page to a client, wherein the client displays the website page according to the web page tag file, and displays the website information within the crawling range corresponding to the crawling configuration file in the website page.

[0022] The fifth aspect of the present application provides a content management system, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for displaying a website page as described in the above embodiment.

[0023] The sixth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement the website page display method as described in the above embodiment.

[0024] Beneficial effects of the present invention:

[0025] (1) The embodiment of the present application writes the crawling configuration file and the content configuration file of the website page to the corresponding location according to the publishing request of the website page, and uses the content configuration file and the model page to generate a rendered web page tag file to realize the publishing of the website page on the client. When the search engine's search request is obtained, the website page displays the website information within the crawling range corresponding to the crawling configuration file, so that the newly created website page can be quickly crawled by the search engine, thereby improving the website's natural ranking and website traffic.

[0026] (2) The embodiment of the present application creates a server-side rendering application based on the preset application framework of the client, and integrates the content configuration file into the model page, and uses the server-side rendering application to render the model page to obtain a web page tag file, so that the page subsequently obtained by the search engine is the rendered website page.

[0027] (3) The embodiment of the present application triggers a publishing application according to a publishing request, uses the publishing application to read a crawling configuration file and a content configuration file from a database, and writes them to corresponding locations, so as to facilitate subsequent crawling of corresponding website information and web page content through a search engine.

[0028] (4) The crawling configuration file of the embodiment of the present application is mainly used to declare the crawling scope of the search engine and declare the directory of the crawled website, so that the search engine can crawl the website information more efficiently in the future.

[0029] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A flowchart of a method for publishing a website page according to an embodiment of the present application;

[0031] Figure 2 A flowchart of a method for displaying a website page according to another embodiment of the present application;

[0032] Figure 3 Design effect diagram of sitemap.xml and robots.txt files of a website configured according to an embodiment of the present application;

[0033] Figure 4 A design rendering of a newly created page provided according to an embodiment of the present application;

[0034] Figure 5 A flowchart of creating a single-page application supporting SEO (Search Engine Optimization) using a CMS system according to an embodiment of the present application;

[0035] Figure 6 A structural diagram of a website page publishing device provided according to an embodiment of the present application;

[0036] Figure 7 A structural diagram of a device for displaying website pages according to another embodiment of the present application;

[0037] Figure 8 It is a structural diagram of a content management system provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0039] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0040] Specifically, Figure 1 A flowchart of a method for publishing a website page provided in accordance with an embodiment of the present application.

[0041] like Figure 1 As shown, the method for publishing the website page includes the following steps:

[0042] In step S101, a publishing request for a website page is obtained.

[0043] It can be understood that the embodiment of the present application obtains a publishing request for a website page so as to generate a responsive web page tag file according to the request.

[0044] In step S102, the crawling configuration file of the website page is written into the root directory of the server according to the publishing request, and the content configuration file of the website page is stored in the server, and the rendered web page tag file is generated using the content configuration file and the model page.

[0045] Among them, the crawling configuration files include sitemap.xml and robots.txt files. The robots.txt file facilitates the search engine to crawl to the location of the relevant website. It can also declare the sitemap.xml file and its location. It is the permission for the search engine to crawl the website. The sitemap file is like providing a directory of a target website to the search engine, allowing the search engine to crawl the target website information more efficiently without specific restrictions.

[0046] Among them, the content configuration file includes the main text content displayed on the page, such as text, pictures, etc., or the internal structure, tags, picture descriptions, internal links, external links, etc. of the page, without specific limitations.

[0047] It is understandable that the embodiment of the present application writes the crawling configuration file and content configuration file of the website page to the corresponding location, and uses the content configuration file and the model page to generate a rendered web page tag file to facilitate the subsequent publishing of the website page on the client.

[0048] It should be noted that when configuring the content of a newly created page in the CMS system, one part is the configuration of search engine crawling fields, including title, description, keyword, etc., and the other part is the configuration of the main content of the website page.

[0049] In an embodiment of the present application, a crawl configuration file of a website page is written to the root directory of a server according to a publishing request, and a content configuration file of the website page is stored on the server, including: triggering a publishing application according to the publishing request; using the publishing application to read a crawl configuration file and a content configuration file from a database, writing the crawl configuration file to the root directory of the server, and storing the content configuration file on the server in a preset format.

[0050] The preset format may be a JSON file format, without any specific limitation.

[0051] It can be understood that the embodiment of the present application triggers the publishing application according to the publishing request, uses the publishing application to read the crawling configuration file and the content configuration file from the database, and writes them to the corresponding location, so as to facilitate the subsequent crawling of the corresponding website information and web page content through the search engine.

[0052] It should be noted that the publishing application can be a JAVA backend microservice, which acts as a bridge between the backend CMS system and the frontend display website. It can query the information saved in the database by the CMS and then pass the information to the server of the frontend display website.

[0053] In an embodiment of the present application, before using the publishing application to read the crawl configuration file and the content configuration file from the database, it also includes: setting a first crawl file and a second crawl file for the website page, generating a crawl configuration file based on the first crawl file and the second crawl file, and storing it in the database, wherein the first crawl file is used to declare the crawling range of the search engine, and the second crawl file is used to declare the directory of the crawled website; configuring the crawling fields and text content of the website page to obtain the content configuration file, and storing the content configuration file in the database.

[0054] The first crawling file may be a sitemap.xml file, and the second crawling file may be a robots.txt file, without any specific limitation.

[0055] It can be understood that the crawling configuration file of the embodiment of the present application is mainly used to declare the crawling scope of the search engine and declare the directory of the crawled website, so as to enable the search engine to crawl website information more efficiently later.

[0056] It should be noted that the CMS system configures the sitemap.xml and robots.txt files of the entire website. The robots.txt file is used for search engine crawling. The sitemap.xml file and its location are declared in the robots.txt file. Robots.txt is the permission for the search engine to crawl the website. The sitemap file provides the search engine with the directory of the website, allowing the search engine to crawl the website information more efficiently, and the configured sitemap.xml and robots.txt file contents are stored in the database.

[0057] In an embodiment of the present application, a rendered web page tag file is generated using a content configuration file and a model page, including: creating a server-side rendering application based on a preset application framework of the client; integrating the content configuration file into the model page, and using the server-side rendering application to render the model page to obtain a web page tag file.

[0058] The preset application framework may be Nuxt.js, a general application framework based on Vue.js, without any specific limitation.

[0059] It can be understood that the embodiment of the present application creates a server-side rendering application based on the preset application framework of the client, integrates the content configuration file into the model page, and uses the server-side rendering application to render the model page to obtain a web page tag file, so that the page subsequently obtained by the search engine is the rendered website page.

[0060] It should be noted that the front-end display website uses Nuxt.js, a general application framework based on Vue.js, which can be used to create server-side rendering applications and integrate information data into HTML on the server side.

[0061] In step S103, the website page is published on the client according to the web page tag file, and when a search request from a search engine is obtained, the website information within the crawling range corresponding to the crawling configuration file is displayed on the website page.

[0062] It can be understood that when the embodiment of the present application obtains a search request from a search engine, the website page displays the website information within the crawling range corresponding to the crawling configuration file, so that the newly created website page can be quickly crawled by the search engine, thereby improving the website's natural ranking and website traffic.

[0063] It should be noted that when the front-end display website needs to publish a new web page, the publishing application is started, the information stored in the database by the CMS system is converted into the format of the corresponding file, and the file is stored in the designated directory of the front-end display website server, and then the repackaging and deployment mechanism of the front-end display website is triggered to deploy the new information website content again.

[0064] According to the website page publishing method proposed in the embodiment of the present application, the crawling configuration file and the content configuration file of the website page are written to the corresponding locations according to the publishing request of the website page, and the rendered web page tag file is generated by using the content configuration file and the model page to realize the publishing of the website page on the client. When the search engine's search request is obtained, the website page displays the website information within the crawling range corresponding to the crawling configuration file, so that the newly created website page can be quickly crawled by the search engine, thereby improving the website's natural ranking and website traffic.

[0065] Specifically, Figure 2 A flowchart of a method for displaying a website page provided in accordance with another embodiment of the present application.

[0066] like Figure 2 As shown, the method for displaying the website page includes the following steps:

[0067] In step S201, a search request of a search engine is obtained.

[0068] It is understandable that the embodiment of the present application can obtain the search request of the search engine so as to subsequently crawl the web page tag file of the website page according to the search request.

[0069] In step S202, web page tag files of one or more website pages are crawled according to the search request, wherein the web page tag file is a format file corresponding to the rendered web page generated based on the content configuration file of the website page and the model page.

[0070] It is understandable that the embodiment of the present application crawls the web page tag file of the website page according to the search request, so as to facilitate the subsequent display of related web pages on the website.

[0071] In step S203, the web page tag file of the website page is sent to the client, wherein the client displays the website page according to the web page tag file, and displays the website information within the crawling range corresponding to the crawling configuration file in the website page.

[0072] It can be understood that the embodiment of the present application sends the web page tag file of the website page to the client, displays the website page according to the web page tag file, and displays the website information within the crawling range corresponding to the crawling configuration file in the website page, so that the search engine request can directly crawl the required information, thereby improving the natural ranking of the website and thus increasing the traffic of the website.

[0073] According to the website page display method proposed in the embodiment of the present application, a search request of a search engine is obtained, a web page tag file of the website page is crawled according to the search request, the web page tag file of the website page is sent to a client, the website page is displayed according to the web page tag file, and the website information within the crawling range corresponding to the crawling configuration file is displayed on the website page, so that the search engine request can directly crawl the required information, thereby improving the natural ranking of the website, thereby increasing the traffic of the website.

[0074] The following will be combined Figure 3 , Figure 4 and Figure 5 The method for publishing a website page proposed in the embodiment of the present application is described in detail as follows:

[0075] (1) Setting up the sitemap.xml and robots.txt files of the website

[0076] 1. Configure the contents of these two files in the CMS management background, and pay attention to the file format.

[0077] 2. Save the configured file content to the database.

[0078] 3. Publish the two file configurations. The published application queries the sitemap.xml and robots.txt file information saved in the database and passes them to the server side of the Nuxt application. The server side of the Nuxt application introduces the Node.js file system module, writes the configuration to these two files, and stores them in the root directory of the server.

[0079] Key code:

[0080] const fs = require('fs')

[0081] fs.writeFile("file path", "content", function(msg){})

[0082] (II) New page of the website

[0083] 1. Create a page you want to publish in the CMS management background and specify the route of this page.

[0084] 2. Configuration content:

[0085] 2.1 Configure the SEO (Search Engine Optimization) items of the page, including the page title, description, keywords, etc.

[0086] 2.2 Configure the main content displayed on the page, including text, pictures, etc. It should be noted that the main content should also optimize the internal structure, tags, picture descriptions, internal links, external links, etc. of the page. For example, use semantic H5 tags, add alt attributes to pictures, increase the density of links within the site, the denser the better, to increase the relevance between pages, add friendly links or links from other related platforms.

[0087] 3. Save the configured page content to the database.

[0088] 4. Publish the page. The publishing application queries the page information saved in the database and stores it in the format of a JSON file on the server side of the Nuxt application.

[0089] 5. The server side of the Nuxt application reads the content of the JSON file, uses javascript to fill the configured text content into the HTML body tag, sets the title in the title tag, and then sets items such as keyword, description, etc. in the HTML meta tag to generate a new HTML file on the server side.

[0090] Key code:

[0091] const fs = require('fs')

[0092] fs.readFile(“ / file / xxxx.json”,function(msg,data){})

[0093] 6. The Nuxt framework application is repackaged and deployed. The packaging here adopts the generate method. Run the command nuxtgenerate to package the application, and generate the corresponding HTML file according to the routing configuration to complete the deployment of the static site.

[0094] 7. On the Nuxt application website, follow the route specified in step 1 to access the newly created page.

[0095] Next, a device for publishing website pages according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0096] Figure 6 It is a block diagram of a device for publishing website pages according to an embodiment of the present application.

[0097] like Figure 6 As shown, the website page publishing device 10 includes: a first acquisition module 110 , a writing module 120 and a display module 130 .

[0098] Among them, the first acquisition module 110 is used to obtain the publishing request of the website page; the writing module 120 is used to write the crawling configuration file of the website page into the root directory of the server according to the publishing request, and store the content configuration file of the website page to the server, and use the content configuration file and the model page to generate a rendered web page tag file; the display module 130 is used to realize the publishing of the website page on the client according to the web page tag file, and when the search request of the search engine is obtained, the website information within the crawling range corresponding to the crawling configuration file is displayed on the website page.

[0099] In an embodiment of the present application, the writing module 120 is further used to: create a server-side rendering application according to a preset application framework of the client; integrate the content configuration file into the model page, and use the server-side rendering application to render the model page to obtain a web page tag file.

[0100] In an embodiment of the present application, the writing module 120 is further used to: trigger a publishing application according to a publishing request; use the publishing application to read a crawling configuration file and a content configuration file from a database, write the crawling configuration file to the root directory of the server, and store the content configuration file to the server in a preset format.

[0101] In an embodiment of the present application, the writing module 120 is further used to: set a first crawl file and a second crawl file for website pages, generate a crawl configuration file based on the first crawl file and the second crawl file, and store it in a database, wherein the first crawl file is used to declare the crawling range of the search engine, and the second crawl file is used to declare the directory of the crawled website; configure the crawling fields and text content of the website pages to obtain the content configuration file, and store the content configuration file in the database.

[0102] It should be noted that the aforementioned explanation of the embodiment of the method for displaying website pages is also applicable to the device for displaying website pages of this embodiment, and will not be repeated here.

[0103] According to the website page display device proposed in the embodiment of the present application, the crawling configuration file and the content configuration file of the website page are written to the corresponding positions according to the publishing request of the website page, and the rendered web page tag file is generated by using the content configuration file and the model page to realize the publishing of the website page on the client. When the search engine's search request is obtained, the website page displays the website information within the crawling range corresponding to the crawling configuration file, so that the newly created website page can be quickly crawled by the search engine, thereby improving the website's natural ranking and website traffic.

[0104] Next, a device for displaying website pages according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0105] Figure 7 It is a block diagram of a device for displaying website pages according to an embodiment of the present application.

[0106] like Figure 7 As shown, the website page display device 20 includes: a second acquisition module 210, a crawling module 220 and a sending module 230.

[0107] Among them, the second acquisition module 210 is used to obtain the search request of the search engine; the crawling module 220 is used to crawl the web page tag files of one or more website pages according to the search request, wherein the web page tag file is a format file corresponding to the rendered web page generated based on the content configuration file of the website page and the model page; the sending module 230 sends the web page tag file of the website page to the client, wherein the client displays the website page according to the web page tag file, and displays the website information within the crawling range corresponding to the crawling configuration file in the website page.

[0108] It should be noted that the aforementioned explanation of the embodiment of the method for displaying website pages is also applicable to the device for displaying website pages of this embodiment, and will not be repeated here.

[0109] According to the website page display device proposed in the embodiment of the present application, a search request of a search engine is obtained, a web page tag file of the website page is crawled according to the search request, the web page tag file of the website page is sent to a client, the website page is displayed according to the web page tag file, and the website information within the crawling range corresponding to the crawling configuration file is displayed on the website page, so that the search engine request can directly crawl the required information, thereby improving the natural ranking of the website, thereby increasing the traffic of the website.

[0110] Figure 8A schematic diagram of the structure of a content management system provided in an embodiment of the present application. The content management system may include:

[0111] A memory 801 , a processor 802 , and a computer program stored in the memory 801 and executable on the processor 802 .

[0112] When the processor 802 executes the program, the website page display method provided in the above embodiment is implemented.

[0113] Furthermore, the content management system also includes:

[0114] The communication interface 803 is used for communication between the memory 801 and the processor 802 .

[0115] The memory 801 is used to store computer programs that can be executed on the processor 802 .

[0116] The memory 801 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0117] If the memory 801, the processor 802 and the communication interface 803 are implemented independently, the communication interface 803, the memory 801 and the processor 802 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0118] Optionally, in a specific implementation, if the memory 801, the processor 802 and the communication interface 803 are integrated on a chip, the memory 801, the processor 802 and the communication interface 803 can communicate with each other through an internal interface.

[0119] The processor 802 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0120] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method for displaying website pages as described above is implemented.

[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0122] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0123] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0124] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0125] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0126] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for publishing a website page, characterized in that: The method utilizes a content management system to publish website web pages, wherein the method comprises the following steps: Get the publishing request of the website page; Writing the crawling configuration file of the website page into the root directory of the server according to the publishing request, storing the content configuration file of the website page into the server, and generating a rendered web page tag file using the content configuration file and the model page; The website page is published on the client according to the web page tag file, and when a search request from a search engine is obtained, the website information within the crawling range corresponding to the crawling configuration file is displayed on the website page.

2. The method for publishing a website page according to claim 1, characterized in that: The step of generating a rendered web page tag file by using the content configuration file and the model page includes: Creating a server-side rendering application according to a preset application framework of the client; The content configuration file is integrated into the model page, and the model page is rendered using the server-side rendering application to obtain the web page tag file.

3. The method for publishing a website page according to claim 1, characterized in that: The step of writing the crawling configuration file of the website page into the root directory of the server according to the publishing request and storing the content configuration file of the website page into the server comprises: triggering a publishing application according to the publishing request; The publishing application is used to read the crawl configuration file and the content configuration file from a database, write the crawl configuration file into a root directory of a server, and store the content configuration file in a preset format to the server.

4. The method for publishing website pages according to claim 3, characterized in that: Before using the publishing application to read the crawling configuration file and the content configuration file from the database, the method further includes: Setting a first crawling file and a second crawling file of the website page, generating the crawling configuration file according to the first crawling file and the second crawling file, and storing the crawling configuration file in the database, wherein the first crawling file is used to declare the crawling range of the search engine, and the second crawling file is used to declare the directory of the crawled website; The crawled fields and text content of the website page are configured to obtain the content configuration file, and the content configuration file is stored in the database.

5. A method for displaying a website page, characterized in that: The method utilizes a content management system to display website pages, wherein the method comprises the following steps: Get the search request of the search engine; Crawl web page tag files of one or more website pages according to the search request, wherein the web page tag file is a format file corresponding to the rendered web page generated based on the content configuration file and the model page of the website page; The web page tag file of the website page is sent to the client, wherein the client displays the website page according to the web page tag file, and displays the website information within the crawling range corresponding to the crawling configuration file in the website page.

6. A device for publishing website pages, characterized in that: The device uses a content management system to publish website pages, wherein the device includes: A first acquisition module is used to obtain a publishing request for a website page; A writing module, used to write the crawling configuration file of the website page into the root directory of the server according to the publishing request, store the content configuration file of the website page into the server, and generate a rendered web page tag file using the content configuration file and the model page; The display module is used to publish the website page on the client according to the web page tag file, and when a search request from a search engine is obtained, display the website information within the crawling range corresponding to the crawling configuration file on the website page.

7. The website page publishing device according to claim 6, characterized in that: The writing module is further used for: Creating a server-side rendering application according to a preset application framework of the client; The content configuration file is integrated into the model page, and the model page is rendered using the server-side rendering application to obtain the web page tag file.

8. A device for displaying website pages, characterized in that: The device uses a content management system to display website pages, wherein the device includes: A second acquisition module is used to acquire a search request from a search engine; A crawling module, used to crawl web page tag files of one or more website pages according to a search request, wherein the web page tag file is a format file corresponding to the rendered web page generated based on the content configuration file of the website page and the model page; The sending module sends the web page tag file of the website page to the client, wherein the client displays the website page according to the web page tag file and displays the website information within the crawling range corresponding to the crawling configuration file in the website page.

9. A content management system, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for publishing a website page according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the website page publishing method as described in any one of claims 1 to 5.