Skip to content

Commit d8703f2

Browse files
committed
fixed search and blog video
1 parent 916b0c2 commit d8703f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/blog/artificial-intelligence-and-machine-learning-what-are-they-and-why-are-t.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ thumbnailimage:
2222

2323
Editor's Note: This post is based on the MapR Academy course, [_Introduction to Artificial Intelligence and Machine Learning_](https://learn.ezmeral.software.hpe.com/bus-introduction-to-artificial-intelligence-and-machine-learning).
2424

25-
<!-- <div style="padding:75% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/279683304?title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script> -->
25+
<div style="padding:75% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/279683304?title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>
2626

2727
This post will give you a basic background on artificial intelligence and machine learning. It's a good place to gain an intro-level, working understanding of the categories, how they fit together, and their differences.
2828

src/containers/SearchContainer/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-underscore-dangle */
22
import React, { useState, useEffect } from 'react';
33
import PropTypes from 'prop-types';
4-
import { navigate } from '@reach/router';
4+
import { navigate } from "gatsby"
55
import { Box, Heading, Tabs, Tab, Text, TextInput } from 'grommet';
66
import { Search as SearchIcon } from 'grommet-icons';
77

@@ -163,8 +163,8 @@ const SearchContainer = ({ location }) => {
163163
setValue(newValue);
164164

165165
// update the URL
166-
// const query = newValue ? `?term=${encodeURIComponent(newValue)}` : '';
167-
// navigate(`/search/${query}`, { replace: true });
166+
const query = newValue ? `?term=${encodeURIComponent(newValue)}` : '';
167+
navigate(`/search/${query}`, { replace: true });
168168
// todo update route term= param
169169
};
170170

0 commit comments

Comments
 (0)