cover_image

How to transfer a WordPress blog to Hugo

Article directory Install Hugo on your local computer, select a theme, and create a Hugo project Export the content from the WordPress backend, and then return to the local computer to convert it into Hugo’s Markdown format. Push the organized content and Hugo blog to Github Connect the Github repository on Vercel and set the build command and Configure a dedicated domain 1. Install hugo theme and start testing Binary Install cd ~ wget https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-amd64.tar.gz #download tar -xzf hugo_0.164.0_linux-amd64.tar.gz #unzip sudo mv hugo /usr/local/bin/hugo #move to bin hugo version #check hugo versionNew Site and Add Theme cd ~ hugo new site myblog #new site by hugo cd myblog git init # git init git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod #Add PaperMod themeNow, you can add it in hugo.toml 文件中将主題 PaperMod`. ...

Typecho migration to WordPress notes

Preparation Typecho data export plug-in Byetyp https://github.com/sunxiyuan/ByeTyp Pack and backup the data of /usr/uploads in Typecho Back up statistics code and ADsense code steps Note: Because this note was written after the migration was completed, there are no screenshots. The following content only contains text steps. text steps Upload the Byetyp plug-in to the plug-in directory (Plug) in the Typecho blog, and remove the version number and modify the directory name (otherwise it cannot be activated normally) Pack and download the files uploaded by the /usr/uploads user in Typecho and backup them locally. They will be uploaded to the wp-content/uploads directory of WordPress later. Activate the Byetyp plug-in to export the data of the Typecho blog in the format xml Install WordPress and import the data in Typecho Execute the database command to replace the attachment path (picture path) in the post-content table with Wordpress SQL command UPDATE wp_posts SET post_content = REPLACE( post_content, '/usr/uploads/', '/wp-content/uploads/');Note: wp_posts is the WordPress table name. Please choose it according to your actual situation. ...

Wordpress ERR_TOO_MANY_REDIRECTS solution

Fault phenomenon When logging in to the WordPress backend, the browser displays “ERR_TOO_MANY_REDIRECTS” As a result, it is impossible to log in to the backend normally. Solution ideas and steps Check Cloud Flare HTTPS configuration - - OK Check the HTTPS configuration in the WEB server - - OK Check whether the siteurl and home values in the WordPress database start with https Check the value of HTTPS = ‘on’ in WP-Config.php Result verification Check whether the siteurl and home values in the WordPress database start with https ...

搜尋文章

輸入標題、分類或文章內容

Plz typing to search for articles.