Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Hugo plugin that generates a LeetCode dashboard and deploys it to your blog.

Free open-source Tailwind CSS and Next.js admin dashboard template with 8+ pages, dark mode, RTL, and authentication screens.
Hugo Leetcode Dashboard is a Python-based plugin that generates a personal LeetCode progress dashboard as markdown files and deploys it to a Hugo-powered site.
Hugo Leetcode Dashboard takes your LeetCode-cn account credentials and your Hugo content directory as inputs, runs a Python script, and outputs a set of markdown files that form an answer dashboard. The dashboard includes a Chinese entry page (leetcode.md), an English entry page (leetcode_en.md), and a problemset/ folder with one subfolder per solved problem, each containing your solution source, a solution writeup, and the problem description in both languages.
The plugin is built for the Hugo static site generator and is released under the MIT License. It uses the requests and aiohttp Python packages for network calls.
python3 run.py generates the files and copies them to your Hugo content directory.First you clone the repository and install the Python dependencies (requests and aiohttp) with pip. Then you edit config.json to set your LeetCode-cn username, password, and the output directory (typically your Hugo content folder). After creating a shortcode for raw HTML in your Hugo site to support the generated HTML, you run echo "2" | python3 run.py and copy the logo image to your static folder.
Yes, it is released under the MIT License, so it is free to use, modify, and distribute.
The README config example uses a leetcode-cn@leetcode username and a plain password, and it refers to "LeetCode-cn 账号". The plugin does not document support for LeetCode.com accounts.
It generates two entry markdown files (leetcode.md and leetcode_en.md) and a problemset/ directory with a subfolder per problem, containing your solution source, a solution writeup, and the problem description in both Chinese and English.
The output directory from config.json should be your Hugo content path. You also need to add a layouts/shortcodes/rawhtml.html file to your site to allow raw HTML from the generated markdown. Then run the deployment command and copy the logo to static/images.
