Warning Work in progress
Faster & smaller embedded tweets for Hugo websites.
- Live Url: hugo-static-tweet.vercel.app/
- Source: the
exampleSite/
folder
Light Mode | Dark Mode |
---|---|
- Text + Emojis
- Images
- Videos
- Polls
- Quote tweets
- Opengraph Cards
- Mixed Media (Video & Images in tweet)
- Twemoji
- Private Use Area Glyphs
- Hashflags
- Profile pics with shapes
- Affiliate Badges
- Script to backup data to json file
- CSS Preflight
- Most Ads eg: 3d ads
- Unified Cards
- Broken threads
If you don't already have a go.mod
file run this command
hugo mod init github.com/user/project
Then add the theme to your configuration file.
# config.yaml
module:
imports:
- path: github.com/ianmuchina/hugo-static-tweet
If you don't have a themes
folder, create one then clone this git repository.
mkdir themes
cd themes
git clone https://github.com/ianmuchina/hugo-static-tweet.git
After that you can add the theme to your config file
theme: hugo-static-tweet
Display single tweet
Display a thread of tweets, requires an end
id and an optional start
id.
Output
Display a thread within specific range
Output
Display thread as text content, like the threadreader app
Output
Add this to the page/post frontmatter to disable image optimization for tweets in current page. Useful when the image optimization makes the image blurry.
## post.md
params:
optimizeImages: false
- Support for manually optimized images & avif
- Document Styling