-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to vue router history mode in order to improve SEO
This includes several diffs, including some patches dealing with the fallout: - Changes the vue-router configuration from hash mode to history mode in order to remove the # in the URL which makes google crawling difficult. - As a necessary consequence, updates all html and js pages with changes relating to the relative location of files; now everything is relative to root, i.e. starts with '/'. - Fixes the backbutton display which started being buggy after the change to history mode. - Adds an href property to all subdataset links on all dataset pages, so that they can be more easily crawlable by google. - Add structured and linked data in json-ld format to the html document head for each dataset, which makes a dataset page show rich metadata in google's dataset search. - Update local server functionality to redirect urls starting with '/dataset' to '/index.html' in order to be compatible with the new router history mode. See sfb1451/metadata-catalog#83 for more context.
- Loading branch information
Showing
7 changed files
with
82 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,16 @@ | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
|
||
<!-- Required Stylesheets --> | ||
<link rel="stylesheet" type="text/css" href="assets/style.css"/> | ||
<link rel="stylesheet" type="text/css" href="assets/fontawesome.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="assets/brands.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="assets/bootstrap.5.1.3.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="assets/bootstrap-vue.2.21.2.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="/assets/style.css"/> | ||
<link rel="stylesheet" type="text/css" href="/assets/fontawesome.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="/assets/brands.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="/assets/bootstrap.5.1.3.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="/assets/bootstrap-vue.2.21.2.min.css"/> | ||
|
||
<!-- Required scripts --> | ||
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script> | ||
<!-- <script src="assets/vue.2.6.14.min.js"></script> --> | ||
<script src="assets/bootstrap-vue.2.21.2.min.js"></script> | ||
<!-- <script src="https://unpkg.com/[email protected]/dist/vue.js"></script> --> | ||
<script src="/assets/vue.2.6.14.min.js"></script> | ||
<script src="/assets/bootstrap-vue.2.21.2.min.js"></script> | ||
|
||
<!-- Vue component templates --> | ||
|
||
|
@@ -327,6 +327,6 @@ | |
</b-container> | ||
<br><br><br><br> | ||
<!-- Start running your app --> | ||
<script src="assets/display_schema.js"></script> | ||
<script src="/assets/display_schema.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,26 +6,26 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | ||
|
||
<link rel="icon" href="assets/favicon/favicon.ico" type="image/x-icon"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png"> | ||
<link rel="icon" href="/assets/favicon/favicon.ico" type="image/x-icon"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"> | ||
|
||
<title>DataLad Catalog</title> | ||
|
||
<!-- Required Stylesheets --> | ||
<link rel="stylesheet" type="text/css" href="assets/style.css"/> | ||
<link rel="stylesheet" type="text/css" href="assets/fontawesome.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="assets/brands.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="assets/bootstrap.5.1.3.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="assets/bootstrap-vue.2.21.2.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="/assets/style.css"/> | ||
<link rel="stylesheet" type="text/css" href="/assets/fontawesome.min.css"/> | ||
<link rel="stylesheet" type="text/css" href="/assets/brands.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="/assets/bootstrap.5.1.3.min.css"/> | ||
<link type="text/css" rel="stylesheet" href="/assets/bootstrap-vue.2.21.2.min.css"/> | ||
|
||
<!-- Required scripts --> | ||
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script> | ||
<!-- <script src="assets/vue.2.6.14.min.js"></script> --> | ||
<script src="assets/bootstrap-vue.2.21.2.min.js"></script> | ||
<script src="assets/vue-router.3.5.3.min.js"></script> | ||
<script src="assets/md5-2.3.0.js"></script> | ||
<script src="assets/marked.4.0.17.min.js"></script> | ||
<!-- <script src="https://unpkg.com/[email protected]/dist/vue.js"></script> --> | ||
<script src="/assets/vue.2.6.14.min.js"></script> | ||
<script src="/assets/bootstrap-vue.2.21.2.min.js"></script> | ||
<script src="/assets/vue-router.3.5.3.min.js"></script> | ||
<script src="/assets/md5-2.3.0.js"></script> | ||
<script src="/assets/marked.4.0.17.min.js"></script> | ||
|
||
</head> | ||
|
||
|
@@ -70,13 +70,13 @@ | |
<br> | ||
</b-container> | ||
<!-- Run the Vue app scripts - DO NOT CHANGE ORDER --> | ||
<script src="assets/app_globals.js"></script> | ||
<script src="assets/app_component_item.js"></script> | ||
<script src="assets/app_component_contexttab.js"></script> | ||
<script src="assets/app_component_dataset.js"></script> | ||
<script src="assets/app_component_about.js"></script> | ||
<script src="assets/app_component_notfound.js"></script> | ||
<script src="assets/app_router.js"></script> | ||
<script src="assets/app.js"></script> | ||
<script src="/assets/app_globals.js"></script> | ||
<script src="/assets/app_component_item.js"></script> | ||
<script src="/assets/app_component_contexttab.js"></script> | ||
<script src="/assets/app_component_dataset.js"></script> | ||
<script src="/assets/app_component_about.js"></script> | ||
<script src="/assets/app_component_notfound.js"></script> | ||
<script src="/assets/app_router.js"></script> | ||
<script src="/assets/app.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters