How to add post thumbnail on posts on sites homepage?

The best way is to create a child theme so that when changes are made to 2017 theme and you update your theme with repository, your changes are not lost.

How to create a child theme

Then go to the theme folder/template-parts/post/content.php

Approx edit line 54 to add native function get_the_post_thumbnail(); to div.entry-content

below is the code

<div class="entry-content">
        <?php
        get_the_post_thumbnail();
        /* translators: %s: Name of current post */
        the_content( sprintf(
            __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
            get_the_title()
        ) );

        wp_link_pages( array(
            'before'      => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
            'after'       => '</div>',
            'link_before' => '<span class="page-number">',
            'link_after'  => '</span>',
        ) );
        ?>
    </div><!-- .entry-content -->

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)