py_file(self.abs_src_path, self.abs_dest_path)įile "/usr/lib/python3/dist-packages/mkdocs/utils/_init_.py", line 120, in copy_file Self._n(self._callback, *self._args)įile "/usr/lib/python3/dist-packages/tornado/platform/asyncio.py", line 122, in _handle_eventsįile "/usr/lib/python3/dist-packages/tornado/stack_context.py", line 300, in null_wrapperįile "/usr/lib/python3/dist-packages/pyinotify.py", line 1560, in handle_readįile "/usr/lib/python3/dist-packages/pyinotify.py", line 1275, in process_eventsįile "/usr/lib/python3/dist-packages/livereload/watcher.py", line 165, in inotify_eventįile "/usr/lib/python3/dist-packages/livereload/handlers.py", line 66, in poll_tasksįile "/usr/lib/python3/dist-packages/livereload/watcher.py", line 93, in examineįile "/usr/lib/python3/dist-packages/mkdocs/commands/serve.py", line 114, in builderīuild(config, live_server=live_server, dirty=dirty)įile "/usr/lib/python3/dist-packages/mkdocs/commands/build.py", line 285, in buildįile "/usr/lib/python3/dist-packages/mkdocs/structure/files.py", line 44, in copy_static_filesįile "/usr/lib/python3/dist-packages/mkdocs/structure/files.py", line 178, in copy_file builder at 0x7f627ea07598> (delay: None)Įxception in callback BaseAsyncIOLoop._handle_events(3, 1)įile "/usr/lib/python3.7/asyncio/events.py", line 88, in _run It applies the same output logic as above in Get Remote Data.Reload 1 waiters: /home/charles/versioned/emutosdocs/usermanual/docs/#index.md# The file extension does not matter, but the content does. To load local files with getJSON and getCSV, the source files must reside within Hugo’s working directory. OAuth and other authentication methods are not implemented. Authentication When Using REST URLsĬurrently, you can only use those authentication methods that can be put into an URL. If you don’t like caching at all, you can fully disable caching with the command line flag -ignoreCache. You can also set cacheDir in the main configuration file. With the command-line flag -cacheDir, you can specify any folder on your system as a caching directory. The variable $TMPDIR will be resolved to your system-dependent temporary directory. Cache URLsĮach downloaded URL will be cached in the default folder $TMPDIR/hugo_cache/. ![]() must be used to output the nth-column from the current row. johnpatitucci.toml contains a similar list: Jacopastorius.toml contains the content below. This example uses TOML as its file format with the two following data files: The example below is a bit contrived, but it illustrates the flexibility of data Files. Jaco Pastorius was a great bass player, but his solo discography is short enough to use as an example. This is best explained with an example: Example: Jaco Pastorius’ Solo Discography The keys in the map created with data templates from data files will be a dot-chained set of path, filename, and key in file (if applicable). To check if any such duplicate exists, run hugo with the -v flag. For theme-specific data items that shouldn’t be overridden, it can be wise to prefix the folder structure with a namespace e.g. Therefore, theme authors should take care to not include data files that could be easily overwritten by a user who decides to customize a theme. Data Files in Themesĭata Files can also be used in Hugo themes but note that theme data files follow the same logic as other template files in the Hugo lookup order (i.e., given two files with the same name and relative path, the file in the root project data directory will override the file in the themes//data directory). 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. Or perhaps you want to show a larger dataset in a template (see example below). This feature can extend the content in case your front matter fields grow out of control. Data files aren’t used to generate standalone pages rather, they’re meant to be supplemental to content files. The data folder is where you can store additional data for Hugo to use when generating your site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |