That is, Given two files with the same name and relative path, the data in the file in the root project data directory will override the data from the file in the themes//data directory for keys that are duplicated). However, note that the theme data files are merged with the project directory taking precedence. To access the data using the index function, the file name is irrelevant. To access the data using the notation, the file name must begin with an underscore or a Unicode letter, followed by zero or more underscores, Unicode letters, or Unicode digits. The data will be accessible as a map in the. These files must be YAML, JSON, XML, or TOML files (using the. In both cases, it’s a good idea to outsource the data in their (own) files. showing a larger dataset in a template (see the example below).extending the content when the front matter fields grow out of control, or.The data folder should store additional data for Hugo to use when generating your site.ĭata files are not for generating standalone pages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |