Website: Plausible visit counter, and the site's address for link previews
The page loads the owner's Plausible script from plausible.mariosem.es. The link-preview picture, og:url and the canonical link now name https://flexera.mariosem.es/, where the site is served. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
752ad2c806
commit
46864e98a6
2 files changed
+19
-6
No files matched your search
+10
-5
@@ -1,7 +1,7 @@
|
||||
# Flexera Launcher website
|
||||
|
||||
A one-page site for Flexera Launcher. Plain HTML, CSS and JavaScript: no build step, no
|
||||
libraries, and nothing is loaded from any other server.
|
||||
A one-page site for Flexera Launcher. Plain HTML, CSS and JavaScript: no build step and no
|
||||
libraries. The one thing loaded from another server is the visit counter (see "Putting it online").
|
||||
|
||||
| File | What it is |
|
||||
| --- | --- |
|
||||
@@ -52,11 +52,16 @@ and open <http://localhost:8080>.
|
||||
port). On a server, put those two files and `PRODUCTION/` in one directory. It answers plain
|
||||
HTTP: HTTPS belongs to the proxy in front of it. The page, stylesheet and script are sent with
|
||||
`no-cache`, so a new version shows at once; pictures and the font are kept for a week.
|
||||
- Link previews need full addresses. In the head of `index.html`, `og:image` must be the full
|
||||
address of `assets/og.jpg`, and `og:url` and `<link rel="canonical">` the full address of the
|
||||
page. A relative `og:image` shows no picture in most chats.
|
||||
- The site lives at <https://flexera.mariosem.es/>. Link previews need full addresses, so the
|
||||
head of `index.html` names that address three times: `og:image` (the full address of
|
||||
`assets/og.jpg`), `og:url` and `<link rel="canonical">`. If the site moves, change all three; a
|
||||
relative `og:image` shows no picture in most chats.
|
||||
- The head also carries the page's title and description, the card's size and description, and a
|
||||
short `SoftwareApplication` record for search engines; none of them holds the version number.
|
||||
- Visits are counted by Plausible, on the owner's own server: the last two `<script>` tags in the
|
||||
head of `index.html`, pasted as Plausible gives them. It sets no cookies, and it does not count
|
||||
the page opened from a file or from `localhost`. If a `Content-Security-Policy` header is ever
|
||||
added, it must allow `https://plausible.mariosem.es` for scripts and for connections.
|
||||
|
||||
## The look
|
||||
|
||||
|
||||
+9
-1
@@ -9,12 +9,14 @@
|
||||
<meta name="theme-color" content="#0d0d0f">
|
||||
<!-- Link previews. og:image, og:url and the canonical link must be full addresses: when the site's
|
||||
address changes, change it in these three places. The card itself is made by flexera/website/make-og.mjs. -->
|
||||
<link rel="canonical" href="https://flexera.mariosem.es/">
|
||||
<meta property="og:url" content="https://flexera.mariosem.es/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content="Flexera Launcher">
|
||||
<meta property="og:locale" content="en_GB">
|
||||
<meta property="og:title" content="Flexera Launcher: an app list for the thumb that’s holding the phone">
|
||||
<meta property="og:description" content="A free Android launcher. Slide your thumb along the alphabet on the edge of the screen to reach any app, or swipe past your last home screen page to open one you picked.">
|
||||
<meta property="og:image" content="assets/og.jpg">
|
||||
<meta property="og:image" content="https://flexera.mariosem.es/assets/og.jpg">
|
||||
<meta property="og:image:type" content="image/jpeg">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
@@ -32,6 +34,12 @@
|
||||
var done = function () { d.classList.remove('is-loading'); }; setTimeout(done, 700);
|
||||
if (document.fonts && document.fonts.load) Promise.all([document.fonts.load('400 18px Outfit'), document.fonts.load('500 80px Outfit')]).then(done, done); else done(); })();</script>
|
||||
<script src="script.js" defer></script>
|
||||
<!-- Privacy-friendly analytics by Plausible -->
|
||||
<script async src="https://plausible.mariosem.es/js/pa-8UuCpf8b9d-Q3Fk8yf6yK.js"></script>
|
||||
<script>
|
||||
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
|
||||
plausible.init()
|
||||
</script>
|
||||
</head>
|
||||
<body id="top">
|
||||
<!-- Line icons used by the phone drawings. 24 x 24, drawn with strokes. -->
|
||||
|
||||
Reference in new issue
Block a user