From fbb0c633a70dd50949a2fe37c008e977de2ef2bd Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Wed, 24 Apr 2019 16:39:09 +0200 Subject: [PATCH] template html files --- templates/_index.html | 10 +++++----- templates/_section.html | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/_index.html b/templates/_index.html index 258a0d0f..d2558f90 100644 --- a/templates/_index.html +++ b/templates/_index.html @@ -30,6 +30,7 @@ <![endif]--> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> + <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" /> </head> <body> @@ -37,13 +38,12 @@ <div class="reveal"> <div class="slides"> - <% _.forEach(slides, function(slide) { %> <% if (!_.isArray(slide)) { %> <%= section(slide) %> <% } %> <% if (_.isArray(slide)) { %> - <section> + <section data-transition="none"> <% _.forEach(slide, function(verticalslide) { %> <%= section(verticalslide) %> <% }); %> @@ -51,12 +51,12 @@ <% } %> <% }); %> </div> - <div style="width: 10%; bottom: 2%; left: 3%; position: absolute; z-index: 9999;"> + <div class="bottomLogoLeft"> <img src="img/University-of-Luxembourg-Fr-01.svg" height="110px"> </div> - <div style="width: 10%; bottom: 3%; right: 3%; position: absolute; z-index: 9999;"> + <div class="bottomLogoRight"> <img src="img/LCSB_short_small_4c_cropped.svg" height="86px"> - </div> + </div> </div> <script src="bower_components/reveal.js/lib/js/head.min.js"></script> diff --git a/templates/_section.html b/templates/_section.html index f4271b76..96dbbf86 100644 --- a/templates/_section.html +++ b/templates/_section.html @@ -1,9 +1,11 @@ <% if (!_.isString(slide) && !_.isArray(slide) && _.isObject(slide)) { %> <section data-separator="^\n\n\n" + data-transition="none" data-vertical="^\n\n" <%= _.map(slide.attr, function (val, attr) {return attr + '="' + val + '"'}).join(' ')%> <% if (_.isString(slide.filename)) { %>data-<% if (slide.filename.indexOf('.html') !== -1) { %>html<% } else { %>markdown<% }%>="slides/<%= slide.filename %>"<% } %>></section> <% } %><% if (_.isString(slide)) { %> <section data-separator="^\n\n\n" + data-transition="none" data-vertical="^\n\n" data-<% if (slide.indexOf('.html') !== -1) { %>html<% } else { %>markdown<% }%>="slides/<%= slide %>"></section> <% } %> -- GitLab