diff --git a/_config.yml.example b/_config.yml.example index bf18639..7bc8e32 100644 --- a/_config.yml.example +++ b/_config.yml.example @@ -1,5 +1,5 @@ # Logo -logo: css/images/logo.png # Empty this to unset logo +logo: css/images/logo.png # Empty this to unset logo and show site title in the same place # Header menu: @@ -14,9 +14,8 @@ excerpt_link: Read More fancybox: true # Profile -profile: true # whether to show profile bar -gravatar: false # whether to use gravatar with the email -showlogo: false # whether to show the logo in the header +profile: true # Whether to show profile bar +gravatar: false # Whether to use gravatar with the email. If you do, put your email address in your site's `_config.yml`. # Sidebar sidebar: right # set to false if you don't want a sidebar @@ -41,7 +40,10 @@ links: Hexo: http://hexo.io # CDN -cdn: useso #If your site loads slowly change it to "google" , because "useso" is slow out of China +cdn: # You can choose "useso" instead of "google apis"(default). +# cdn: useso +# OR +# cdn: # Miscellaneous google_site_verification: diff --git a/_config.yml.site.example b/_config.yml.site.example index 0173ed3..744faa6 100644 --- a/_config.yml.site.example +++ b/_config.yml.site.example @@ -11,6 +11,7 @@ author_title: 'Web Developer & Designer' avatar: css/images/avatar.png location: 'Harbin, China' follow: https://github.com/ppoffice/ +email: # Your email (Used to show Gravatar). language: en timezone: since: 2000 # The start year showing in your copyright section. diff --git a/layout/_partial/cdn_after_footer.ejs b/layout/_partial/cdn_after_footer.ejs index 9286bb4..3f9782c 100644 --- a/layout/_partial/cdn_after_footer.ejs +++ b/layout/_partial/cdn_after_footer.ejs @@ -1,5 +1,5 @@ -<% if (theme.cdn == "google"){ %> - -<% } else if (theme.cdn == "useso"){ %> +<% if (theme.cdn == "useso"){ %> +<% } else { %> + <% } %> diff --git a/layout/_partial/cdn_head.ejs b/layout/_partial/cdn_head.ejs index 31fc9b6..4dafd5e 100644 --- a/layout/_partial/cdn_head.ejs +++ b/layout/_partial/cdn_head.ejs @@ -1,7 +1,7 @@ -<% if (theme.cdn == "google"){ %> - - -<% } else if (theme.cdn == "useso"){ %> +<% if (theme.cdn == "useso"){ %> +<% } else { %> + + <% } %> diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index f37d023..98378e0 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -10,7 +10,7 @@ <% if(theme.profile) { %> <% } %> diff --git a/layout/_partial/profile.ejs b/layout/_partial/profile.ejs index 8d324c2..8c3a176 100644 --- a/layout/_partial/profile.ejs +++ b/layout/_partial/profile.ejs @@ -1,7 +1,7 @@