Skip to content

Commit

Permalink
Added page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
jzongker committed May 4, 2022
1 parent 854badf commit 1386b35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/all.css" />
<meta name="viewport" content="width=device-width" />

</head>

<body>
Expand Down Expand Up @@ -101,6 +100,7 @@ <h2>About the Verse of the Day</h2>
let result = '<meta property="og:description" content="' + verse.reference + ' - ' + verse.text.replace('"', '') + '"/>'
+ '<meta property="og:image" content="v1/' + verse.day + '/720p/16x9.jpg"/>';
document.head.innerHTML += result;
document.title = verse.reference + ' - Verse of the Day';
}

const populate = (data, day) => {
Expand Down
2 changes: 2 additions & 0 deletions preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/all.css" />
<meta name="viewport" content="width=device-width" />
<title>Verse of the Day Preview</title>
</head>

<body>
Expand Down

0 comments on commit 1386b35

Please sign in to comment.