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
Jekyllize legacy pages #252
Conversation
$ find www.foia.gov/ -type f -name "*.html" | xargs sed -i -e 's/\r$//'
- Moves the common legacy scripts to a single include - Add a page variable to include legacy scripts (use-legacy-scripts) - Fix the ordering of scripts (e.g. jquery should be first)
- Move popup to an include - Include popup on all pages for simplicity - Move script tag to glance.js init script
Move our main foia-styles.css to the bottom of the list so that it overrides the other included stylesheets.
Keep ordering of stylesheets.
Videos on the FAQ page are not working. |
Video tooltips on glossary page are not working. |
<li><a href="data.html?foia/Services/RequestDisposition.jsp?agencyName=DOJ&requestYear=2016">Department of Justice: Requests Disposition 2016</a></li> | ||
<li><a href="data.html?foia/Services/DataRequest.jsp?agencyName=DHS&requestYear=2012">Department of Homeland Security: Requests 2012</a></li> | ||
<li><a href="data.html?foia/Services/DataRequest.jsp?agencyName=DHS&requestYear=2014">Department of Homeland Security: Requests 2014</a></li> | ||
<li><a href="data.html?foia/Services/DataRequest.jsp?agencyName=DHS&requestYear=2009">Department of Homeland Security: Requests 2009</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the life of me I can't figure out how these changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably the line endings dos -> unix.
</div> | ||
<!-- End FOIA Template --> | ||
</body> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing we didn't jekyllize this one because the sitemap is going to change anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but this PR isn't even complete. There are still some pages that need to be migrated, they are lower priority but we will get to them later.
Remove bottom margin on header to avoid overlap. Allow body to scroll. Add some margin to legacy grid on smaller screens.
The tooltips are working, they are just slow to load. |
Part of #163
This tackles most of the legacy pages. There are a handful more to do, but will fall in another PR.