Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add site-wide favicon from the JoinTTS site #128

Merged
merged 9 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ const { imageShortcode, imageWithClassShortcode } = require('./config');
module.exports = function (config) {
// Set pathPrefix for site
let pathPrefix = '/';

// Copy the `admin` folders to the output
config.addPassthroughCopy('admin');

// for #80 (update site favicon)
// copy files from `_img/favicon/` to `_site/`
config.addPassthroughCopy({ "_img/favicon/favicon.ico": "/assets/favicon.ico" });

// Copy USWDS init JS so we can load it in HEAD to prevent banner flashing
config.addPassthroughCopy({'./node_modules/@uswds/uswds/dist/js/uswds-init.js': 'assets/js/uswds-init.js'});

Expand Down
Binary file added _img/favicon/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions _includes/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@
================================================== -->
<link rel="preload" as="style" href="{{ assetPaths['styles.css'] }}" />
<link rel="stylesheet" href="{{ assetPaths['styles.css'] }}" type="text/css" />

<!-- favicon -->
<link rel="icon" href="{{ '/assets/favicon.ico' | url }}" sizes="any" />
</head>
Loading