[Groonga-commit] droonga/droonga.org at 04d8609 [gh-pages] Set og:title

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 30 16:14:11 JST 2013


Kouhei Sutou	2013-12-30 16:14:11 +0900 (Mon, 30 Dec 2013)

  New Revision: 04d8609600cde5d1cba338efc45d8b9a56f8fb45
  https://github.com/droonga/droonga.org/commit/04d8609600cde5d1cba338efc45d8b9a56f8fb45

  Message:
    Set og:title

  Modified files:
    _layouts/default.html

  Modified: _layouts/default.html (+4 -1)
===================================================================
--- _layouts/default.html    2013-12-30 16:04:51 +0900 (37b4f2b)
+++ _layouts/default.html    2013-12-30 16:14:11 +0900 (dd41eed)
@@ -1,6 +1,8 @@
 <!DOCTYPE html>
 <html>
   <head>
+    {% capture title %}{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}{% endcapture %}
+
     {% if page.description %}
       {% assign description = page.description %}
     {% else %}
@@ -8,7 +10,7 @@
     {% endif %}
 
     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-    <title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
+    <title>{{ title }}</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link href="/css/droonga.css" rel="stylesheet" media="screen">
     <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
@@ -21,6 +23,7 @@
     <meta property="og:image" content="{{ site.url }}/images/icons/droonga-icon-full-size.png" />
     <meta property="og:site_name" content="Droonga" />
     <meta property="og:url" content="{{ site.url }}{{ page.url | remove:'index.html' }}" />
+    <meta property="og:title" content="{{ title }}" />
     <meta property="og:description" content="{{ description }}" />
 
     {% if page.use_social_widgets %}
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index