Explorar o código

Merge pull request #45 from srwooow/master

Spanish + Google Websmaster tools + More speed in loading page for America and Europe
Ruipeng Zhang %!s(int64=9) %!d(string=hai) anos
pai
achega
69f1b77422

+ 4 - 0
_config.yml.example

@@ -40,7 +40,11 @@ contacts:
 links:
   Hexo: http://hexo.io
 
+# CDN
+cdn: useso #If your site loads slowly change it to "google" , because "useso" is slow out of China
+
 # Miscellaneous
+google_site_verification:
 google_analytics:
 favicon: favicon.png
 twitter:

+ 30 - 0
languages/es.yml

@@ -0,0 +1,30 @@
+#By SrWoOoW 
+index:
+  home: 'Inicio'
+  search: 'Buscar'
+  archive: 'Archivo'
+  category: 'Categoria'
+  uncategorized: 'Sin categoría'
+  tag: 'Etiqueta'
+nav:
+  next: 'Siguiente '
+  prev: 'Anterior'
+  older: 'Más viejo'
+  newer: 'Más nuevo'
+widget:
+  recents: 'Recientes'
+  archives: 'Archivos'
+  categories: 'Categorias'
+  links: 'Links'
+  tags: 'Etiquetas'
+  tag_cloud: 'Nube de etiquetas'
+article:
+  comments: 'Comentarios'
+  share: 'Compartir'
+  catalogue: 'Catálogo'
+profile:
+  follow: 'SEGUIR'
+  post: 'Entrada'
+  tag: 'Etiqueta'
+  posts: 'Entradas'
+  tags: 'Etiquetas'

+ 1 - 1
layout/_partial/after-footer.ejs

@@ -24,7 +24,7 @@
 </script>
 <% } %>
 
-<script src="//ajax.useso.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
+<%- partial('cdn_after_footer') %>
 
 <% if (theme.fancybox){ %>
   <%- css('fancybox/jquery.fancybox') %>

+ 5 - 0
layout/_partial/cdn_after_footer.ejs

@@ -0,0 +1,5 @@
+<% if (theme.cdn == "google"){ %>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
+<% } else if (theme.cdn == "useso"){ %>
+ <script src="//ajax.useso.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
+<% } %>

+ 7 - 0
layout/_partial/cdn_head.ejs

@@ -0,0 +1,7 @@
+<% if (theme.cdn == "google"){ %>
+ <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
+ <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>
+<% } else if (theme.cdn == "useso"){ %>
+ <link href='//fonts.useso.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
+ <link href="//fonts.useso.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
+<% } %>

+ 3 - 0
layout/_partial/google_site_verification.ejs

@@ -0,0 +1,3 @@
+<% if (theme.google_site_verification){ %>
+<meta name="google-site-verification" content="<%= theme.google_site_verification %>" />
+<% } %>

+ 2 - 2
layout/_partial/head.ejs

@@ -28,11 +28,11 @@
   <% if (theme.favicon){ %>
     <link rel="icon" href="<%- theme.favicon %>">
   <% } %>
-  <link href='//fonts.useso.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
-  <link href="//fonts.useso.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
+  <%- partial('cdn_head') %>
   <%- css('css/style') %>
   <%- css('font-awesome/css/font-awesome.min') %>
   <%- partial('google-analytics') %>
+  <%- partial('google_site_verification') %>
   <% if( theme.customstylesheet ){ %>
     <%- css('css/'+theme.customstylesheet) %>
   <% } %>