{ content.meta.chinese || content.meta.english } { !content.meta.subtitle ? null : { content.meta.subtitle } }
{ !content.intro ? null : content.intro.map(utils.objectToComponent.bind(null, location.pathname)) } { jumper.length > 0 ?- { jumper }
import React from 'react';
import { Link } from 'react-router';
import classNames from 'classnames';
import ImagePreview from './ImagePreview';
import VideoPlayer from './VideoPlayer';
import * as utils from '../utils';
export default class Article extends React.Component {
constructor(props) {
super(props);
this.imgToPreview = this.imgToPreview.bind(this);
this.enhanceVideo = this.enhanceVideo.bind(this);
}
isPreviewImg(string) {
return /^ 1;
const previewClassName = classNames({
'preview-image-boxes': true,
clearfix: true,
'preview-image-boxes-with-carousel': hasCarousel,
});
return