Skip to content

Commit 291a8e6

Browse files
Just authors....
1 parent 0c70f2f commit 291a8e6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/components/Publications/Entry/Authors.jsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import PropTypes from 'prop-types'
2-
// import Highlighter from 'react-highlight-words'
3-
// import { publications as config } from 'site-config'
2+
import Highlighter from 'react-highlight-words'
3+
import { publications as config } from 'site-config'
44

5-
const Authors = ({ children }) => children
6-
// <Highlighter searchWords={config.highlight} textToHighlight={children} highlightTag="strong" />
5+
const Authors = ({ children }) => (
6+
<Highlighter searchWords={config.highlight} textToHighlight={children} highlightTag="strong" />
7+
)
78

89
Authors.propTypes = {
910
children: PropTypes.string.isRequired,

src/components/Publications/Entry/Periodical.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { asMonth, quoteTitle } from '../../../utils'
1+
// import { asMonth, quoteTitle } from '../../../utils'
22
import Authors from './Authors'
33
import PropTypes from 'prop-types'
44

55
const Periodical = ({ entry }) => (
66
<>
77
<Authors>{entry.author}</Authors>,{' '}
8-
{quoteTitle(entry.title, [entry.journal, entry.volume, entry.number, entry.pages, entry.month, entry.year])}{' '}
8+
{/* {quoteTitle(entry.title, [entry.journal, entry.volume, entry.number, entry.pages, entry.month, entry.year])}{' '} */}
99
{/* {entry.journal && (
1010
<>
1111
<i>{entry.journal}</i>,{' '}
@@ -14,7 +14,7 @@ const Periodical = ({ entry }) => (
1414
{entry.volume && <>vol. {entry.volume}, </>}
1515
{entry.number && <>no. {entry.number}, </>}
1616
{entry.pages && <>pp. {entry.pages}, </>}*/}
17-
{entry.month && asMonth(entry.month)}
17+
{/* {entry.month && asMonth(entry.month)} */}
1818
{/*{entry.year && <>{entry.year}</>}
1919
{(entry.journal || entry.volume || entry.number || entry.pages || entry.month || entry.year) && <>.</>} */}
2020
</>

0 commit comments

Comments
 (0)