mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 21:47:01 +02:00
misc(v2): change blog title size (#1821)
* misc(v2): change blog title size * misc(v2): change blog title size
This commit is contained in:
parent
17252a079c
commit
5eb79b17c3
4 changed files with 18 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
||||||
- Docs sidebar can now be more than one level deep, theoretically up to infinity
|
- Docs sidebar can now be more than one level deep, theoretically up to infinity
|
||||||
- Collapsible docs sidebar!
|
- Collapsible docs sidebar!
|
||||||
- More documentation ...
|
- More documentation ...
|
||||||
|
- Slight tweaks to the Blog components - blog title is larger now
|
||||||
|
|
||||||
## 2.0.0-alpha.25
|
## 2.0.0-alpha.25
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import classnames from 'classnames';
|
||||||
import {MDXProvider} from '@mdx-js/react';
|
import {MDXProvider} from '@mdx-js/react';
|
||||||
|
|
||||||
import Link from '@docusaurus/Link';
|
import Link from '@docusaurus/Link';
|
||||||
import MDXComponents from '@theme/MDXComponents';
|
import MDXComponents from '@theme/MDXComponents';
|
||||||
|
|
||||||
|
import styles from './styles.module.css';
|
||||||
|
|
||||||
function BlogPostItem(props) {
|
function BlogPostItem(props) {
|
||||||
const {children, frontMatter, metadata, truncated} = props;
|
const {children, frontMatter, metadata, truncated} = props;
|
||||||
const {date, permalink, tags} = metadata;
|
const {date, permalink, tags} = metadata;
|
||||||
|
@ -41,7 +44,7 @@ function BlogPostItem(props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header>
|
<header>
|
||||||
<h1 className="margin-bottom--xs">
|
<h1 className={classnames('margin-bottom--sm', styles.blogPostTitle)}>
|
||||||
<Link to={permalink}>{title}</Link>
|
<Link to={permalink}>{title}</Link>
|
||||||
</h1>
|
</h1>
|
||||||
<div className="margin-bottom--sm">
|
<div className="margin-bottom--sm">
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
/**
|
||||||
|
* Copyright (c) 2017-present, Facebook, Inc.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.blogPostTitle {
|
||||||
|
font-size: 3rem;
|
||||||
|
}
|
|
@ -29,7 +29,9 @@ function BlogTagsPostPage(props) {
|
||||||
<div className="margin-vert--xl">
|
<div className="margin-vert--xl">
|
||||||
{items.map(
|
{items.map(
|
||||||
({content: BlogPostContent, metadata: blogPostMetadata}) => (
|
({content: BlogPostContent, metadata: blogPostMetadata}) => (
|
||||||
<div key={blogPostMetadata.permalink}>
|
<div
|
||||||
|
className="margin-vert--xl"
|
||||||
|
key={blogPostMetadata.permalink}>
|
||||||
<BlogPostItem
|
<BlogPostItem
|
||||||
frontMatter={BlogPostContent.frontMatter}
|
frontMatter={BlogPostContent.frontMatter}
|
||||||
metadata={blogPostMetadata}
|
metadata={blogPostMetadata}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue