Skip to content

Commit

Permalink
Fixed the site to be jekyll compatible again.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Apr 19, 2016
1 parent 672d9c9 commit ca57a58
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 202 deletions.
2 changes: 2 additions & 0 deletions _config.build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
url:
baseurl:
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
url: /jsencrypt
baseurl: /jsencrypt
32 changes: 32 additions & 0 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<nav class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">JSEncrypt</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li {% if page.url=='/index.html' %}class="active"{% endif %}>
<a href="index.html">Home</a>
</li>
<li {% if page.url=='/demo/index.html' %}class="active"{% endif %}>
<a href="demo/index.html">Demo</a>
</li>
<li {% if page.url=='/test/index.html' %}class="active"{% endif %}>
<a href="test/index.html">Test</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt/archive/master.zip" role="button">Download</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt" role="button">GitHub Project</a>
</li>
</ul>
</div>
</div>
</nav>
37 changes: 37 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ page.title }}</title>
<base id="basetag" href="{{ site.baseurl }}/">
<!--[if IE]>
<script type='text/javascript'>
(function() {
var tag = document.getElementById('basetag');
tag.href = location.protocol + '//' + location.host + '{{ site.baseurl }}/';
}());
</script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="bin/jsencrypt.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-450670-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
{% include navbar.html %}
<div class="container">
{{ content }}
</div>
</body>
</html>
75 changes: 5 additions & 70 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -1,69 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>Online RSA Key Generator</title>
<base id="basetag" href="/">
<!--[if IE]>
<script type='text/javascript'>
(function() {
var tag = document.getElementById('basetag');
tag.href = location.protocol + '//' + location.host + '/';
}());
</script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="bin/jsencrypt.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-450670-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<nav class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">JSEncrypt</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li >
<a href="index.html">Home</a>
</li>
<li >
<a href="demo/index.html">Demo</a>
</li>
<li >
<a href="test/index.html">Test</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt/archive/master.zip" role="button">Download</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt" role="button">GitHub Project</a>
</li>
</ul>
</div>
</div>
</nav>

<div class="container">
<div class="row">
---
layout: default
title: Online RSA Key Generator
---
<div class="row">
<div class="panel panel-default">
<div class="panel-heading"><h1>Online RSA Key Generator</h1></div>
<div class="panel-body">
Expand Down Expand Up @@ -221,7 +160,3 @@
generateKeys();
});
</script>

</div>
</body>
</html>
67 changes: 5 additions & 62 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,61 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>JSEncrypt</title>
<base id="basetag" href="/jsencrypt">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="bin/jsencrypt.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-450670-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<nav class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">JSEncrypt</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li >
<a href="index.html">Home</a>
</li>
<li >
<a href="demo/index.html">Demo</a>
</li>
<li >
<a href="test/index.html">Test</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt/archive/master.zip" role="button">Download</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt" role="button">GitHub Project</a>
</li>
</ul>
</div>
</div>
</nav>

<div class="container">
<div class="starter-template">
---
title: JSEncrypt
layout: default
---
<div class="starter-template">
<h1>JSEncrypt</h1>
</div>
<div class="row">
Expand Down Expand Up @@ -171,7 +118,3 @@ <h4>1024 bit RSA Private Key in Base64 Format</h4>
</code></pre>
</div>
</div>

</div>
</body>
</html>
75 changes: 5 additions & 70 deletions test/index.html
Original file line number Diff line number Diff line change
@@ -1,69 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>Testing JSEncrypt</title>
<base id="basetag" href="/">
<!--[if IE]>
<script type='text/javascript'>
(function() {
var tag = document.getElementById('basetag');
tag.href = location.protocol + '//' + location.host + '/';
}());
</script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="bin/jsencrypt.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-450670-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<nav class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">JSEncrypt</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li >
<a href="index.html">Home</a>
</li>
<li >
<a href="demo/index.html">Demo</a>
</li>
<li >
<a href="test/index.html">Test</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt/archive/master.zip" role="button">Download</a>
</li>
<li>
<a href="https://github.com/travist/jsencrypt" role="button">GitHub Project</a>
</li>
</ul>
</div>
</div>
</nav>

<div class="container">
<link href="test/mocha.css" rel="stylesheet" type="text/css">
---
title: Testing JSEncrypt
layout: default
---
<link href="test/mocha.css" rel="stylesheet" type="text/css">
<div id="mocha"></div>
<script type="text/javascript" src="test/expect.js"></script>
<script type="text/javascript" src="test/mocha.js"></script>
Expand All @@ -74,7 +13,3 @@
mocha.globals(['jQuery']);
mocha.run();
</script>

</div>
</body>
</html>

0 comments on commit ca57a58

Please sign in to comment.