Place a block inside a twig template I've got a custom content type 'professor', and a 'node--professor.html.twig' in my theme (derived from 'classy') to override the standard markup. The designer wants me to put a list (a view?) of the professor's 'courses' (which is another content type) between the professor's contacts and biography, basically, INSIDE the 'node--professor.twig.html'. Is there a Drupal-way to do it?

And, by the way, what is the main difference between a page with a custom content type and a custom content entity? Do I need to write a module and a content entity, or custom content type can do the trick?
Download and enable Twig tweak module:


  Twig Tweak module provides a Twig extension with some useful functions
  and filters that can improve developer experience.


And then on your twig template put:

&lt;dd&gt;{{ drupal_view('view_name', 'block_1') }}&lt;/dd&gt;
&lt;dd&gt;{{ drupal_block('block_id') }}&lt;/dd&gt;




Themers Little Helper


  Some of the Filters and functions, backported from TFD7 theme engine
  and other things that can help a themer getting stuff done without to
  much hassle :)


{{ drupal_block(block_delta) }}




Bamboo Twig


  The Bamboo Twig module provides some Twig extensions with some useful
  functions and filters aimed to improve the development experience.
  
  Bamboo Twig has a lot of advantages and brings a lot of new features
  to the Twig landscape of Drupal 8. It boosts performance by using lazy
  loading, improves the code quality with automated workflow. It also
  includes automated unit and kernel tests to ensure stability.


{# Render the `system_powered_by_block` block #}
{{ bamboo_render_block('system_powered_by_block') }}