[Groonga-commit] pgroonga/pgroonga.github.io at 6ae570e [master] Set footer

Back to archive index

Kouhei Sutou null+****@clear*****
Sun May 24 18:54:03 JST 2015


Kouhei Sutou	2015-05-24 18:54:03 +0900 (Sun, 24 May 2015)

  New Revision: 6ae570ec60a093aceccdacf779ae2efdd16a4777
  https://github.com/pgroonga/pgroonga.github.io/commit/6ae570ec60a093aceccdacf779ae2efdd16a4777

  Message:
    Set footer

  Added files:
    _includes/contribute.en.html
    _includes/contribute.html
  Modified files:
    _config.yml
    _layouts/base.html
    css/pgroonga.css

  Modified: _config.yml (+1 -0)
===================================================================
--- _config.yml    2015-05-24 18:45:41 +0900 (bcd6187)
+++ _config.yml    2015-05-24 18:54:03 +0900 (94dcfae)
@@ -3,6 +3,7 @@ markdown: kramdown
 highlighter: pygments
 pgroonga_version: 0.5.0
 pgroonga_release_date: 2015-04-29
+copyright_year: 2015
 exclude: ["Rakefile", "Gemfile", "Gemfile.lock"]
 description: A PostgreSQL plugin to use Groonga as index
 

  Added: _includes/contribute.en.html (+5 -0) 100644
===================================================================
--- /dev/null
+++ _includes/contribute.en.html    2015-05-24 18:54:03 +0900 (b23d9f8)
@@ -0,0 +1,5 @@
+<p class="contribute">
+  {% assign source_path = page.path %}
+  {% assign source_url = source_path | prepend: "https://github.com/pgroonga/pgroonga.github.io/blob/master/" %}
+  <a href="{{ source_url }}">If you find any typo, please feel free to send pull requests!</a>
+</p>

  Added: _includes/contribute.html (+6 -0) 100644
===================================================================
--- /dev/null
+++ _includes/contribute.html    2015-05-24 18:54:03 +0900 (7758855)
@@ -0,0 +1,6 @@
+{% case page.language %}
+{% when "ja" %}
+  {% include contribute.ja.html %}
+{% else %}
+  {% include contribute.en.html %}
+{% endcase %}

  Modified: _layouts/base.html (+10 -0)
===================================================================
--- _layouts/base.html    2015-05-24 18:45:41 +0900 (cab42f4)
+++ _layouts/base.html    2015-05-24 18:54:03 +0900 (9fa5e66)
@@ -33,6 +33,16 @@
 
     <footer>
       <hr>
+      <div class="container">
+        {% unless page.categories contains "news" %}
+          <ul class="other-languages">
+            <li><a href="/{{ relative_path }}">English</a></li>
+            <li><a href="/ja/{{ relative_path }}">日本語</a></li>
+          </ul>
+        {% endunless %}
+        {% include contribute.html %}
+        <p class="copyright">&copy; {{ site.copyright_year }} <a href="https://github.com/pgroonga">PGroonga Project</a></p>
+      </div>
     </footer>
 
     <script src="//code.jquery.com/jquery.js"></script>

  Modified: css/pgroonga.css (+19 -0)
===================================================================
--- css/pgroonga.css    2015-05-24 18:45:41 +0900 (9e5b3ca)
+++ css/pgroonga.css    2015-05-24 18:54:03 +0900 (9fb1627)
@@ -3,3 +3,22 @@
   height: 20px;
   vertical-align: super;
 }
+
+ul.other-languages {
+  margin-left: 0;
+  margin-right: 0;
+  padding-left: 0;
+  padding-right: 0;
+}
+
+ul.other-languages li {
+  display: inline-block;
+}
+
+ul.other-languages li:after {
+  content: " | ";
+}
+
+ul.other-languages li:last-child:after {
+  content: "";
+}
-------------- next part --------------
HTML����������������������������...
Download 



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