Explorar o código

added daily - podcast demo

Harlan Iverson %!s(int64=6) %!d(string=hai) anos
pai
achega
57b4f8a645

BIN=BIN
app/resources/templates/img/2019-01-22-daily/cover.jpg


+ 16 - 0
app/resources/templates/md/posts/2019-01-22-daily.md

@@ -0,0 +1,16 @@
+{:title "iSpooge Daily - 2019-01-22 - Podcast"
+ :layout :podcast
+ :cover-src "/img/2019-01-22-daily/cover.jpg"
+ :audio-src "/media/Untitled%20-%201:22:19,%205.12%20PM.mp3"}
+ 
+
+Hey. First time doing a podcast with iSpooge Live.
+
+It's a middle ground between tweet storming and vlogging.
+
+It's about 5 minutes long, using my fancy mic.
+
+I got a DC car charger for the laptop, allowing me to finally work 
+in peace and quiet, relatively uninturrupted.
+
+Been feeling under the weather, resting up.

+ 49 - 0
app/resources/templates/themes/ispooge/html/podcast.html

@@ -0,0 +1,49 @@
+{% extends "/html/base.html" %}
+{%block subtitle %}: {{post.title}} on {{post.date|date:"MM.dd"}}{% endblock %}
+{% block content %}
+<div id="post">
+
+<img src="{{ post.cover-src}}" alt="cover image">
+<audio id="audioplayer" preload="auto" controls style="width:100%;" >
+    <source src="{{ post.audio-src }}" type="audio/mp3">
+        Your browser doesn't support the HTML audio tag. You can still download the show, though!
+</audio>
+    <p id="audioplayer_1"></p>
+<script type="text/javascript">
+    var audioTag = document.createElement('audio');
+    /* Do we not support MP3 audio? If not, dynamically made a Flash SWF player.  */
+    if (!(!!(audioTag.canPlayType) && ("no" != audioTag.canPlayType("audio/mpeg")) && ("" != audioTag.canPlayType("audio/mpeg")))) {
+        AudioPlayer.embed("audioplayer_1", {soundFile: "{{ post.audio-src }}", transparentpagebg: "yes"});
+        $( '#audioplayer').hide();
+    }
+    else /* Ok, we do support MP3 audio, style the audio tag into a touch-friendly player */
+    {
+        /* If we didn't do the "if mp3 supported" check above, this call would prompt Firefox install quicktime! */
+        $( '#audioplayer' ).audioPlayer(); 
+    }
+</script>
+
+    {% include "/html/post-content.html" %}
+
+
+
+    {% include "/html/partials/post-pagination.html" %}
+
+    {% if disqus-shortname %}
+    <div id="disqus_thread"></div>
+    <script type="text/javascript">
+        var disqus_config = function () {
+            this.page.url = "{{site-url}}{{uri}}";
+            this.page.identifier = "{{post.title}}";
+        };
+        (function() {
+            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+            dsq.src = '//{{disqus-shortname}}.disqus.com/embed.js';
+            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+        })();
+    </script>
+    {% endif %}
+
+
+</div>
+{% endblock %}

+ 1 - 1
scripts/env.sh

@@ -24,7 +24,7 @@ IMAGE_STATIC=docker-registry.local:5000/ispooge.com/ispooge-static:28
 IMAGE_STATIC_LOCAL=ispooge-static
 
 NAME_STREAMING=ispooge.com-streaming
-IMAGE_STREAMING=docker-registry.local:5000/ispooge.com/ispooge-streaming:4
+IMAGE_STREAMING=docker-registry.local:5000/ispooge.com/ispooge-streaming:5
 IMAGE_STREAMING_LOCAL=ispooge-streaming
 
 if [ -f scripts/env-local.sh ]; then