There was an error loading this page.
17 |├── public ├── logo.png ├── .DS_Store ├── manifest.json └── styles.css ├── screenshot.png ├── package.json ├── views ├── error.ejs ├── home.ejs └── mastodon.ejs ├── README.md ├── LICENSE.md ├── .gitignore └── app.js /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/mf2.link/main/public/logo.png -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/mf2.link/main/screenshot.png -------------------------------------------------------------------------------- /public/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microformats/mf2.link/main/public/.DS_Store -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mf2.link", 3 | "version": "1.0.0", 4 | "description": "Convert page contents to mf2 and serve a minimal HTML representation of the underlying content", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "capjamesg", 10 | "license": "MIT 0", 11 | "dependencies": { 12 | "ejs": "^3.1.10", 13 | "express": "^4.21.2", 14 | "node-fetch": "^3.3.1" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /views/error.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |There was an error loading this page.
17 |Generate embeddable links with mf2 markup for use within inline text and when sharing.
30 | 31 |The following services are supported:
32 | 33 |To generate links for Bluesky posts, check out bsky.link.
38 | 39 | 48 | 49 | 50 | 51 | 52 | 53 | 56 |40 | <%- data.content %> 41 | <% if (data.poll) { %> 42 |81 | 82 | 87 |43 |52 | <% } %> 53 | <% if (data.media_attachments.length > 0) { %> 54 | 69 | <% } %> 70 | <% if (data.card) { %> 71 | 72 | 78 | 79 | <% } %> 80 |44 | <% data.poll.options.forEach(function(option) { %> 45 |
51 |- 46 |
49 | <% }) %> 50 |<%= option.title %> (<%= option.votes_count %> votes)
47 | 48 |