Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axelson/hugo_repro
https://github.com/axelson/hugo_repro
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/axelson/hugo_repro
- Owner: axelson
- License: mit
- Created: 2024-08-31T13:26:33.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-31T13:27:18.000Z (5 months ago)
- Last Synced: 2024-11-29T20:30:59.235Z (about 2 months ago)
- Language: HTML
- Size: 1.39 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hugo-starter-tailwind-basic
[![Netlify Status](https://api.netlify.com/api/v1/badges/5a510ba1-96b4-4834-9a07-913dce4b5061/deploy-status)](https://app.netlify.com/sites/lucid-nightingale-60a4e2/deploys)
A very simple starter set up with [TailwindCSS](https://tailwindcss.com/) and its [typography plugin](https://tailwindcss.com/docs/typography-plugin) and a build setup using [PostCSS](https://postcss.org/) and PurgeCSS (when running the production build).
In the preview deployment on Netlify it currently has a 100 score on both mobile and desktop on [Google PageSpeed](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Flucid-nightingale-60a4e2.netlify.app%2F&tab=mobile).
This setup can be used both as a starter project and a theme.
## As a Project
```bash
npm install
hugo server
```## As a Theme
Import `github.com/bep/hugo-starter-tailwind-basic/v2` (use `github.com/bep/hugo-starter-tailwind-basic` if you want/need Tailwind 1.x.) into your project, and then run:
```bash
hugo mod npm pack
npm install
```You need to add this to your `config.toml` (the stats are used by the CSS purging):
```toml
[build]
writeStats = true
```Then run your project as usual.