mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 12:38:39 +00:00
Fix docUrl and pageUrl in the Footer & image path (#1514)
* Fix docUrl and pageUrl in the Footer * Fix katex-comparison.gif path * Fix typo in the url to `supported`
This commit is contained in:
@@ -10,12 +10,14 @@ const React = require('react');
|
||||
class Footer extends React.Component {
|
||||
docUrl(doc, language) {
|
||||
const baseUrl = this.props.config.baseUrl;
|
||||
return baseUrl + 'docs/' + (language ? language + '/' : '') + doc;
|
||||
return baseUrl + 'docs/' + (language && language !== 'en'
|
||||
? language + '/' : '') + doc;
|
||||
}
|
||||
|
||||
pageUrl(doc, language) {
|
||||
const baseUrl = this.props.config.baseUrl;
|
||||
return baseUrl + (language ? language + '/' : '') + doc;
|
||||
return baseUrl + (language && language !== 'en'
|
||||
? language + '/' : '') + doc;
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -43,7 +45,7 @@ class Footer extends React.Component {
|
||||
<a href={this.docUrl('options.html', this.props.language)}>
|
||||
Configuration
|
||||
</a>
|
||||
<a href={this.docUrl('support.html', this.props.language)}>
|
||||
<a href={this.docUrl('supported.html', this.props.language)}>
|
||||
Misc
|
||||
</a>
|
||||
</div>
|
||||
|
@@ -163,7 +163,7 @@ body {
|
||||
}
|
||||
|
||||
.main .comparison {
|
||||
background-image: url(../../img/katex-comparison.gif);
|
||||
background-image: url(../img/katex-comparison.gif);
|
||||
background-position: 50% 50%;
|
||||
background-size: cover;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
||||
|
Reference in New Issue
Block a user