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`. ...

Deploy MkDocs to GitHub Pages (github.io)

1 . Setup MkDocs environment # Create MkDocs virtual environment python3 -m venv mkdoc_venv # Activate venv source mkdoc_venv/bin/activate # Deactivate venv deactivate # Install MkDocs + Material theme pip3 install mkdocs mkdocs-material # Install Mermaid plugin pip install mkdocs-mermaid2-plugin # Create a new MkDocs project mkdocs new duke-note # Run MkDocs local server mkdocs serve # Run server for external access mkdocs serve --dev-addr=0.0.0.0:80002 . Create GitHub repository # Run in your notes directory git init git add . git commit -m "Initial commit of my study notes"3 . Connect to remote GitHub repo # Format: # git remote set-url origin https://<token>@github.com/<owner>/<repository>.git # Example: git remote set-url origin https://ghp_yourTokenHere@github.com/dukehug/mkdocs_dknotes.git git branch -M main git push -u origin main # Deploy to GitHub Pages mkdocs gh-deploy4 . Deploy script (deploy.sh) #!/bin/bash # Stop if any error happens set -e # Build site mkdocs build sleep 10 # Push updates git add . git commit -m "update notes: $(date)" git push origin main sleep 10 # Deploy to GitHub Pages mkdocs gh-deploy5 . Math formula support (MathJax) References MkDocs Material Math https://squidfunk.github.io/mkdocs-material/reference/math/#mathjax-docsjavascriptsmathjaxjs ...

Git and Github Notes

Git and Github Notes Git fast version control some basic concepts Version management and tracking Version control systems are software tools Can help teams manage source code Status of Version version status Untracked Tracked Staged has been staged Committed Submitted HEAD -> master / branch HEAD: Current progress, latest status Master: main line What git tracks is the changes to the file, not the file itself. Deleting files also requires “add” and “commit” Files under version management that need to be ignored Add .gitignore in the project directory Write the file suffix or file name that does not require version management control in the .gitignore file Github is a platform/equivalent to Server Git tool hosts documents or code on the github platform - Install Mac os Mac OS comes with git. Enter git -- version to see the git version. Windows Download the latest https://git-for-windows.github.io/ git for windows Complete the git installation according to the instructions After completing the installation, you can see the git bash icon Ubuntu /Debian Install according to the command below $ sudo apt-get update $ sudo apt-get install git $ git --versionUse Basic configuration Configure git username and email using the following commands ...

Those V2ray clients on Github

v2rayN(Windows) Github https://github.com/2dust/v2rayN/releases V2rayU(Mac) Github https://github.com/yanue/V2rayU/releases v2rayNG(Android) Github https://github.com/2dust/v2rayNG/releases Google Play https://play.google.com/store/apps/details?id=com.v2ray.ang Kitsunebi(Android) Github https://github.com/eycorsican/kitsunebi-android/releases Google Play https://play.google.com/store/apps/details?id=fun.kitsunebi.kitsunebi4android BifrostV(Android) Google Play https://play.google.com/store/apps/details?id=com.github.dawndiy.bifrostv Kitsunebi(iOS) App store https://itunes.apple.com/us/app/kitsunebi-proxy-utility/id1446584073?mt=8 i2Ray(iOS) App store https://itunes.apple.com/us/app/i2ray/id1445270056?mt=8 Shadowrocket(iOS) App store https://itunes.apple.com/us/app/shadowrocket/id932747118?mt=8 Pepi(iOS) App store https://itunes.apple.com/us/app/pepi/id1283082051?mt=8 Quantumult(iOS) App store https://itunes.apple.com/us/app/quantumult/id1252015438?mt=8

搜尋文章

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

Plz typing to search for articles.