Skip to content

Files

Latest commit

 

History

History
45 lines (35 loc) · 1.6 KB

frontend.md

File metadata and controls

45 lines (35 loc) · 1.6 KB

Frontend

This site is built using Drupal and Tome with a custom Digital.gov theme.

Theme commands

Command Use case
lando fe Aggregates, compiles and minifies frontend assets into the dist directory for deployment

Theme file structure

web/
├── core
├── modules
├── profiles
├── sites
└── themes/
    └── custom/
        └── digital_gov/
            ├── css
            ├── gulp-includes
            ├── js
            ├── php-includes
            ├── static
                └── digitalgov
                  └──img
            └── src/
                ├── js
                └── sass
            └── templates

static/{dist,uswds} - All files generated by the gulp process and contains all image/font assets, minified css, and minified js. Changes made in these files will be overridden.

gulp-includes - Scripts ran by the gulp process.

static/digitalgov/img - All favicons and logos that compile into dist

php-includes - Preprocess and theme functions organized by use type

js - Javascript files that compile into dist

css/new - SCSS files that compile into dist

templates - Theme templates and template overrides. Templates inside the /templates/partial directory are being included or extended by other templates.