Skip to content

Commit

Permalink
move site to 11ty
Browse files Browse the repository at this point in the history
  • Loading branch information
huahaiy committed Mar 18, 2020
1 parent 0fc0810 commit 3307a49
Show file tree
Hide file tree
Showing 141 changed files with 498 additions and 857 deletions.
10 changes: 10 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = function(eleventyConfig) {
eleventyConfig.setTemplateFormats([
"html",
]);

eleventyConfig.addPassthroughCopy("assets");
eleventyConfig.addPassthroughCopy("favicon.ico");


};
5 changes: 5 additions & 0 deletions .eleventyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github
_cache
netlify-email
functions
README.md
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.DS_Store
node_modules
*~
node_modules/
_site/
package-lock.json
node-supporters/
.env
27 changes: 7 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
# juji.io site

## local setup
## Local Setup

Install a html formatting tool
Install node.js

```
brew install tidy-html5
brew install node
```

Now you can run a html file through the tool to break up the lines, e.g.
## Running Server Locally

```
tidy -m index.html
npm install
npx @11ty/eleventy --serve
```

## workflow

1. Point browser to https://juji.io

2. On the page you want to change, say landing page, right click and select "View Page Source"

3. On the page of html code, select all, and copy.

4. Open your editor, e.g. `emacs index.html` and paste in the whole thing, save and exit.

5. Run command `tidy -m index.html`

6. Open your editor again to edit it. Your editor should have a command to indent the file correctly.


Browse to http://localhost:8080/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
63 changes: 63 additions & 0 deletions assets/js/autotrack.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/js/autotrack.js.map

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
133 changes: 75 additions & 58 deletions career.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script async src='/assets/js/autotrack.js'></script>
<script>window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-113933244-1', 'auto', {allowLinker: true});
ga('require', 'linkid');
ga('require', 'cleanUrlTracker');
ga('require', 'eventTracker');
ga('require', 'impressionTracker');
ga('require', 'maxScrollTracker');
ga('require', 'outboundFormTracker');
ga('require', 'outboundLinkTracker');
ga('require', 'pageVisibilityTracker');
ga('require', 'urlChangeTracker');
ga('require', 'linker');
ga('linker:autoLink', ['juji.ai', 'forum.juji.io', 'docs.juji.io', 'juji.io'],
false, false);
ga('send', 'pageview');
</script>
<meta name="generator" content=
"HTML Tidy for HTML5 for Apple macOS version 5.6.0">
<meta charset="utf-8">
<script async src=
"https://www.googletagmanager.com/gtag/js?id=UA-113933244-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-113933244-1');
</script>
<title>Juji</title>
<title>Juji Career</title>
<meta content=
"width=device-width, initial-scale=1, shrink-to-fit=no" name=
"viewport">
Expand All @@ -26,72 +37,77 @@
<link href=
"https://fonts.googleapis.com/css?family=Nunito:400,300,700" rel=
"stylesheet">
<link href="site/assets/css/bootstrap/bootstrap.min.css" rel=
<link href="/assets/css/bootstrap/bootstrap.min.css" rel=
"stylesheet">
<link href="site/assets/css/website.css" rel="stylesheet">
<script src="site/assets/js/modernizr.js"></script>
<link href="/assets/css/website.css" rel="stylesheet">
<script src="/assets/js/modernizr.js"></script>
</head>
<body>

<header>
<header>
<nav class=
"navbar navbar-expand-lg navbar-light bg-white fixed-top">
<div class="container">
<a class="navbar-brand" href="/">
<img alt="Juji Logo" class="logo"
src="site/assets/img/ui/ui--logo.png">
</a>
<a class="navbar-brand" href="/">
<img alt="Juji Logo" class="logo"
src="/assets/img/ui/ui--logo.png">
</a>

<a class="nav-link" href="/why-juji">
Why Juji
</a>

<a class="nav-link" href="/why">
Why Juji
</a>

<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<div class="dropdown"><a aria-expanded="false" aria-haspopup="true"
class="nav-link" data-toggle="dropdown" href="#" id=
"resourcesDropdown" role="button">Resources</a>
<ul aria-labelledby="resourcesDropdown" class="dropdown-menu" role=
"menu">
"menu">



<li><a href="https://docs.juji.io/why-ai-chatbots/" tabindex="-1"
target="_blank">Beginners' Guide to AI Chatbots</a></li>


<li>
<a href="https://docs.juji.io/why-ai-chatbots/"
tabindex="-1" target="_blank">
Beginners' Guide to AI Chatbots
</a>
</li>
<div class="dropdown-divider"></div>
<li><a href="https://docs.juji.io/tutorial/#" tabindex="-1" target=
"_blank">Video Tutorials</a></li>
<div class="dropdown-divider"></div>

<li><a href="https://docs.juji.io/" tabindex="-1" target=
"_blank">Documentation</a></li>
"_blank">Documentation</a></li>

<div class="dropdown-divider"></div>
<li>
<a href="https://medium.com/juji-stories-a-journey-of-creating-ai-chatbots" tabindex="-1"
target="_blank">Blogs</a>
</li>
<div class="dropdown-divider"></div>
<li>
<a href="/publications" tabindex="-1"
target="_blank">Publications & Talks</a>
</li>
<div class="dropdown-divider"></div>
<li>
<a href="https://medium.com/juji-stories-a-journey-of-creating-ai-chatbots" tabindex="-1"
target="_blank">Blogs</a>
</li>
<div class="dropdown-divider"></div>
<li>
<a href="/publications" tabindex="-1"
target="_blank">Publications & Talks</a>
</li>
</ul>
</div>
</li>
<li class="nav-item">
<a class={% if page.url == "/career/" %} "nav-link active-link" {% else %} "nav-link" {% endif %}
href="/career">Careers</a></li>
<li class="nav-item"><a class="nav-link" href=
"/careers">Careers</a></li>
<li class="nav-item"><a class="nav-link" href=
"/pricing">Pricing</a></li>
<li class="nav-item"><a class="nav-link" href="/login">Sign
<li class="nav-item"><a class="nav-link" href="https://juji.ai/login">Sign
On</a></li>
</ul>
</div>
</div>
</nav>
</header>

<section class="content-section main-section career-main">
<div class="container-fluid">
<div class=
Expand Down Expand Up @@ -127,7 +143,7 @@ <h3>Current Openings</h3>
<!--- - - - - - - - - - - -Agent Area- - - - - - - - - - - - - - - - - - - - - - - - -->
<div class="col-lg-6 demo-area" id="apply-by-chat">
<div class="iframe-container"><iframe frameborder="0" src=
"https://juji.io/pre-chat/hello-9c8c51a/11"></iframe></div>
"https://juji.ai/pre-chat/hello-9c8c51a/11"></iframe></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -348,29 +364,35 @@ <h3>How to Apply</h3>
veteran status.</p>
</div>
</section>


<footer>

<footer>
<div class="container">
<div class="row align-items-top justify-content-around">
<div class="col-md-6 col-lg-4">
<div>
<div class="subscribe-newsletter__heading">Stay Connected</div>
<div id="subscribe-newsletter-block">
<p>Get the latest news from Juji</p>
<input id="subscribe-newsletter__email" name="email" placeholder=
"Your e-mail" type="email"><button class=
"subscribe-newsletter__button" id="submit-btn" onclick=
"subscribeToNewsletter()">Submit</button>
<div id="subscribe-newsletter__msg"></div>
<form action="https://sendy.juji-inc.com/subscribe" method="POST" accept-charset="utf-8">
<div style="display:none;">
<label for="hp">HP</label><br/>
<input type="text" name="hp" id="hp"/>
</div>
<input id="subscribe-newsletter__email" name="email" placeholder=
"Your e-mail" type="email">
<input type="submit" class="subscribe-newsletter__button" id="submit-btn"/>
<input type="hidden" name="list" value="2GH6PnD3ltltrKvFNO7x0A"/>
<input type="hidden" name="subform" value="yes"/>
</form>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3">
<h3>Support</h3>
<p><a href="https://forum.juji.io" target="_blank">Juji
Forum</a></p>
<p><a href="https://docs.juji.io/faq/" target="_blank">Juji
<p><a href="https://docs.juji.io/faq/" target="_blank">Juji
FAQs</a></p>
<br>
<p>[email protected]</p>
Expand Down Expand Up @@ -400,16 +422,11 @@ <h3>Contact</h3>
</footer>



<input id="__anti-forgery-token" name="__anti-forgery-token" type=
"hidden" value=
"p8HRMQyuSS+25BEbcMKrHrtxvcOTG/2g1bK4UVyva/vX8pyHoRUvIf+oXlK/abXow1+azF8iQ3VP/rf9">
<script src="site/assets/js/jquery/jquery.min.js"></script>
<script src="site/assets/js/popper/popper.min.js"></script>
<script src="site/assets/js/bootstrap/bootstrap.min.js"></script>
<script src="site/assets/js/site.js"></script>
<script>

<script src="/assets/js/jquery/jquery.min.js"></script>
<script src="/assets/js/popper/popper.min.js"></script>
<script src="/assets/js/bootstrap/bootstrap.min.js"></script>
<script>
$(function() {
$('a[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
Expand Down
Loading

0 comments on commit 3307a49

Please sign in to comment.