-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #801 from iterative/fix-meta
Generalize, review and fix meta fields
- Loading branch information
Showing
10 changed files
with
39 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -2,7 +2,9 @@ import Head from 'next/head' | |
import PropTypes from 'prop-types' | ||
import React from 'react' | ||
|
||
export const HeadInjector = () => ( | ||
import { META_BASE_TITLE } from '../consts' | ||
|
||
export const HeadInjector = ({ sectionName = 'Documentation' }) => ( | ||
<Head> | ||
<link | ||
rel="stylesheet" | ||
|
@@ -21,7 +23,9 @@ export const HeadInjector = () => ( | |
type="text/javascript" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn/docsearch.min.js" | ||
/> | ||
<title>Documentation | Machine Learning Version Control System · DVC</title> | ||
<title> | ||
{sectionName} | {META_BASE_TITLE} | ||
</title> | ||
</Head> | ||
) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const HEADER = 'header' | ||
|
||
export const META_BASE_TITLE = 'Data Version Control · DVC' | ||
export const META_DESCRIPTION = | ||
'Open-source version control system for Data Science and Machine Learning ' + | ||
'projects. Git-like experience to organize your data, models, and ' + | ||
'experiments.' | ||
export const META_KEYWORDS = | ||
'data version control machine learning models management' | ||
export const META_SOCIAL_IMAGE = 'https://dvc.org/static/social-share.png' |