Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1161 from emaia/master
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
olefredrik authored Nov 21, 2017
2 parents 4a726b8 + 61ee4e2 commit 762d872
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,5 @@ function watch() {
gulp.watch('src/assets/scss/**/*.scss').on('all', sass);
gulp.watch('**/*.php').on('all', browser.reload);
gulp.watch('src/assets/js/**/*.js').on('all', gulp.series(javascript, browser.reload));
gulp.watch('src/assets/img/**/*').on('all', gulp.series(images, browser.reload));
gulp.watch('src/assets/images/**/*').on('all', gulp.series(images, browser.reload));
}
11 changes: 5 additions & 6 deletions library/cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ function foundationpress_cleanup_head() {
remove_action( 'wp_head', 'index_rel_link' );

// Previous link.
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'parent_post_rel_link', 10 );

// Start link.
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'start_post_rel_link', 10 );

// Canonical.
remove_action( 'wp_head', 'rel_canonical', 10, 0 );
remove_action( 'wp_head', 'rel_canonical', 10 );

// Shortlink.
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10 );

// Links for adjacent posts.
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10 );

// WP version.
remove_action( 'wp_head', 'wp_generator' );
Expand Down Expand Up @@ -129,4 +129,3 @@ function foundationpress_remove_figure_inline_style( $output, $attr, $content )

}
endif;

2 changes: 1 addition & 1 deletion library/enqueue-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function foundationpress_scripts() {
// Enqueue Founation scripts
wp_enqueue_script( 'foundation', get_template_directory_uri() . '/dist/assets/js/' . foundationpress_asset_path('app.js'), array( 'jquery' ), '2.10.4', true );

// Enqueue FontAwesome from CDN. Uncomment the line below if you don't need FontAwesome.
// Enqueue FontAwesome from CDN. Uncomment the line below if you need FontAwesome.
//wp_enqueue_script( 'fontawesome', 'https://use.fontawesome.com/5016a31c8c.js', array(), '4.7.0', true );


Expand Down
Binary file not shown.
Binary file removed src/assets/images/icons/apple-touch-icon-144x144.png
Binary file not shown.
Binary file removed src/assets/images/icons/apple-touch-icon-72x72.png
Binary file not shown.
Binary file removed src/assets/images/icons/apple-touch-icon.png
Binary file not shown.
Binary file removed src/assets/images/icons/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion template-parts/featured-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// If a featured image is set, insert into layout and use Interchange
// to select the optimal image size per named media query.
if ( has_post_thumbnail( $post->ID ) ) : ?>
<header class="featured-hero" role="banner" data-interchange="[<?php echo the_post_thumbnail_url('featured-small'); ?>, small], [<?php echo the_post_thumbnail_url('featured-medium'); ?>, medium], [<?php echo the_post_thumbnail_url('featured-large'); ?>, large], [<?php echo the_post_thumbnail_url('featured-xlarge'); ?>, xlarge]">
<header class="featured-hero" role="banner" data-interchange="[<?php the_post_thumbnail_url('featured-small'); ?>, small], [<?php the_post_thumbnail_url('featured-medium'); ?>, medium], [<?php the_post_thumbnail_url('featured-large'); ?>, large], [<?php the_post_thumbnail_url('featured-xlarge'); ?>, xlarge]">
</header>
<?php endif;

0 comments on commit 762d872

Please sign in to comment.