Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shailen-naidoo committed Jul 29, 2019
1 parent 84fa6bd commit 41e8955
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 33 deletions.
10 changes: 0 additions & 10 deletions docs/index.html

This file was deleted.

19 changes: 0 additions & 19 deletions docs/index.js

This file was deleted.

13 changes: 13 additions & 0 deletions docs/layouts/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,17 @@ module.exports = async ({ title, content, head }) => html`
margin-top: 20px;
}
img {
border-radius: 10px;
}
.code {
background-color: black;
color: #76FF03;
padding: 2px;
padding-left: 4px;
padding-right: 4px;
border-radius: 5px;
}
.badge {
Expand All @@ -148,6 +155,12 @@ module.exports = async ({ title, content, head }) => html`
margin-left: 10px;
border-radius: 5px;
}
.tip {
border-left: 3px solid white;
border-radius: 3px;
padding-left: 20px;
}
</style>
<hr style="margin-top: 40px;">
<footer>
Expand Down
5 changes: 3 additions & 2 deletions docs/pages/docs/advanced-setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const page = () => html`
A <code class="code">layout</code> is a template that contains our application shell which our <code class="code">page</code>
templates get injected into. Create a folder called "layouts", this is where our layouts will be stored.
</p>
<small class="code">layouts/default.js</small>
<small>layouts/default.js</small>
<pre>
<code class="lang-javascript">
module.exports = ({ title, content }) => &#96;
Expand All @@ -36,7 +36,7 @@ const page = () => html`
<p>
A <code class="code">page</code> is a template that contains your page content. All page templates are stored in the pages folder.
</p>
<small class="code">pages/index.js</small>
<small>pages/index.js</small>
<pre>
<code class="lang-javascript">
const page = ({ text }) => &#96;
Expand Down Expand Up @@ -73,6 +73,7 @@ const page = () => html`
Build time: 49.934ms
</code>
</pre>
<p class="tip">Use the <code class="code">--dev</code> to enable builds in development mode</p>
<h2 id="using-static-assets-like-css-and-js">Step 4: Using static assets like CSS and JS</h2>
<p>
If you have static assets like CSS, JS, Images and etc... You can create a folder called <code class="code">public</code> in the root of the project.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const html = require('html-template-tag');
const page = () => html`
<h1>🎈 Hydrogen</h1>
<p>A super lightweight static-site generator built with <span style="color: #007acc">TypeScript</span> 😻 Uses 🔥 <a style="color: #ff2f2f;" href="https://lit-html.polymer-project.org">lit-html</a> inspired templates for super performant template generation.</p>
<p style="border-left: 3px solid white; border-radius: 3px; padding-left: 20px;"><i>Compile a ton of templates in under ~150ms</i></p>
<p class="tip"><i>Compile a ton of templates in under ~150ms</i></p>
<center>
<img style="margin: 20px; border-radius: 10px;" src="https://qph.fs.quoracdn.net/main-qimg-706f37c5cbc54e415892478836e8acb5.webp">
</center>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hydrogen-cli",
"description": "Voted the world's lightest static-site generator built with TypeScript ❤ It uses 🔥 lit-html inspired templating for super duper performant template generation",
"version": "0.5.0",
"version": "0.5.1",
"author": "Shailen Naidoo",
"bin": {
"hydrogen": "./bin/run"
Expand Down

0 comments on commit 41e8955

Please sign in to comment.