From fd49b216c5b0a4f80298e278ae403bd10af48ca1 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 7 Feb 2022 15:56:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?medium=20=E5=9C=B0=E5=9B=BE=E6=8F=92?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Medium/LayoutBase.js | 9 ++++-- themes/Medium/components/RevolverMaps.js | 37 ++++++++++++++++++++++++ themes/Medium/config_medium.js | 5 +++- 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 themes/Medium/components/RevolverMaps.js diff --git a/themes/Medium/LayoutBase.js b/themes/Medium/LayoutBase.js index 3c62dc54..1ee367d0 100644 --- a/themes/Medium/LayoutBase.js +++ b/themes/Medium/LayoutBase.js @@ -3,6 +3,8 @@ import React from 'react' import Footer from './components/Footer' import InfoCard from './components/InfoCard' import LogoBar from './components/LogoBar' +import RevolverMaps from './components/RevolverMaps' +import CONFIG_MEDIUM from './config_medium' /** * 基础布局 采用左右两侧布局,移动端使用顶部导航栏 @@ -18,12 +20,15 @@ const LayoutBase = props => {
-
- {showInfoCard && } +
+ {showInfoCard && }
{children}
+
+ { CONFIG_MEDIUM.WIDGET_REVOLVER_MAPS === 'true' && } +