Initial static site implementation
- Node.js build script with gray-matter and marked - Self-hosted fonts (DM Serif Display, Karla) - Swedish badge system for origin transparency - Filtering by category, region, tags, and search - URL-based filter state for shareable links - Individual entry pages - About and badge info pages - Privacy-focused: no cookies, no tracking, no external requests - Hosted in Lerum, Sweden
This commit is contained in:
101
README.md
101
README.md
@@ -1,2 +1,99 @@
|
||||
# ursprungsverige
|
||||
Ursprung Sverige gathers all Swedish manufacturers and highlights products that are created and produced within the country
|
||||
# Ursprung Sverige
|
||||
|
||||
Ursprung Sverige is a curated collection of Swedish products, services, experiences and manufacturers. The goal is to make it easier for people to support the Swedish economy and the Swedish culture.
|
||||
|
||||
## Privacy Principles
|
||||
|
||||
This site practices what it preaches:
|
||||
|
||||
- **No cookies** - We don't use any cookies
|
||||
- **No tracking** - No Google Analytics, no external tracking scripts
|
||||
- **No third-party services** - Only Google Fonts for typography (consider self-hosting)
|
||||
- **Swedish hosting** - The site is hosted on servers in Lerum, Sweden
|
||||
|
||||
**Do not add:**
|
||||
- Analytics scripts (Google Analytics, Plausible, etc.)
|
||||
- Cookie consent banners
|
||||
- External tracking pixels
|
||||
- Third-party comment systems
|
||||
- Social media embeds with tracking
|
||||
|
||||
If analytics are needed in the future, consider privacy-respecting, self-hosted alternatives like Umami or Matomo hosted in Sweden.
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
The generated site will be in the `dist/` folder.
|
||||
|
||||
## Adding Content
|
||||
|
||||
Create a Markdown file in the appropriate `content/` subfolder:
|
||||
|
||||
- `content/products/` - Swedish products
|
||||
- `content/services/` - Swedish services
|
||||
- `content/experiences/` - Swedish experiences
|
||||
- `content/manufacturers/` - Swedish manufacturers
|
||||
|
||||
### Content Format
|
||||
|
||||
Each entry is a Markdown file with YAML frontmatter:
|
||||
|
||||
```markdown
|
||||
---
|
||||
title: Fjällräven
|
||||
category: manufacturers
|
||||
region: Norrbotten
|
||||
tags: [friluftsliv, kläder, hållbarhet]
|
||||
website: https://fjallraven.com
|
||||
---
|
||||
|
||||
Description of the entry in Markdown format...
|
||||
```
|
||||
|
||||
### Frontmatter Fields
|
||||
|
||||
| Field | Required | Description |
|
||||
|-------|----------|-------------|
|
||||
| `title` | Yes | Name of the product/service/etc |
|
||||
| `category` | No | Auto-detected from folder if not specified |
|
||||
| `region` | No | Swedish region (län) |
|
||||
| `tags` | No | Array of tags for filtering |
|
||||
| `website` | No | Link to website |
|
||||
| `image` | No | Featured image URL (displayed at top of card) |
|
||||
| `logo` | No | Logo URL (displayed next to title) |
|
||||
| `badge` | No | Swedish origin badge (see below) |
|
||||
|
||||
### Badges
|
||||
|
||||
Tiered badges indicate how Swedish a product/company is:
|
||||
|
||||
| Tier | Badge Value | Display | For | Description |
|
||||
|------|-------------|---------|-----|-------------|
|
||||
| 1 | `akta-svenskt` | Äkta Svenskt (gold) | All | 100% Swedish: company, production/hosting, suppliers |
|
||||
| 2 | `tillverkat-i-sverige` | Tillverkat i Sverige (silver) | Physical | Swedish company, manufactured in Sweden |
|
||||
| 2 | `svenskt-moln` | Svenskt Moln (silver) | Digital | Swedish company, Swedish servers/hosting |
|
||||
| 3 | `designat-i-sverige` | Designat i Sverige (bronze) | Physical | Swedish design, production may be abroad |
|
||||
| 3 | `utvecklat-i-sverige` | Utvecklat i Sverige (bronze) | Digital | Swedish development, hosting may be abroad |
|
||||
| 4 | `svenskt-foretag` | Svenskt Företag (blue) | All | Swedish-founded/registered company |
|
||||
|
||||
### Images
|
||||
|
||||
Place images in the `static/` folder. They're symlinked to `dist/static/` (no copying), so reference them as `/static/images/example.png` in your content.
|
||||
|
||||
## Development
|
||||
|
||||
Watch mode rebuilds on file changes:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
Deploy the `dist/` folder to a Swedish hosting provider. The production site is hosted in Lerum, Sweden.
|
||||
|
||||
**Important:** Do not deploy to non-Swedish hosting services (Netlify, Vercel, Cloudflare, etc.) as this would contradict the site's principles.
|
||||
Reference in New Issue
Block a user