[+] Make title configurable
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title>Charlie's Gallery</title>
|
<title>Loading...</title>
|
||||||
|
|
||||||
<!-- Element -->
|
<!-- Element -->
|
||||||
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
||||||
|
|||||||
@@ -16,6 +16,15 @@
|
|||||||
{
|
{
|
||||||
// Create variable from imported config
|
// Create variable from imported config
|
||||||
config = config;
|
config = config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize
|
||||||
|
*/
|
||||||
|
mounted()
|
||||||
|
{
|
||||||
|
document.title = config.title;
|
||||||
|
console.log()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"title": "Charlie's Gallery"
|
"title": "Charlie's Gallery"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user