Add opengraph meta tags and update description

This commit is contained in:
Misode
2020-09-22 22:22:45 +02:00
parent a7f062cc68
commit 248bce045a
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -16,7 +16,9 @@
<!-- End Google Analytics -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<%= htmlWebpackPlugin.options.title %> for Minecraft 1.16. Generate JSON and use it in data packs.">
<meta name="description" content="<%= htmlWebpackPlugin.options.title %>. Generate JSON and use it in data packs.">
<meta name="og:title" content="<%= htmlWebpackPlugin.options.title %>">
<meta name="og:description" content="<%= htmlWebpackPlugin.options.title %>. Generate JSON and use it in data packs.">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.publicPath %>styles/global.css">
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.publicPath %>styles/nodes.css">
+3 -3
View File
@@ -35,12 +35,12 @@ module.exports = (env, argv) => ({
}
}),
new HtmlWebpackPlugin({
title: 'Data Pack Generators Minecraft',
title: 'Data Pack Generators Minecraft 1.16',
filename: 'index.html',
template: 'src/index.html'
}),
new HtmlWebpackPlugin({
title: 'Data Pack Generators Minecraft',
title: 'Data Pack Generators Minecraft 1.16',
filename: '404.html',
template: 'src/index.html'
}),
@@ -50,7 +50,7 @@ module.exports = (env, argv) => ({
function buildModel(model) {
const page = new HtmlWebpackPlugin({
title: `${model.name} Generator Minecraft`,
title: `${model.name} Generator Minecraft 1.16`,
filename: `${model.id}/index.html`,
template: 'src/index.html'
})