Skip to content

Commit

Permalink
Adding generator meta tag to provide version feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sudodoki committed Jan 11, 2017
1 parent 4028c1d commit c93b09d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var hljs = require('highlight.js');
var yaml = require('js-yaml');
var mustache = require('mustache');

var version = require('../package.json').version;
var clone = require('./clone');
var helper;
var debugInited = false;
Expand Down Expand Up @@ -248,6 +249,7 @@ Cleaver.prototype.renderSlideshow = function () {

var layoutData = {
slideshow: slideshow,
version: version,
title: title,
encoding: encoding,
style: style,
Expand Down
1 change: 1 addition & 0 deletions templates/layout.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="{{encoding}}">
{{#version}}<meta name="generator" content="cleaver {{version}}" />{{/version}}
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>{{title}}</title>
<style type="text/css">
Expand Down

0 comments on commit c93b09d

Please sign in to comment.