HUGO

Data file not show

This is my repo: sumiyuru priyasara / Aortem · GitLab

This repo (Data folder) has 3 JSON files. When call data from header.json to the main menu (partial) but not show that title. Screenshots here: screen shots - Google Drive

My other question Is Can I call Index => capability => title? (index_page.json)

data/header.json

Change:

[
  {
    "logo": "/images/aortem-logo.png"
  }
]

to:

{
  "logo": "/images/aortem-logo.png"
}

themes/hugo-serif-theme/layouts/partials/main-menu.html

Change:

<h4>{{ .site.Data.header.logo }}</h4>

to:

<img src="{{ site.Data.header.logo }}"> <!-- site instead of .site -->

Can I call Index => capability => title?

{{ site.Data.index.index_page.capability.title }}