Browse Source

content and template updates

Harlan Iverson 7 years ago
parent
commit
b1f9aed5ed

+ 1 - 0
tinydatacenter.com-v2/app/resources/templates/config.edn

@@ -1,4 +1,5 @@
 {:site-title           "Tiny DC"
+ :site-subtitle        "The tiny data center"
  :author               "Harlan Iverson"
  :description          "Tiny Data Center"
  :site-url             "https://tinydatacenter.com/"

+ 0 - 8
tinydatacenter.com-v2/app/resources/templates/md/pages/about.md

@@ -1,8 +0,0 @@
-{:title "About"
- :layout :page
- :navbar? true
- :page-index 99}
-
-## Write something about something
-
-wow wow wow

+ 10 - 0
tinydatacenter.com-v2/app/resources/templates/md/pages/desktop.md

@@ -0,0 +1,10 @@
+{:title "Desktop"
+ :layout :yt-episode
+ :yt-episode-video-id "crApIVQ5Wqk"
+ :page-index 50
+ :navbar? false}
+
+Needs
+
+* 1 raspi
+* Internet connection

+ 10 - 0
tinydatacenter.com-v2/app/resources/templates/md/pages/docker.md

@@ -0,0 +1,10 @@
+{:title "Docker"
+ :layout :yt-episode
+ :yt-episode-video-id "0S9rePglH2Y"
+ :page-index 40
+ :navbar? false}
+
+Needs
+
+* 1 raspi
+* Internet connection

+ 14 - 11
tinydatacenter.com-v2/app/resources/templates/md/pages/index.md

@@ -3,22 +3,27 @@
  :layout :page
  :page-index 0}
 
-Welcome to Tiny DataCenter. 2
+Welcome to Tiny DataCenter. Here you'll find a series of video and text guides that should help you integrate these wonderful devices into your daily computing tasks.
 
+You might get some new ideas. It's very easy to start a business in this new [economic landscape](https://www.youtube.com/watch?v=4ef-aF5TCGs&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=6).
 
-We use ARM processors and are unaffected by the Intel processor bugs!
+It is built from ARM based single board computers, or SBCs for short (scientifically tinius computerus aka tiny computers). They cost $50-100 USD for most uses, and can be reused by having several spare SD cards on hand (like old bootable floppy disks).
 
-    Don't forget to ask about our longest ruler on Amazon special :)
+Bonus: It uses ARM processors and are [unaffected](https://www.youtube.com/watch?v=YtvJ4k8tEBY&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=9) by the Intel branch prediction bugs!
+
+    Don't forget to ask about our shortest ruler on Amazon special :)
 
 Here are episodes:
 
-## Episodes
 
-1. [Setting up a new RasPi with a Hello World web site](https://www.youtube.com/watch?v=RPyHFrn37Qc&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=3)
-1. [Connecting to a netwwork and accessing the web site](https://www.youtube.com/watch?v=RPyHFrn37Qc&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=3)
-1. [Using Docker to keep the site running between reboots](https://www.youtube.com/watch?v=0S9rePglH2Y&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=5)
-1. [Adding a desktop environment](https://www.youtube.com/watch?v=crApIVQ5Wqk&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=8)
-1. Creating a maintainable site
+
+.
+
+1. [Setting up a new RasPi with a Hello World web site](webserver.html)
+1. [Connecting to a netwwork and accessing the web site](webserver-net.html)
+1. [Using Docker to keep the site running between reboots](docker.html)
+1. [Adding a desktop environment](desktop.html)
+1. Creating a maintainable site **coming soon!**
 1. A fancy way to collect feedback - API and storage
 1. Going live - configuring the home router
 1. Let there be scale - adding a CDN, talking about factors
@@ -27,8 +32,6 @@ Here are episodes:
 
 .
 
-* [Branch Prediction and ARM](https://www.youtube.com/watch?v=YtvJ4k8tEBY&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=9)
-* [Economics of web hosting](https://www.youtube.com/watch?v=4ef-aF5TCGs&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=6)
 * [Single Board Computer Spec Guide - Draft 1 (how to decide)](https://www.youtube.com/watch?v=VHDdbuUF2lo&list=PLD5lYPY-uZpoEVzJkgE2ejlSk9uG2TRlP&index=7)
 * Upgrading from RasPi 1 to RasPi 3
  

+ 2 - 2
tinydatacenter.com-v2/app/resources/templates/md/pages/livestream.md

@@ -1,6 +1,6 @@
 {:title "Live Streaming"
- :layout :page
- :page-index 10
+ :layout :episode
+ :page-index 90
  :navbar? false}
 
 ## Live streaming

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/pages/maintainable-website.md

@@ -1,6 +1,6 @@
 {:title "A maintainable website"
  :layout :episode
- :page-index 3
+ :page-index 50
  :video-url "https://ispooge.com/media/tinydc/tinydc-demo.mov"
  :navbar? false}
 

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/pages/principles.md

@@ -1,6 +1,6 @@
 {:title "Principles"
  :layout :page
- :page-index 20
+ :page-index 1000
  :navbar? true}
 
 * Run commands by hand, then save to text file, then automate... cost benefit

+ 2 - 1
tinydatacenter.com-v2/app/resources/templates/md/pages/webserver-net.md

@@ -1,5 +1,6 @@
 {:title "Networked Webserver"
- :layout :episode
+ :layout :yt-episode
+ :yt-episode-video-id "oe66fs_FqxA"
  :page-index 2
  :video-url "https://ispooge.com/media/tinydc/tinydc-demo.mov"
  :navbar? false}

+ 3 - 2
tinydatacenter.com-v2/app/resources/templates/md/pages/webserver.md

@@ -1,6 +1,7 @@
 {:title "Webserver"
- :layout :episode
- :page-index 1
+ :layout :yt-episode
+ :yt-episode-video-id "RPyHFrn37Qc"
+ :page-index 10
  :video-url "https://ispooge.com/media/tinydc/tinydc-demo.mov"
  :navbar? false}
 

+ 30 - 0
tinydatacenter.com-v2/app/resources/templates/themes/blue/html/yt-episode.html

@@ -0,0 +1,30 @@
+{% extends "/html/base.html" %}
+{%block subtitle %}: {{page.title}}{% endblock %}
+{% block content %}
+<div id="custom-page">
+    <div id="page-header">
+        <h2>EPISODE {{page.title}}</h2>
+    </div>
+
+     <div>
+       <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/{{page.yt-episode-video-id}}?rel=0" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
+     </div>
+
+    {% if page.toc %}{{page.toc|safe}}{% endif %}
+
+    {{page.content|safe}}
+
+
+    <div id="prev-next">
+        {% if page.prev %}
+        <a href="{{page.prev.uri}}">&laquo; {{page.prev.title}}</a>
+        {% endif %}
+        {% if all page.prev page.next %}
+        ||
+        {% endif %}
+        {% if page.next %}
+        <a href="{{page.next.uri}}">{{page.next.title}} &raquo;</a>
+        {% endif %}
+    </div>
+</div>
+{% endblock %}

+ 3 - 0
tinydatacenter.com-v2/scripts/fix-website.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+scripts/build-static.sh && (scripts/stop-static.sh ; scripts/start-static.sh)