|
|
______________________________________________________________________________________________
|
|
|
When beginning a suboffice migration into the main Department of Commerce website, two twig files need to be developed. These files can be found in /themes/custom/commerce/templates. The most efficient approach is to copy an existing suboffice twig file and rename it to the appropriate new suboffice. For example I will use OSY's twig files. The following are the set of files that need to be copied and renamed:
|
|
|
|
|
|
1. block--osy-branding-block.html.twig to block--newname-branding-block.html.twig
|
|
|
- In the branding block you will need to update this information
|
|
|
|
|
|
```
|
|
|
<h1 class="usa-logo-text">
|
|
|
<a class="office-of-style" href="{{ path('view.osy_frontpage.page_1') }}" accesskey="1" title="{{ 'Office of Security Home'|t }}" aria-label="Office of Security Home">Office of</a><br>
|
|
|
<a href="{{ path('view.osy_frontpage.page_1') }}" accesskey="2" title="{{ 'Office of Security Home'|t }}" aria-label="OSY Home">Security
|
|
|
</a>
|
|
|
</h1>
|
|
|
```
|
|
|
1. page--osy.html.twig to page--newname.html.twig
|
|
|
- In the page template youjust need to change the name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
With the upgrade of the USWDS version 02 theme, certain modifications were made to the twig and sass files to ensure consistency and ease of use in the development of the Department of Commerce office subsites. A majority of the issues that arise are due to the configuration synchronization not conveying CSS classes properly to the merge request and subsequently won't convey in a git pull when a developer needs it. You can easily find the blocks in question in the block layout. This procedure can be applied to all office homepages and it should work properly and consistently to all offices.
|
... | ... | |