# Data files with numbers as filename

**URL:** https://discourse.gohugo.io/t/data-files-with-numbers-as-filename/3901
**Category:** support
**Created:** [August 13, 2016, 6:43pm UTC](https://discourse.gohugo.io/t/data-files-with-numbers-as-filename/3901 "2016-08-13T18:43:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![juh2](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/juh2/32/3980_2.png) [@juh2](https://discourse.gohugo.io/u/juh2)
#### Post date: [August 13, 2016, 6:43pm UTC](https://discourse.gohugo.io/t/data-files-with-numbers-as-filename/3901/1 "2016-08-13T18:43:38Z")

</div>

I get the following error if I access a data file called “1945” like this

`<p>{{ .Site.Data.1945.events | markdownify }}</p>`

`unexpected ".1945" in operand`

When I rename the file to something like “y1945” everything works as expected.

Is it not possible to access data files with numbers as filenames?

---

<div class="post-metadata">

### Author: ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)
#### Post date: [August 13, 2016, 7:08pm UTC](https://discourse.gohugo.io/t/data-files-with-numbers-as-filename/3901/2 "2016-08-13T19:08:23Z")

</div>

> [@juh2](#):
>
> \<p\>{{ .Site.Data.1945.events | markdownify }}\</p\>

Try:

```auto
{{ $year := (index .Site.Data "1934") }}
{{ $year.events | markdownify }}

```
