Skip to content

Commit

Permalink
Add screenshot, favicon, and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Aug 7, 2022
1 parent 29f38bf commit 2b66f7b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,14 @@
"> 1%",
"last 2 versions",
"not dead"
]
}
],
"meta": {
"title": "luftbilder.berlin.codefor.de",
"description": "Luftbilder aus dem Geoportal Berlin",
"language": "de",
"url": "https://luftbilder.berlin.codefor.de",
"image": "https://luftbilder.berlin.codefor.de/screenshot.jpg",
"imageAlt": "luftbilder.berlin.codefor.de screenshot",
"twitter": "@codeforbe"
}
}
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 24 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,30 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>

<link rel="icon" href="<%= BASE_URL %>favicon.png">

<title><%= htmlWebpackPlugin.options.meta.title %></title>
<meta name="description" content="<%= htmlWebpackPlugin.options.meta.description %>">

<meta name="twitter:title" content="<%= htmlWebpackPlugin.options.meta.title %>">
<meta name="twitter:description" content="<%= htmlWebpackPlugin.options.meta.description %>">
<meta name="twitter:url" content="<%= htmlWebpackPlugin.options.meta.url %>">
<meta name="twitter:site" content="<%= htmlWebpackPlugin.options.meta.twitter %>">
<meta name="twitter:creator" content="<%= htmlWebpackPlugin.options.meta.twitter %>">
<meta name="twitter:image" content="<%= htmlWebpackPlugin.options.meta.image %>">
<meta name="twitter:image:alt" content="<%= htmlWebpackPlugin.options.meta.imageAlt %>">
<meta name="twitter:card" content="summary_large_image">

<meta property="og:title" content="<%= htmlWebpackPlugin.options.meta.title %>">
<meta property="og:description" content="<%= htmlWebpackPlugin.options.meta.description %>">
<meta property="og:url" content="<%= htmlWebpackPlugin.options.meta.url %>">
<meta property="og:site_name" content="<%= htmlWebpackPlugin.options.meta.title %>">
<meta property="og:locale" content="<%= htmlWebpackPlugin.options.meta.language %>">
<meta property="og:image" content="<%= htmlWebpackPlugin.options.meta.image %>">
<meta property="og:image:alt" content="<%= htmlWebpackPlugin.options.meta.imageAlt %>">
<meta property="og:type" content="website">

</head>
<body>
<noscript>
Expand Down
Binary file added public/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].meta = require('./package.json').meta
return args;
})
}
}

0 comments on commit 2b66f7b

Please sign in to comment.