Переглянути джерело

changed episodes from pages to posts. setups tags and rss.

Harlan Iverson 7 роки тому
батько
коміт
32b74fb4b9
24 змінених файлів з 97 додано та 68 видалено
  1. 2 2
      tinydatacenter.com-v2/app/resources/templates/config.edn
  2. 2 3
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-16-cryogen-gs-guide.md
  3. 1 1
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-16-links.md
  4. 1 1
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-17-daily.md
  5. 1 1
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-18-daily.md
  6. 1 1
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-19-daily.md
  7. 1 1
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-20-daily.md
  8. 1 1
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-21-daily.md
  9. 0 6
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-21-daily.md.save
  10. 0 6
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-22-daily.md
  11. 1 2
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-24-maintainable-website.md
  12. 2 3
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-24-operations-guide.md
  13. 1 2
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-24-webserver-online-and-global.md
  14. 1 0
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-30-livestream.md
  15. 1 2
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-desktop.md
  16. 1 2
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-docker.md
  17. 1 3
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-webserver-net.md
  18. 1 2
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-webserver.md
  19. 13 0
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-archival-project.md
  20. 11 0
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-dev-box.md
  21. 12 0
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-online-publication.md
  22. 12 0
      tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-token-auth.md
  23. 20 17
      tinydatacenter.com-v2/app/resources/templates/themes/blue/html/episode.html
  24. 10 12
      tinydatacenter.com-v2/app/resources/templates/themes/blue/html/yt-episode.html

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

@@ -16,8 +16,8 @@
  :author-root-uri      "about"
  :blog-prefix          ""
  :rss-name             "feed.xml"
- :rss-filters          ["cryogen"]
- :recent-posts         4
+ :rss-filters          ["video" "episode" "episode-wip" "daily-links" "guide" "guide-wip"]
+ :recent-posts         8
  :post-date-format     "yyyy-MM-dd"
  :archive-group-format "yyyy MMMM"
  :sass-src             []

+ 2 - 3
tinydatacenter.com-v2/app/resources/templates/md/pages/cryogen-gs-guide.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-16-cryogen-gs-guide.md

@@ -1,7 +1,6 @@
 {:title "Cryogen Guide"
- :layout :page
- :tags  ["cryogen"]
- :page-index 70}
+ :layout :post
+ :tags  ["guide"]}
 
 This intro only documents a subset of Cryogen's features. For additional documentation please see the [cryogen site](http://cryogenweb.org).
 

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-16-links.md

@@ -1,6 +1,6 @@
 {:title "Daily Links"
  :layout :post
- :tags  ["daily" "links"]
+ :tags  ["daily-links"]
  :toc false}
 
 

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-17-daily.md

@@ -1,6 +1,6 @@
 {:title "Daily Links"
  :layout :post
- :tags  ["daily" "links"]
+ :tags  ["daily-links"]
  :toc false}
 
 * [Rethinking Error Reporting on the FE](https://news.ycombinator.com/item?id=16170583) HN

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-18-daily.md

@@ -1,6 +1,6 @@
 {:title "Daily Links"
  :layout :post
- :tags  ["daily" "links"]
+ :tags  ["daily-links"]
  :toc false}
 
 * [There is a way to bypass CDN origin protection, most are vulnurable--with solution](https://news.ycombinator.com/item?id=16177651) HN

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-19-daily.md

@@ -1,6 +1,6 @@
 {:title "Daily Links"
  :layout :post
- :tags  ["daily" "links"]
+ :tags  ["daily-links"]
  :toc false}
 
 * [Bootrino.com: Netboot Run-From-RAM OS's on AWS, GCP, etc](https://news.ycombinator.com/item?id=16186756) HN

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-20-daily.md

@@ -1,6 +1,6 @@
 {:title "Daily Links"
  :layout :post
- :tags  ["daily" "links"]
+ :tags  ["daily-links"]
  :toc false}
 
 * [How do I exclude a URL from CF cache?](https://support.cloudflare.com/hc/en-us/articles/200172316-How-do-I-exclude-a-specific-URL-from-CloudFlare-s-caching-) Browsing

+ 1 - 1
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-21-daily.md

@@ -1,6 +1,6 @@
 {:title "Daily Links"
  :layout :post
- :tags  ["daily" "links"]
+ :tags  ["daily-links"]
  :toc false}
 
 * [Block chain from a dist computing perspective](https://news.ycombinator.com/item?id=16191506) HN

+ 0 - 6
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-21-daily.md.save

@@ -1,6 +0,0 @@
-{:title "Daily Links"
- :layout :post
- :tags  ["daily" "links"]
- :toc false}
-
-* []()

+ 0 - 6
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-22-daily.md

@@ -1,6 +0,0 @@
-{:title "Daily Links"
- :layout :post
- :tags  ["daily" "links"]
- :toc false}
-
-* []()

+ 1 - 2
tinydatacenter.com-v2/app/resources/templates/md/pages/maintainable-website.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-24-maintainable-website.md

@@ -1,8 +1,7 @@
 {:title "Maintainable website"
  :layout :episode
- :page-index 50
  :video-url "https://ispooge.com/media/tinydc/tinydc-demo.mov"
- :navbar? false}
+ :tags ["episode" "episode-wip" "video"]}
 
 ## Maintanable website
 

+ 2 - 3
tinydatacenter.com-v2/app/resources/templates/md/pages/guide-operations.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-24-operations-guide.md

@@ -1,7 +1,6 @@
 {:title "Reliable Operations Guide"
- :layout :page
- :tags ["ops" "guide"]
- :page-index 1100}
+ :layout :post
+ :tags ["guide-wip"]}
 
 ### 0. Approacch
 

+ 1 - 2
tinydatacenter.com-v2/app/resources/templates/md/pages/webserver-online-and-global.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-24-webserver-online-and-global.md

@@ -2,8 +2,7 @@
  :layout :yt-episode
 ; :yt-episode-video-id "QDBcQdnM1h0"
  :yt-episode-video-id "NoBO1ghOpsc"
- :page-index 60
- :navbar? false}
+ :tags ["video" "episode-wip"]}
 
 ## Global Scale Webserver
 

+ 1 - 0
tinydatacenter.com-v2/app/resources/templates/md/pages/livestream.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-01-30-livestream.md

@@ -1,5 +1,6 @@
 {:title "Live Streaming"
  :layout :episode
+ :tags ["episode" "episode-wip" "video"]
  :video-url "/media/tinydc/livestream/out.m38u"
  :page-index 90
  :navbar? false}

+ 1 - 2
tinydatacenter.com-v2/app/resources/templates/md/pages/desktop.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-desktop.md

@@ -1,8 +1,7 @@
 {:title "Desktop"
  :layout :yt-episode
  :yt-episode-video-id "crApIVQ5Wqk"
- :page-index 50
- :navbar? false}
+ :tags ["episode" "episode-wip" "video"]}
 
 
 Installing a desktop is a side route and not required for any kind of services, but it's comfortable for people to be able to use a mouse and have a familiar graphical interface to use. It's similar to Mac and Windows, but something different called Linux that is created as free software similar to the methodology used to create this set of tutorials.

+ 1 - 2
tinydatacenter.com-v2/app/resources/templates/md/pages/docker.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-docker.md

@@ -2,8 +2,7 @@
  :layout :episode
  :video-url "/media/tinydc/docker/out.m3u8"
  :yt-episode-video-id "0S9rePglH2Y"
- :page-index 40
- :navbar? false}
+ :tags ["episode" "episode-wip" "video"]}
 
 
 Docker is a tool that lets people create software packages that can be run on any system that supports Docker and the same processor architecture.

+ 1 - 3
tinydatacenter.com-v2/app/resources/templates/md/pages/webserver-net.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-webserver-net.md

@@ -1,9 +1,7 @@
 {:title "Networked Webserver"
  :layout :yt-episode
  :yt-episode-video-id "oe66fs_FqxA"
- :page-index 20
- :video-url "https://ispooge.com/media/tinydc/tinydc-demo.mov"
- :navbar? false}
+ :tags ["episode" "episode-wip" "video"]}
 
 ### Needs
 

+ 1 - 2
tinydatacenter.com-v2/app/resources/templates/md/pages/webserver.md → tinydatacenter.com-v2/app/resources/templates/md/posts/2018-02-04-webserver.md

@@ -2,8 +2,7 @@
  :layout :episode
  :video-url "/media/tinydc/webserver/out.m3u8"
  :yt-episode-video-id "RPyHFrn37Qc"
- :page-index 10
- :navbar? false}
+ :tags ["episode" "episode-wip" "video"]}
 
 
 

+ 13 - 0
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-archival-project.md

@@ -0,0 +1,13 @@
+{:title "Archival Project"
+ :layout :yt-episode
+ :video-url "/media/tinydc/docker/out.m3u8"
+ :yt-episode-video-id "0S9rePglH2Y"
+ :tags ["episode-wip" "video"]
+ }
+
+Creates a fair use copy of online resources, such as your own YouTube playlists and videos.
+
+Archived material is bundled into a maximally available static distribution format. At its most
+general and simple, one large incrementally built docker image can be created and distributed to
+a CDN.
+

+ 11 - 0
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-dev-box.md

@@ -0,0 +1,11 @@
+{:title "Dev Box (Development Machine)"
+ :layout :yt-episode
+ :tags ["episode-wip" "video"]
+ :video-url "/media/tinydc/docker/out.m3u8"
+ :yt-episode-video-id "0S9rePglH2Y"}
+
+
+Use box as a development machine. Local with an X session, remote via SSH. Token auth useful. Networked storage useful.
+
+Dev pipeline with Docker repo. How that fits in with POSSE.
+

+ 12 - 0
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-online-publication.md

@@ -0,0 +1,12 @@
+{:title "Online Publication (Blog/Vodcast, RSS)"
+ :layout :episode
+ :video-url "/media/tinydc/docker/out.m3u8"
+ :yt-episode-video-id "0S9rePglH2Y"
+ :tags ["episode-wip" "video"]}
+
+Similar to archive, but available to public. Focus on RSS and CDN.
+
+RSS is simple with Cryogen via Tags. Can create a variety of channels, offering selection of readers.
+
+Embed iframe. Sign content, or auth via YubiKey.
+

+ 12 - 0
tinydatacenter.com-v2/app/resources/templates/md/posts/2018-03-06-token-auth.md

@@ -0,0 +1,12 @@
+{:title "Token Auth"
+ :layout :episode
+ :video-url "/media/tinydc/docker/out.m3u8"
+ :yt-episode-video-id "0S9rePglH2Y"
+ :tags ["episode-wip" "video"]}
+
+Similar to archive, but available to public. Focus on RSS and CDN.
+
+RSS is simple with Cryogen via Tags. Can create a variety of channels, offering selection of readers.
+
+Embed iframe. Sign content, or auth via YubiKey.
+

+ 20 - 17
tinydatacenter.com-v2/app/resources/templates/themes/blue/html/episode.html

@@ -1,43 +1,46 @@
 {% extends "/html/base.html" %}
-{%block subtitle %}: {{page.title}}{% endblock %}
+{%block subtitle %}: {{post.title}}{% endblock %}
 {% block content %}
-<div id="custom-page">
+
+<script src="/assets/videojs/video.js"></script>
+<script src="/assets/videojs/videojs-contrib-hls.js"></script>
+
+<div id="post">
+  
+
     <div id="page-header">
-        <h2>EPISODE {{page.title}}</h2>
+        <h2>EPISODE {{post.title}}</h2>
     </div>
 
-<p>Sample of a segmented video file. 2sec max segment. Need to confirm keyframe alignment. ~450KB, should cache OK.</p>
-
 <link rel="stylesheet" href="/assets/videojs/video-js.css">
 
 <video id=example-video width=640 height=360 class="video-js vjs-default-skin" data-setup='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
   <source
-     src="{{page.video-url}}"
+     src="{{post.video-url}}"
      type="application/x-mpegURL">
 
 
 </video>
-<script src="/assets/videojs/video.js"></script>
-<script src="/assets/videojs/videojs-contrib-hls.js"></script>
+
 <script>
 var player = videojs('example-video');
 player.play();
 </script>
 
 
-    {% if page.toc %}{{page.toc|safe}}{% endif %}
-    {{page.content|safe}}
 
+    
+   {% include "/html/post-content.html" %}
+   
+   
     <div id="prev-next">
-        {% if page.prev %}
-        <a href="{{page.prev.uri}}">&laquo; {{page.prev.title}}</a>
+        {% if post.prev %}
+        <a href="{{post.prev.uri}}">&laquo; {{post.prev.title}}</a>
         {% endif %}
-        {% if all page.prev page.next %}
-        ||
-        {% endif %}
-        {% if page.next %}
-        <a href="{{page.next.uri}}">{{page.next.title}} &raquo;</a>
+        {% if post.next %}
+        <a class="right" href="{{post.next.uri}}">{{post.next.title}} &raquo;</a>
         {% endif %}
     </div>
+
 </div>
 {% endblock %}

+ 10 - 12
tinydatacenter.com-v2/app/resources/templates/themes/blue/html/yt-episode.html

@@ -1,29 +1,27 @@
 {% extends "/html/base.html" %}
-{%block subtitle %}: {{page.title}}{% endblock %}
+{%block subtitle %}: {{post.title}}{% endblock %}
 {% block content %}
 <div id="custom-page">
     <div id="page-header">
-        <h2>EPISODE {{page.title}}</h2>
+        <h2>EPISODE {{post.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}}
 
 
+    
+   {% include "/html/post-content.html" %}
+   
+   
     <div id="prev-next">
-        {% if page.prev %}
-        <a href="{{page.prev.uri}}">&laquo; {{page.prev.title}}</a>
-        {% endif %}
-        {% if all page.prev page.next %}
-        ||
+        {% if post.prev %}
+        <a href="{{post.prev.uri}}">&laquo; {{post.prev.title}}</a>
         {% endif %}
-        {% if page.next %}
-        <a href="{{page.next.uri}}">{{page.next.title}} &raquo;</a>
+        {% if post.next %}
+        <a class="right" href="{{post.next.uri}}">{{post.next.title}} &raquo;</a>
         {% endif %}
     </div>
 </div>