mirror of
https://github.com/tiennm99/miti99.git
synced 2026-09-16 00:20:27 +00:00
cbb18cf2d322920b560327fa7bdebfd534765103
Add mt-add-url meta skill that classifies a URL and auto-dispatches to a handler skill: articles to mt-add-post, YouTube links to the new mt-add-video (Bonus -> Videos with a Vietnamese title + short summary). Unsupported types (image, etc.) prompt the user to add or extend a skill; image support is deferred to a future mt-add-image handler. Shared logic (add-url.js router, url-utils.js, find-newsletter-number.js) and a shared post-mechanics reference live under mt-add-url/. mt-add-post is reduced to an article-only handler. add-url.js detects watch/youtu.be/ shorts, normalizes to the canonical watch URL, dedups by video id, and fetches the title via oEmbed. checkDuplicate uses execFileSync (no shell).
miti99
Source of miti99.com — personal blog (VN/EN) built with Hugo and the Stack theme.
Quick start
git submodule update --init --recursive
hugo server -D
Site available at http://localhost:1313.
Content structure
Posts live under content/post/YYYY/MM/DD/index.md. Each post is a Hugo leaf bundle — images and assets sit next to index.md in the same directory.
content/
post/
2024/
03/
15/
index.md ← post content (Vietnamese / English)
cover.jpg ← optional cover image
page/ ← standalone pages (about, projects, …)
Theme customization
Theme config lives in config/ (Hugo config directory split). Key overrides:
config/_default/params.toml— sidebar, avatar, footer, color schemeconfig/_default/menu.toml— navigation linksassets/— custom CSS/JS overrides loaded on top of the Stack themelayouts/— template overrides (add a file here to override any Stack partial)
The Stack theme is pulled in as a git submodule under themes/hugo-theme-stack/.
License
Apache-2.0 — see LICENSE.
Description
Source of miti99.com — personal blog (VN/EN) built with Hugo + Stack theme.
Readme
Apache-2.0
145 MiB
Languages
Go
84.5%
JavaScript
13.3%
HTML
2.2%