<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if(is_single()){?>
  <?php $ogimage_url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'full'  );?>
  <meta property="og:title" content="<?php the_title(); ?>" />
  <meta property="og:type" content="website" />
  <meta property="og:url" content="<?php the_permalink();?>" />
  <meta property="og:image" content="<?php echo $ogimage_url;?>" />
  <meta property="twitter:image" content="<?php echo $ogimage_url;?>" />
  <meta property="og:description" content="<?php the_excerpt(); ?>" />
<?php }else{?>
  <meta property="og:title" content="<?php wp_title('|',1,'right'); ?> <?php bloginfo('name'); ?>" />
  <meta property="og:type" content="website" />
  <meta property="og:url" content="<?php echo esc_url( home_url() ); ?>" />
  <meta property="og:image" content="<?php echo esc_url( get_template_directory_uri()); ?>/images/9.jpg" />
  <meta property="twitter:image" content="<?php echo esc_url( get_template_directory_uri()); ?>/images/9.jpg" />
  <meta property="og:description" content="<?php bloginfo('description'); ?>" />
<?php } ?>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.1.0/css/all.css">

<?php 

wp_head();
get_template_part( 'template-parts/header/header-content', 'header' );
?>