Verified Commit 5ff40089 authored by Aral Balkan's avatar Aral Balkan
Browse files

Make HTML layout consistent; improve narrower viewport typesetting

parent 16c5d354
......@@ -654,19 +654,30 @@ footer {
list-style-type: none;
}
ol li p, ol li aside {
ol li p {
margin-left: 1.5rem;
margin-right: 0.5rem;
}
aside {
padding-left: 0;
}
aside::before {
margin-left: 1.5rem;
}
aside pre {
padding-left: 0.5rem;
/* padding-left: 1rem; */
margin-left: 0;
padding-left: 1.5rem;
}
pre {
margin-left: -1rem;
margin-right: -1rem;
padding-left: 2rem;
padding-right: 2rem;
padding-left: 2.5rem;
padding-right: 2.5rem;
border-radius: 0;
}
......
......@@ -68,17 +68,23 @@
<li>
<h3>One person.</h3>
<img src='/images/illustrations/one-person.svg' alt=''>
<p>Develop and test on <strong>your own device</strong>.</p>
<p>
Develop and test on <strong>your own device</strong>.
</p>
</li>
<li>
<h3>One server.</h3>
<img src='/images/illustrations/one-server.svg' alt=''>
<p>Sync and deploy to <strong>your own VPS</strong>.</p>
<p>
Sync and deploy to <strong>your own VPS</strong>.
</p>
</li>
<li>
<h3>One site.</h3>
<img src='/images/illustrations/one-site.svg' alt=''>
<p>Host <strong>your own site</strong> at <strong>your own domain</strong>.</p>
<p>
Host <strong>your own site</strong> at <strong>your own domain</strong>.
</p>
</li>
</ul>
</section>
......@@ -95,26 +101,39 @@
<ul>
<li>
<h3>Just works.</h3>
<p>No configuration; <a href='#get-started'>get started in seconds</a> on <a href='https://source.small-tech.org/site.js/app#system-requirements'>Linux, macOS, and Windows</a>.</p>
<p>
No configuration; <a href='#get-started'>get started in seconds</a> on <a href='https://source.small-tech.org/site.js/app#system-requirements'>Linux, macOS, and Windows</a>.
</p>
</li>
<li>
<h3>Free as in freedom.</h3>
<p>And small as in <a href='https://small-tech.org/about/#small-technology'>small tech</a>.</p>
<p>
And small as in <a href='https://small-tech.org/about/#small-technology'>small tech</a>.
</p>
</li>
<li>
<h3>Secure by default.</h3>
<p>Automatic TLS everywhere with <a href='https://github.com/small-tech/auto-encrypt'>Let’s Encrypt</a> and <a href='https://github.com/small-tech/auto-encrypt-localhost'>mkcert</a>.</p>
<p>
Automatic TLS everywhere with <a href='https://github.com/small-tech/auto-encrypt'>Let’s Encrypt</a> and <a href='https://github.com/small-tech/auto-encrypt-localhost'>mkcert</a>.
</p>
</li>
<li>
<h3>For static sites.</h3>
<p>Write plain HTML, CSS, JS or use the bundled <a href='#static-sites'>Hugo static site generator</a>.</p></li>
<p>
Write plain HTML, CSS, JS or use the bundled <a href='#static-sites'>Hugo static site generator</a>.
</p>
</li>
<li>
<h3>For dynamic sites.</h3>
<p>Use simple <a href='#dynamic-sites'>DotJS</a> or <a href='https://github.com/small-tech/site.js#advanced-routing-routesjs-file'>the full power of Node.js and Express.js</a>.</p>
<p>
Use simple <a href='#dynamic-sites'>DotJS</a> or <a href='https://github.com/small-tech/site.js#advanced-routing-routesjs-file'>the full power of Node.js and Express.js</a>.
</p>
</li>
<li>
<h3>And more…</h3>
<p><a href='#websockets'>WebSockets</a>, live reload, sync, auto-updates, ephemeral statistics, etc.</p>
<p>
<a href='#websockets'>WebSockets</a>, live reload, sync, auto-updates, ephemeral statistics, etc.
</p>
</li>
</ul>
</section>
......@@ -138,14 +157,20 @@
<ol id='install'>
<li>
<h3>Install Site.js.</h3>
<p>Launch <span class='linux macos'>a terminal window</span> <span class='no-js'>(on Windows, </span><span class='windows'>a PowerShell session running under <a href='https://github.com/Microsoft/Terminal'>Windows Terminal</a></span><span class='no-js'>)</span> and follow along.</p>
<p>
Launch <span class='linux macos'>a terminal window</span> <span class='no-js'>(on Windows, </span><span class='windows'>a PowerShell session running under <a href='https://github.com/Microsoft/Terminal'>Windows Terminal</a></span><span class='no-js'>)</span> and follow along.
</p>
<aside>
<h3>Tip</h3>
<p>The following command pipes the installation script into your shell. <strong>Make sure you understand what any script does before piping it into your shell.</strong></p>
<p>This installation script downloads the correct Site.js binary for your platform and places it on your path. View the source of the <a class='linux macos' href='https://should-i-pipe.it/https://sitejs.org/install'>Linux and macOS</a><span class='no-js preserve-whitespace'> and </span><a class='windows' href='https://should-i-pipe.it/https://sitejs.org/install.txt'>Windows</a> script<span class='no-js'>s</span>.</p>
<p id='copy-tip' class='hidden'>You can <span class='just-click'>click</span><span class='click-and-tap'>/</span><span class='just-tap'>tap</span> the code samples to copy them to the clipboard.</p>
<p>
The following command pipes the installation script into your shell. <strong>Make sure you understand what any script does before piping it into your shell.</strong>
</p>
<p>
This installation script downloads the correct Site.js binary for your platform and places it on your path. View the source of the <a class='linux macos' href='https://should-i-pipe.it/https://sitejs.org/install'>Linux and macOS</a><span class='no-js preserve-whitespace'> and </span><a class='windows' href='https://should-i-pipe.it/https://sitejs.org/install.txt'>Windows</a> script<span class='no-js'>s</span>.
</p>
<p id='copy-tip' class='hidden'>
You can <span class='just-click'>click</span><span class='click-and-tap'>/</span><span class='just-tap'>tap</span> the code samples to copy them to the clipboard.
</p>
</aside>
<h4 class='no-js'>Linux</h4>
......@@ -161,15 +186,21 @@
<h3>Create a basic static web page.</h3>
<ol>
<li>
<p>Create a folder.</p>
<p>
Create a folder.
</p>
<pre><code class='language-bash'>mkdir hello-world</code></pre>
</li>
<li>
<p>Enter the folder.</p>
<p>
Enter the folder.
</p>
<pre><code class='language-bash'>cd hello-world</code></pre>
</li>
<li>
<p>Write the string <code>'Hello, world'</code> into a file called <em>index.html</em>, creating or overwriting it as necessary.</p>
<p>
Write the string <code>'Hello, world'</code> into a file called <em>index.html</em>, creating or overwriting it as necessary.
</p>
<pre><code class='language-bash'>echo 'Hello, world' > index.html</code></pre>
</li>
</ol>
......@@ -177,15 +208,20 @@
<li>
<h3>Start the server.</h3>
<pre><code class='language-bash'>site</code></pre>
<p>Site.js starts serving your hello-world site at <a href='https://localhost'>https://localhost</a>. Go there in your browser to see your “Hello, world!” message.</p>
<p><strong>Congratulations, you’re up and running with Site.js!</strong></p> </li>
<p>
Site.js starts serving your hello-world site at <a href='https://localhost'>https://localhost</a>. Go there in your browser to see your “Hello, world!” message.
</p>
<p>
<strong>Congratulations, you’re up and running with Site.js!</strong>
</p>
<aside>
<h3>Tip</h3>
<p>
<strong>Do the same thing on a VPS server</strong> and start the server using <code>site enable</code> and you’ll have a secure production web daemon that survives errors/reboots and auto-updates itself.
</p>
</aside>
</li>
</ol>
<aside>
<h3>Tip</h3>
<p><strong>Do the same thing on a VPS server</strong> and start the server using <code>site enable</code> and you’ll have a secure production web daemon that survives errors/reboots and auto-updates itself.</p>
</aside>
</section>
......@@ -199,11 +235,15 @@
<h2>Static sites with Hugo</h2>
<div class='introduction'>
<p>The type of site you just created is an old-school static site. You can create static sites with Site.js using plain old HTML, CSS, and JavaScript. Site.js will automatically serve any files it finds in the folder you start it on as static files.</p>
<p>For larger sites, hand-rolling your static site might become cumbersome. That’s why Site.js comes bundled with the <a href='https://gohugo.io'>Hugo static site generator</a>.</p>
<p>Let’s create a new Hugo site and start serving it.</p>
<p>
The type of site you just created is an old-school static site. You can create static sites with Site.js using plain old HTML, CSS, and JavaScript. Site.js will automatically serve any files it finds in the folder you start it on as static files.
</p>
<p>
For larger sites, hand-rolling your static site might become cumbersome. That’s why Site.js comes bundled with the <a href='https://gohugo.io'>Hugo static site generator</a>.
</p>
<p>
Let’s create a new Hugo site and start serving it.
</p>
</div>
<ol>
......@@ -211,11 +251,15 @@
<h3>Set up a new project.</h3>
<ol>
<li>
<p>Create a folder.</p>
<p>
Create a folder.
</p>
<pre><code class='language-bash'>mkdir my-hugo-site</code></pre>
</li>
<li>
<p>Enter the folder.</p>
<p>
Enter the folder.
</p>
<pre><code class='language-bash'>cd my-hugo-site</code></pre>
</li>
</ol>
......@@ -225,38 +269,38 @@
<pre><code class='language-bash'>site hugo new site .hugo</code></pre>
<aside>
<h3>Tip</h3>
<p>You can pass any command you would normally pass to Hugo using Site.js’s integrated Hugo instance: <code>site hugo &lt;any valid Hugo command&gt;</code>. So the above command is equivalent to running <code>hugo new site .hugo</code> if you have Hugo installed separately.)
<p>
You can pass any command you would normally pass to Hugo using Site.js’s integrated Hugo instance: <code>site hugo &lt;any valid Hugo command&gt;</code>. So the above command is equivalent to running <code>hugo new site .hugo</code> if you have Hugo installed separately.)
</p>
</aside>
</li>
<li>
<h3>Create a basic initial index page layout.</h3>
<h3>Create a basic page layout.</h3>
<pre><code class='language-bash'>echo '<body>&lt;h1&gt;Hello, world!&lt;h1&gt;&lt;body&gt;' &gt; .hugo/layouts/index.html</code></pre>
<aside>
<h3>Tip</h3>
<p>For Site.js’s live reload to work, your web page must contain at least a <code>&lt;body&gt;</code> tag.</p>
<p>
For Site.js’s live reload to work, your web page must contain at least a <code>&lt;body&gt;</code> tag.
</p>
</aside>
</li>
<li>
<h3>Start the server.</h3>
<pre><code class='language-bash'>site</code></pre>
<p>Site.js starts serving your Hugo site at https://localhost. Go there in your browser to see your “Hello, world!” message.</p>
<p>
Site.js starts serving your Hugo site at https://localhost. Go there in your browser to see your “Hello, world!” message.
</p>
<p>
<strong>Congratulations, you just created your first Hugo site with Site.js!</strong>
</p>
<aside>
<h3>Tip</h3>
<p>
If Site.js finds a folder called <em>.hugo</em> in your site’s root, it will build it using its integrated Hugo instance (you don’t need to install Hugo separately) and place the generated files into a folder called <em>.generated</em> in your site’s root. It will also automatically serve these files.
</p>
<p>
If you alter the file you created in this example, Site.js will automatically rebuild it using Hugo and your browser will reflect the changes immediately using live reload.
</p>
<p>
See the <a href='https://github.com/small-tech/site.js#static-site-generation'>Site.js Hugo documentation</a> and <a href='https://gohugo.io/documentation/'>the official Hugo documentation</a> for detailed information on how Hugo works and how it’s integrated into Site.js.
</p>
......@@ -276,11 +320,17 @@
<h2 id='dynamic'>Dynamic sites with DotJS</h2>
<div class='introduction'>
<p>Site.js does not limit you to creating and serving fully static sites. You can easily add dynamic functionality to your static sites or create fully dynamic sites.</p>
<p>
Site.js does not limit you to creating and serving fully static sites. You can easily add dynamic functionality to your static sites or create fully dynamic sites.
</p>
<p>The easiest way to get started with dynamic sites is to use DotJS. DotJS gives you PHP-like simplicity in JavaScript using simple <code>.js</code> files.</p>
<p>
The easiest way to get started with dynamic sites is to use DotJS. DotJS gives you PHP-like simplicity in JavaScript using simple <code>.js</code> files.
</p>
<p>Follow along to create a very basic dynamic site that updates a counter every time the home page is reloaded.</p>
<p>
Follow along to create a very basic dynamic site that updates a counter every time the home page is reloaded.
</p>
</div>
<ol>
......@@ -289,18 +339,26 @@
<ol>
<li>
<p>Create the folders.</p>
<p>Make a project folder called <em>count</em> and a special nested folder in that called <em>.dynamic</em>:</p>
<p>
Create the folders.
</p>
<p>
Make a project folder called <em>count</em> and a special nested folder in that called <em>.dynamic</em>:
</p>
<pre><code class='language-bash'>mkdir -p count/.dynamic</code></pre>
</li>
<li>
<p>Enter the dynamic routes folder.</p>
<p>
Enter the dynamic routes folder.
</p>
<pre><code class='language-bash'>cd count/.dynamic</code></pre>
</li>
</ol>
<aside>
<h3>Tip</h3>
<p><strong>.dynamic</strong> is a special folder in that Site.js knows to look for it in your project. If it finds it, it knows to run its contents as a dynamic route instead of serving it as static content.</p>
<p>
<strong>.dynamic</strong> is a special folder in that Site.js knows to look for it in your project. If it finds it, it knows to run its contents as a dynamic route instead of serving it as static content.
</p>
</aside>
</li>
<li>
......@@ -329,44 +387,38 @@
Hit <a href='https://localhost'>https://localhost</a> and refresh to see the counter update.
</p>
<p>
<strong>Congratulations, you just made your first fully-dynamic DotJS site!</strong>
<strong>Congratulations, you just made your first fully dynamic DotJS site!</strong>
</p>
</li>
</ol>
<aside id='dynamic-route-longer-example' class='tip'>
<h3>Tip</h3>
<p>
If you found the code in the dynamic route we created hard to read, you’re not alone. It was purposefully written to keep the example short enough to enter into terminal.
</p>
<p>
Here’s a slightly more verbose version of <code>index.js</code> that’s easier to understand that you might want to enter using your favourite code editor:
</p>
<pre><code class='language-js'>let counter = 0
<aside id='dynamic-route-longer-example' class='tip'>
<h3>Tip</h3>
<p>
If you found the code in the dynamic route we created hard to read, you’re not alone. It was purposefully written to keep the example short enough to enter into terminal.
</p>
<p>
Here’s a slightly more verbose version of <code>index.js</code> that’s easier to understand that you might want to enter using your favourite code editor:
</p>
<pre><code class='language-js'>let counter = 0
module.exports = (request, response) => {
response
.type('html')
.end(`&lt;h1&gt;Hit count: ${++counter}&lt;/h1&gt;`)
}</code></pre>
<p>
If this reminds you of a route in <a href='https://expressjs.com'>Express</a>, that’s because that’s exactly what it is.
</p>
<p>
The only difference is that you don’t have to write any other code or worry about anything else including installing Node.js, provisioning TLS certificates, ensuring your site automatically restarts on reboots, etc.
</p>
<p>
Site.js does not limit you to using DotJS. If you want to, you can use the full power of Express and Node.js with <a href='https://github.com/small-tech/site.js#advanced-routing-routesjs-file'>advanced routing</a>. And, since it is just Node.js under the hood, you can do anything you can with Node.js including <a href='https://github.com/small-tech/site.js#using-node-modules'>using node modules</a>, etc.
</p>
<p>
See the Site.js documentation for <a href='https://github.com/small-tech/site.js#dynamic-sites'>more information on building dynamic sites</a>.
</p>
</aside>
<p>
If this reminds you of a route in <a href='https://expressjs.com'>Express</a>, that’s because that’s exactly what it is.
</p>
<p>
The only difference is that you don’t have to write any other code or worry about anything else including installing Node.js, provisioning TLS certificates, ensuring your site automatically restarts on reboots, etc.
</p>
<p>
Site.js does not limit you to using DotJS. If you want to, you can use the full power of Express and Node.js with <a href='https://github.com/small-tech/site.js#advanced-routing-routesjs-file'>advanced routing</a>. And, since it is just Node.js under the hood, you can do anything you can with Node.js including <a href='https://github.com/small-tech/site.js#using-node-modules'>using node modules</a>, etc.
</p>
<p>
See the Site.js documentation for <a href='https://github.com/small-tech/site.js#dynamic-sites'>more information on building dynamic sites</a>.
</p>
</aside>
</li>
</ol>
</section>
......@@ -380,9 +432,12 @@ module.exports = (request, response) => {
<h2>WebSockets</h2>
<div class='introduction'>
<p>In addition to static routes and dynamic HTTPS routes, you can also specify secure WebSocket (WSS) routes in DotJS. And you can mix all three types of routes as you please.</p>
<p>To see WebSockets in action, let’s create a very basic chat.</p>
<p>
In addition to static routes and dynamic HTTPS routes, you can also specify secure WebSocket (WSS) routes in DotJS. And you can mix all three types of routes as you please.
</p>
<p>
To see WebSockets in action, let’s create a very basic chat.
</p>
</div>
<ol>
......@@ -390,18 +445,24 @@ module.exports = (request, response) => {
<h3>Create the project structure.</h3>
<ol>
<li>
<p>Create folders.</p>
<p>
Create folders.
</p>
<pre><code class='language-bash'>mkdir -p basic-chat/.dynamic/.wss</code></pre>
</li>
<li>
<p>Enter the web socket routes folder.</p>
<p>
Enter the web socket routes folder.
</p>
<pre><code class='language-bash'>cd basic-chat/.dynamic/.wss</code></pre>
</li>
</ol>
</li>
<li>
<h3>Create the chat websocket route.</h3>
<p>Use the <code class='language-bash'>cat</code> command in terminal to write everything until the <code class='language-bash'>EOF</code> marker to a file called <em>chat.js</em>. (If you’d rather, just create the file using your favourite editor instead.)</p>
<p>
Use the <code class='language-bash'>cat</code> command in terminal to write everything until the <code class='language-bash'>EOF</code> marker to a file called <em>chat.js</em>. (If you’d rather, just create the file using your favourite editor instead.)
</p>
<pre><code class='language-js'>cat &lt;&lt; EOF &gt; chat.js
module.exports = function (client, request) {
......@@ -427,16 +488,21 @@ EOF</code></pre>
<h3>Launch the server.</h3>
<ol>
<li>
<p>Return to the parent folder that contains the project folder.</p>
<p>
Return to the parent folder that contains the project folder.
</p>
<pre><code class='language-bash'>cd ../../..</code></pre>
</li>
<li>
<p>Start the server.</p>
<p>
Start the server.
</p>
<pre><code class='language-bash'>site basic-chat</code></pre>
</li>
</ol>
<p>To test your chat app, open up two web browser windows and enter the following into the web developer (JavaScript) console on both of them:</p>
<p>
To test your chat app, open up two web browser windows and enter the following into the web developer (JavaScript) console on both of them:
</p>
<pre><code class='language-js'>// Create the web socket connection.
socket = new WebSocket('wss://localhost/chat')
......@@ -445,27 +511,26 @@ socket.onmessage = message => console.log(message.data)
// Send a message to the chat room.
socket.send('hello')</code></pre>
</li>
</ol>
<aside>
<h3>Tip</h3>
<p>The broadcast method, by default, has rudimentary client filtering and only sends a message to clients other than the one that originally sent the message and only to clients connected to the same route (or “room”). For a fully-documented version of the above example, see <a href='https://github.com/small-tech/site.js/blob/master/examples/wss-basic-chat/.dynamic/.wss/chat.js'>the source code for the Basic Chat example.</a></p>
<aside>
<h3>Tip</h3>
<p>The broadcast method, by default, has rudimentary client filtering and only sends a message to clients other than the one that originally sent the message and only to clients connected to the same route (or “room”). For a fully-documented version of the above example, see <a href='https://github.com/small-tech/site.js/blob/master/examples/wss-basic-chat/.dynamic/.wss/chat.js'>the source code for the Basic Chat example.</a></p>
<p>To run that example with a basic web interface, first clone the Site.js source code repository:</p>
<p>To run that example with a basic web interface, first clone the Site.js source code repository:</p>
<pre><code class='language-bash'>git clone https://github.com/small-tech/site.js</code></pre>
<pre><code class='language-bash'>git clone https://github.com/small-tech/site.js</code></pre>
<p>Then run the basic chat example using Site.js:</p>
<p>Then run the basic chat example using Site.js:</p>
<pre><code class='language-bash'>site site.js/examples/wss-basic-chat</code></pre>
<pre><code class='language-bash'>site site.js/examples/wss-basic-chat</code></pre>
<p>Finally, open <a href='https://localhost'>https://localhost</a> in multiple browser windows and play with the chat interface.</p>
<p>Finally, open <a href='https://localhost'>https://localhost</a> in multiple browser windows and play with the chat interface.</p>
<p>The WebSocket functionality is from <a href='https://github.com/aral/express-ws'>our fork of express-ws</a> (which in turn uses <a href='https://github.com/websockets/ws'>ws</a>). Both of those links have more usage details.</p>
<p>The WebSocket functionality is from <a href='https://github.com/aral/express-ws'>our fork of express-ws</a> (which in turn uses <a href='https://github.com/websockets/ws'>ws</a>). Both of those links have more usage details.</p>
<p>For full details, see the <a href='https://github.com/small-tech/site.js/blob/master/README.md#dynamic-sites'>Dynamic Sites documentation</a> and view the <a href='https://github.com/small-tech/site.js/tree/master/examples'>examples</a>.</p>
</aside>
<p>For full details, see the <a href='https://github.com/small-tech/site.js/blob/master/README.md#dynamic-sites'>Dynamic Sites documentation</a> and view the <a href='https://github.com/small-tech/site.js/tree/master/examples'>examples</a>.</p>
</aside>
</li>
</ol>
</section>
......@@ -481,27 +546,39 @@ socket.send('hello')</code></pre>
<ul>
<li>
<h3><a href='https://github.com/small-tech/site.js#testing-servers-hostname'>Multi-device testing</a></h3>
<p>Start a server with <code>site @hostname</code> and use a service like ngrok to test on all your devices with live reload or to test your site with others over the Internet.</p>
<p>
Start a server with <code>site @hostname</code> and use a service like ngrok to test on all your devices with live reload or to test your site with others over the Internet.
</p>
</li>
<li>
<h3><a href='https://github.com/small-tech/site.js#deployment-live-and-one-time-sync'>Sync</a></h3>
<p>Deploy using <a href='https://github.com/small-tech/site.js#deployment-live-and-one-time-sync'>the built-in sync feature</a>. Live blog with continuous sync.</p>
<p>
Deploy using <a href='https://github.com/small-tech/site.js#deployment-live-and-one-time-sync'>the built-in sync feature</a>. Live blog with continuous sync.
</p>
</li>
<li>
<h3><a href='https://github.com/small-tech/site.js#native-support-for-an-evergreen-web'>Evergreen Web</a></h3>
<p>Migrate your existing sites without breaking links on the web with native support for <a href='https://github.com/small-tech/site.js#the-archival-cascade'>archival cascades</a> and <a href='https://github.com/small-tech/site.js#native-404--302-support'>native 404 → 302 support</a>.</p>
<p>
Migrate your existing sites without breaking links on the web with native support for <a href='https://github.com/small-tech/site.js#the-archival-cascade'>archival cascades</a> and <a href='https://github.com/small-tech/site.js#native-404--302-support'>native 404 → 302 support</a>.
</p>
</li>
<li>
<h3><a href='https://github.com/small-tech/site.js#custom-error-pages'>Custom error pages</a></h3>
<p>Easily create <a href='https://github.com/small-tech/site.js#custom-error-pages'>custom 404 and 500 error pages</a>.</p>
<p>
Easily create <a href='https://github.com/small-tech/site.js#custom-error-pages'>custom 404 and 500 error pages</a>.
</p>
</li>
<li>
<h3><a href='https://github.com/small-tech/site.js#ephemeral-statistics'>Ephemeral statistics</a></h3>
<p>See your most popular pages and discover broken links using privacy-respecting, <a href='https://github.com/small-tech/site.js#ephemeral-statistics'>ephemeral statistics</a> that are reset on every server start.</p>
<p>
See your most popular pages and discover broken links using privacy-respecting, <a href='https://github.com/small-tech/site.js#ephemeral-statistics'>ephemeral statistics</a> that are reset on every server start.
</p>
</li>
<li>
<h3><a href='https://github.com/small-tech/site.js#sitejs'>Documentation</a></h3>
<p>Learn more about building static and dynamic web sites and applications using Site.js in the <a href='https://github.com/small-tech/site.js#testing-servers-hostname'>Site.js documentation</a>.</p>
<p>
Learn more about building static and dynamic web sites and applications using Site.js in the <a href='https://github.com/small-tech/site.js#testing-servers-hostname'>Site.js documentation</a>.
</p>
</li>
</ul>
</section>
......@@ -516,13 +593,18 @@ socket.send('hello')</code></pre>
<section id='about'>
<h2>Like this? Fund us!</h2>
<p>Made with love by <a href='https://small-tech.org'>Small Technology Foundation</a>.</p>
<p>
Made with love by <a href='https://small-tech.org'>Small Technology Foundation</a>.
</p>
<p>We are a tiny not-for-profit based in Ireland that makes tools for people like you – not for startups, enterprises, or governments. And we’re also funded by people like you. <strong>If you like our work and want to help us continue to exist, please <a href='https://small-tech.org/fund-us/'>fund us</a>.</strong></p>
<p>
We are a tiny not-for-profit based in Ireland that makes tools for people like you – not for startups, enterprises, or governments. And we’re also funded by people like you. <strong>If you like our work and want to help us continue to exist, please <a href='https://small-tech.org/fund-us/'>fund us</a>.</strong>
</p>
<p>Site.js is <a href='https://small-tech.org/about#small-technology'>Small Technology</a>.</p>
<p>
Site.js is <a href='https://small-tech.org/about#small-technology'>Small Technology</a>.
</p>
</section>
</main>
......@@ -535,7 +617,11 @@ socket.send('hello')</code></pre>
<footer>
<img src='/images/illustrations/site.js-logo.svg' id='logo' alt='Site.js logo: a sprouting sapling with a short brown stem and two green leaves'>
<p id='copyright'><small>Copyright ⓒ 2019-2020, <a href='https://small-tech.org'>Small Technology Foundation</a>. All content on this site is released under <a href='https://creativecommons.org/licenses/by-sa/4.0/'>Creative Commons Attribution-ShareAlike</a>. Site.js is free software licensed under <a href='https://www.gnu.org/licenses/agpl-3.0.en.html'>AGPLv3 or later</a>. The illustration in the header is modified from the work of Katerina Limpitsouni on <a href='https://undraw.co/'>unDraw</a>. The Site.js sprout logo, Site.js, and Small Technology Foundation are trademarks of Small Technology Foundation.</small></p>
<p id='copyright'>
<small>
Copyright ⓒ 2019-2020, <a href='https://small-tech.org'>Small Technology Foundation</a>. All content on this site is released under <a href='https://creativecommons.org/licenses/by-sa/4.0/'>Creative Commons Attribution-ShareAlike</a>. Site.js is free software licensed under <a href='https://www.gnu.org/licenses/agpl-3.0.en.html'>AGPLv3 or later</a>. The illustration in the header is modified from the work of Katerina Limpitsouni on <a href='https://undraw.co/'>unDraw</a>. The Site.js sprout logo, Site.js, and Small Technology Foundation are trademarks of Small Technology Foundation.
</small>
</p>
</footer>
......@@ -546,7 +632,6 @@ socket.send('hello')</code></pre>
<!------------------------------------------------------------------------------------>
<!-- Start: scripts -->
<script src='js/highlight.pack.js'></script>
<script src='js/index.js'></script>
<!-- End: scripts -->
......
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