Verified Commit 7f345917 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

add template

parent 9bf9da9a
# Generated on 2013-11-27 using generator-reveal 0.3.2
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-gh-pages'
grunt.initConfig
watch:
livereload:
options:
livereload: true
files: [
'index.html'
'slides/*.md'
'slides/*.html'
'theme/js/*.js'
]
index:
files: [
'theme/templates/_index.html'
'theme/templates/_section.html'
'slides/list.json'
]
tasks: ['buildIndex']
jshint:
files: ['theme/js/*.js']
tasks: ['jshint']
connect:
livereload:
options:
port: 9000
# Change hostname to '0.0.0.0' to access
# the server from outside.
hostname: 'localhost'
base: '.'
open: true
livereload: true
jshint:
all: ['theme/js/*.js']
copy:
dist:
files: [{
expand: true
src: [
'slides/**'
'theme/**'
'theme/css/**'
'theme/js/**'
'slides/img/**'
]
dest: 'public/'
},{
expand: true
src: ['index.html']
dest: 'public/'
filter: 'isFile'
}]
# Load all grunt tasks.
require('load-grunt-tasks')(grunt)
grunt.registerTask 'buildIndex',
'Build theme/templates/_index.html and slides/list.json.',
->
indexTemplate = grunt.file.read 'theme/templates/_index.html'
sectionTemplate = grunt.file.read 'theme/templates/_section.html'
slides = grunt.file.readJSON 'slides/list.json'
html = grunt.template.process indexTemplate, data:
slides:
slides
section: (slide) ->
grunt.template.process sectionTemplate, data:
slide:
slide
grunt.file.write 'index.html', html
grunt.registerTask 'test',
'*Lint* javascript and coffee files.', [
'jshint'
]
grunt.registerTask 'server',
'Run presentation locally and start watch process (living document).', [
'buildIndex'
'connect:livereload'
'watch'
]
grunt.registerTask 'dist',
'Save presentation files to *public* directory.', [
'test'
'buildIndex'
'copy'
]
# Define default task.
grunt.registerTask 'default', [
'test'
'server'
]
../theme/package.json
\ No newline at end of file
# Presentation Title
## Month XYth, 2019
<div style="top: 6em; left: 0%; position: absolute;">
<img src="theme/img/lcsb_bg.png">
</div>
<div style="top: 5em; left: 60%; position: absolute;">
<img src="slides/img/r3-training-logo.png" height="200px">
<br><br><br>
<h1>A catchy title</h1>
<br><br><br>
<h4>
Firstname LastName, Title<br><br>
firstname.lastname@uni.lu<br><br>
<i>Luxembourg Centre for Systems Biomedicine</i>
</h4>
</div>
[
{ "filename": "index.md" },
{ "filename": "overview.md" },
{ "filename": "thanks.md" }
]
# Overview
0. Subject 1
1. Subject 2
# Thank you.
<center><img src="slides/img/r3-training-logo.png" height="200px"></center>
Contact us if you need help:
<a href="mailto:r3lab.core@uni.lu">r3lab.core@uni.lu</a>
../theme
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment