Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AnythingLinux/c87a5a8a255a1397c1ef143ad2ed093c to your computer and use it in GitHub Desktop.

Select an option

Save AnythingLinux/c87a5a8a255a1397c1ef143ad2ed093c to your computer and use it in GitHub Desktop.
Copy the homepage's <footer> block into other HTML pages
@AnythingLinux

Copy link
Copy Markdown
Author

nano sync_footer.py
chmod sync_footer.py
python3 sync_footer.py /var/www/html --dry-run # validate only, writes nothing
python3 sync_footer.py /var/www/html # apply (only if the dry run above passed)
python3 sync_footer.py /var/www/html --skip-failed # apply to passing pages even if some fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment