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
import axios from "axios"; | |
export const HTTP = axios.create({ | |
baseURL: baseURL.url | |
}); |
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.get("wp-json/wp/v2/pages?slug=" + this.$route.params.id) | |
.then(resp => { | |
this.page = resp.data[0]; | |
... |
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
import axios from "axios"; | |
export const HTTP = axios.create({ | |
baseURL: `http://localist.test` | |
}); |
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
<?php | |
if ( ( is_single() || is_page() || is_singular( 'staff', 'podcast', 'post' ) ) && get_post_meta( $post->ID, 'page_layout', $single = true ) != '' ) { | |
$layout = get_post_meta( $post->ID, 'page_layout', true ); | |
} else if ( is_home() && ( get_post_meta( get_option( 'page_for_posts' ), 'page_layout', $single = true ) != '' ) ) { | |
$layout = get_post_meta( get_option( 'page_for_posts' ), 'page_layout', true ); | |
} else { |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|twitterbot|Pinterest|applebot|facebot|linkedinbot|slackbot) | |
RewriteRule /(\d*)$ https://yoursite.com/assets/share/index.php?id=$1 [P] | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
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
map $http_user_agent $root { | |
"~*twitterbot" /var/www/yoursite.com/html/assets/share; | |
"~*applebot" /var/www/yoursite.com/html/assets/share; | |
"~*facebookexternalhit" /var/www/yoursite.com/html/assets/share; | |
"~*facebot" /var/www/yoursite.com/html/assets/share; | |
"~*linkedinbot" /var/www/yoursite.com/html/assets/share; | |
"~*pinterest" /var/www/yoursite.com/html/assets/share; | |
"~*slackbot" /var/www/yoursite.com/html/assets/share; | |
default /var/www/yoursite.com/html; | |
} |
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
<link href="https://fonts.googleapis.com/css?family=Crimson+Text|Montserrat|Playfair+Display" rel="stylesheet"> |