This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build": | |
"react-scripts build && | |
REACTAPPVERSION=$npm_package_version && | |
sed -i -- 's/%REACT_APP_VERSION%/'$REACTAPPVERSION'/g' build/index.html && | |
echo React App Version = $REACTAPPVERSION", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build": | |
"react-scripts build && | |
REACTBUILDVERSION=$(date +%Y-%m-%d)-$(date +%T) && | |
sed -i -- 's/%REACTBUILDVERSION%/'$REACTBUILDVERSION'/g' build/index.html && | |
echo React Build Version = $REACTBUILDVERSION", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta build-version="%REACT_APP_VERSION%"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta build-version="%REACTBUILDVERSION%"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Taken from: https://speckyboy.com/wordpress-snippets-secondary-navigation/ | |
/* | |
While many WordPress themes have a simple back and forth navigation for post archives, it’s a nice touch to add individual page numbers to the mix. It allows for navigating to a specific page and also gives the user a sense of your content depth. | |
Note the 'mid_size' argument in the code above. The number placed there will determine the amount of pages seen between the Next and Previous text links. | |
*/ | |
<?php | |
the_posts_pagination( array( | |
'mid_size' => 5, // The number of pages displayed in the menu. | |
'prev_text' => __( '« Go Back', 'textdomain' ), // Previous Posts text. | |
'next_text' => __( 'Move Forward »', 'textdomain' ), // Next Posts text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(<any>window).MyExternalFunction(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Http 1.1 | |
getCurrentResponse().setHeader("Cache-Control", "no store, no-cache, must-revalidate"); | |
// Http 1.0 | |
getCurrentResponse().setHeader("Pragma", "no-cache"); | |
// Prevents caching at the proxy server | |
getCurrentResponse().setDateHeader ("Expires", -1); |
NewerOlder