Add OpenGraph support

This commit is contained in:
Florine W. Dekker 2021-11-01 12:28:35 +01:00
parent 3bf1fc5f2a
commit e51afb8b19
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
4 changed files with 20 additions and 4 deletions

View File

@ -13,10 +13,13 @@ module.exports = grunt => {
html: {
files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", flatten: true}],
},
img: {
files: [{expand: true, cwd: "src/main/", src: "**/*.{jpg,png}", dest: "dist/", flatten: true}],
},
},
focus: {
dev: {
include: ["css", "html", "ts"],
include: ["css", "html", "img", "ts"],
},
},
replace: {
@ -50,6 +53,10 @@ module.exports = grunt => {
files: ["src/main/**/*.html"],
tasks: ["copy:html"],
},
img: {
files: ["src/main/**/*.{jpg,png}"],
tasks: ["copy:img"],
},
ts: {
files: ["src/main/**/*.ts"],
tasks: ["webpack:dev", "replace:dev"],
@ -98,6 +105,7 @@ module.exports = grunt => {
// Copy files
"copy:css",
"copy:html",
"copy:img",
// Compile TS
"webpack:dev",
"replace:dev",
@ -109,6 +117,7 @@ module.exports = grunt => {
// Copy files
"copy:css",
"copy:html",
"copy:img",
// Compile TS
"webpack:deploy",
"replace:deploy",

View File

@ -1,7 +1,7 @@
{
"name": "psychotherapy",
"version": "1.0.2",
"description": "Psychotherapy",
"version": "1.0.3",
"description": "Recursively inductive progress",
"author": "F.W. Dekker",
"browser": "dist/bundle.js",
"repository": {

BIN
src/main/img/og-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -5,10 +5,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="F.W. Dekker" />
<meta name="application-name" content="Psychotherapy" />
<meta name="description" content="Psychotherapy" />
<meta name="description" content="Recursively inductive progress" />
<meta name="theme-color" content="#0033cc" />
<meta name="og:description" content="Recursively inductive progress" />
<meta name="og:image" content="https://fwdekker.com/art/psychotherapy/og-image.png" />
<meta name="og:site_name" content="FWDekker" />
<meta name="og:title" content="Psychotherapy" />
<meta name="og:type" content="website" />
<meta name="og:url" content="https://fwdekker.com/art/psychotherapy/" />
<title>Psychotherapy | FWDekker</title>
<!--suppress HtmlUnknownTarget -->
<link rel="stylesheet" href="main.css?v=%%VERSION_NUMBER%%" />
<script async src="https://stats.fwdekker.com/count.js"