How to get the taxonomy term for the current page

I am trying to show list of items which has similar taxonomy, like categories taxonomy page has term “technology”. how to list them

this is what I have tried.

  {{$term:= .Params.categories }}
      <p>{{ $term }}</p>
      {{ $taxonomy := index .Site.Taxonomies.categories $term }}
      {{ range $taxonomy.Pages}}
        <div class="col-lg-4 col-md-6 blog-card has-border">
          {{ .Render "article" }}
        </div>
        {{ end }}

I am not sure how to get the $term getting null for .Params.categories.

any help is appreciated.

Have a look at Related Content.

site configuration

[taxonomies]
category = 'categories'

[related]
  includeNewer = true
  [[related.indices]]
    name = 'categories'
    weight = 100

layouts/posts/single.html

{{ with site.RegularPages.Related . }}
  <p>Related:
    <ul>
      {{ range .ByTitle }}
        <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
      {{ end }}
    </ul>
  </p>
{{ end }}