---
layout: metacatui_exports
outputs: json
html:
"nav" : navbar
"footer" : footer
dependencies:
- button
- logo
- icon
- svg
- contact-info
- join-form
- pill
js:
filename: d1website
assets:
- helpers
css:
filename: css/d1website
assets:
- variables
- fonts
- functions
- mixins-and-placeholders
- responsive-font-size
- utility
- root
fonts:
weights:
- "300"
- "regular"
- "500"
- "600"
- "700"
- "900"
types:
- "woff"
- "woff2"
faces:
- "martel-v4-latin"
- "work-sans-v5-latin"
static_files:
"android-chrome-192x192.png" : "android-chrome-192x192.png"
"android-chrome-512x512.png" : "android-chrome-512x512.png"
"apple-touch-icon-120x120-precomposed.png" : "apple-touch-icon-120x120-precomposed.png"
"apple-touch-icon-120x120.png" : "apple-touch-icon-120x120.png"
"apple-touch-icon-152x152-precomposed.png" : "apple-touch-icon-152x152-precomposed.png"
"apple-touch-icon-152x152.png" : "apple-touch-icon-152x152.png"
"apple-touch-icon-180x180-precomposed.png" : "apple-touch-icon-180x180-precomposed.png"
"apple-touch-icon-180x180.png" : "apple-touch-icon-180x180.png"
"apple-touch-icon-60x60-precomposed.png" : "apple-touch-icon-60x60-precomposed.png"
"apple-touch-icon-60x60.png" : "apple-touch-icon-60x60.png"
"apple-touch-icon-76x76-precomposed.png" : "apple-touch-icon-76x76-precomposed.png"
"apple-touch-icon-76x76.png" : "apple-touch-icon-76x76.png"
"apple-touch-icon-precomposed.png" : "apple-touch-icon-precomposed.png"
"apple-touch-icon.png" : "apple-touch-icon.png"
"browserconfig.xml" : "browserconfig.xml"
"favicon-16x16.png" : "favicon-16x16.png"
"favicon-32x32.png" : "favicon-32x32.png"
"favicon.ico" : "favicon.ico"
"mstile-144x144.png" : "mstile-144x144.png"
"mstile-150x150.png" : "mstile-150x150.png"
"mstile-310x150.png" : "mstile-310x150.png"
"mstile-310x310.png" : "mstile-310x310.png"
"mstile-70x70.png" : "mstile-70x70.png"
"safari-pinned-tab.svg" : "safari-pinned-tab.svg"
"site.webmanifest" : "site.webmanifest"
---
### Version: 2020-08-10 19:11:06.152862 -0400 EDT m=+3.647658245
# Exports from the DataONE website for the MetacatUI DataONE theme
In order to maintain consistency between the DataONE website and the MetacatUI DataONE theme,
we export certain components from the website for use in MetacatUI.
## Building content for MetacatUI from the website source files
All of the source files for the website are available in [a GitHub repository](https://github.com/dataoneORG/dataone-web).
The website uses the static site generator, [Hugo](https://gohugo.io/), to convert the content and template files contained in the repository into HTML, CSS, javascript, and other resources.
To build the website, download the repository, [install Hugo](https://gohugo.io/getting-started/installing/) and use the [`hugo`](https://gohugo.io/commands/hugo/) CLI command to build the website.
You will most likely want to use the command with the following flags:
```
hugo -d $DESTINATION_DIRECTORY --minify --cleanDestinationDir
```
Hugo will output the files you need for metacatUI in a sub-directory within `$DESTINATION_DIRECTORY` called `metacatUI_exports`.
(All of the other files & directories that were created in `$DESTINATION_DIRECTORY` can be discarded.)
## Updating DataONE theme files in MetacatUI
All the files required to update the MetacatUI DataONE theme are contained in the `metacatUI_exports` directory generated by the Hugo build.
Copy the contents of this directory to the `src/js/themes/dataone/components/d1website` directory in MetacatUI.
The DataONE theme is already configured to grab templates, the css bundle, and javascript bundle from this directory.
For example, the `src/js/themes/dataone/config.js` file sets the path to the navbar template to `src/js/themes/dataone/components/d1website/navbar.html`.
The `src/js/themes/dataone/templates/appHead.html` template has a `` pointing to the stylesheet in the `d1website` directory, and a `