블로그에 유튜브 동영상 삽입하기

두 가지 방법

1. HTML 태그 사용

image 동영상을 우클릭 하면 [ <> 소스 코드 복사 ] 라는 버튼이 나온다. 그 버튼으로 소스 코드를 복사한 후에 마크다운 파일에 붙여넣으면 끝.

2. minimal-mistake 테마의 video-helper

minimal-mistake theme 에서는 video-helper 라는 편의기능이 있다.

image

watch?v= 뒤의 주소를 복사 한 후에

1
2
3
4
5
6
7
8
9
10
11
12
13
14






<!-- Courtesy of embedresponsively.com //-->

  <div class="responsive-video-container">
    <iframe src="https://www.youtube-nocookie.com/embed/ZMQbHMgK2rw" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowfullscreen></iframe>
  </div>


위의 코드를 마크다운 파일에 입력해주면 끝.

댓글남기기