changeset 15:3cbfe62e4b8f

update jekyll base html style
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 17 Oct 2018 12:36:49 +0900
parents 4edd920d7cab
children 99b0c852c07a
files slides.html slides.pdf.html
diffstat 2 files changed, 52 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/slides.html	Wed Oct 17 12:21:53 2018 +0900
+++ b/slides.html	Wed Oct 17 12:36:49 2018 +0900
@@ -1,11 +1,26 @@
+---
+---
+
+{% if jekyll %}
+  {% assign headers   = site.headers %}
+  {% assign slides    = site.slides %}
+  {% assign name     = 'style' %}
+{% endif %}
+
+{% comment %}
+<!-- todo: fix if jekyll  - not working in liqud 4+ if not defined??
+        assign name workaround - change back to to style_css with caputure or similar -->
+{% endcomment %}
+
+
 <!DOCTYPE html>
 <html>
 <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
-   <title><%= @headers['title'] %></title>
+   <title>{{ headers['title'] }}</title>
 
-<meta name="generator" content="<%= @headers['generator'] %>">
-<meta name="author"    content="<%= @headers['author']%>" >
+   <meta name="generator" content="{{ headers['generator'] }}">
+   <meta name="author"    content="{{ headers['author']}}" >
 
 <!-- style sheet links -->
 <link rel="stylesheet" href="s6/themes/projection.css"   media="screen,projection">
@@ -37,7 +52,6 @@
     prettyPrint();
   } );
 
-  <%= content_for :js %>
 </script>
 
 <!-- Better Browser Banner for Microsoft Internet Explorer (IE) -->
@@ -45,7 +59,7 @@
 <script src="s6/js/jquery.microsoft.js"></script>
 <![endif]-->
 
-<%= content_for :head %>
+    {{ more_content_for_head }}
 
 </head>
 <body>
@@ -66,15 +80,15 @@
       <tr>
         <td>
           <div align="center">
-            <h1><font color="#808db5"><%= @headers['title'] %></font></h1>
+              <h1><font color="#808db5">{{ headers['title'] }}</font></h1>
           </div>
         </td>
       </tr>
       <tr>
         <td>
           <div align="left">
-            <%= @headers['author'] %>
-            <%= @headers['profile'] %>
+              {{ headers['author'] }}
+              {{ headers['profile'] }}
             <hr style="color:#ffcc00;background-color:#ffcc00;text-align:left;border:none;width:100%;height:0.2em;">
           </div>
         </td>
@@ -82,7 +96,12 @@
     </table>
   </div>
 
-<%= @content %>
+
+{% for slide in slides %}
+<div class='slide'>
+  {{ slide.content }}
+</div>
+{% endfor %}
 
 </div><!-- presentation -->
 </body>
--- a/slides.pdf.html	Wed Oct 17 12:21:53 2018 +0900
+++ b/slides.pdf.html	Wed Oct 17 12:36:49 2018 +0900
@@ -1,8 +1,23 @@
+---
+---
+
+{% if jekyll %}
+  {% assign headers   = site.headers %}
+  {% assign slides    = site.slides %}
+  {% assign name     = 'style' %}
+{% endif %}
+
+{% comment %}
+<!-- todo: fix if jekyll  - not working in liqud 4+ if not defined??
+        assign name workaround - change back to to style_css with caputure or similar -->
+{% endcomment %}
+
+
 <!DOCTYPE html>
 <html>
 <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
-   <title><%= @headers['title'] %></title>
+   <title>{{ headers['title'] }}</title>
 
 <meta name="generator" content="<%= @headers['generator'] %>">
 <meta name="author"    content="<%= @headers['author']%>" >
@@ -50,15 +65,15 @@
       <tr>
         <td>
           <div align="center">
-            <h1><font color="#808db5"><%= @headers['title'] %></font></h1>
+              <h1><font color="#808db5">{{ headers['title'] }}</font></h1>
           </div>
         </td>
       </tr>
       <tr>
         <td>
           <div align="left">
-            <%= @headers['author'] %>
-            <%= @headers['profile'] %>
+               {{ headers['author'] }}
+               {{ headers['profile'] }}
             <hr style="color:#ffcc00;background-color:#ffcc00;text-align:left;border:none;width:100%;height:0.2em;">
           </div>
         </td>
@@ -66,7 +81,11 @@
     </table>
   </div>
 
-<%= @content %>
+{% for slide in slides %}
+<div class='slide'>
+  {{ slide.content }}
+</div>
+{% endfor %}
 
 </div><!-- presentation -->
 </body>