jekyll-theme-mdui 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/_includes/analytics.html +8 -10
- data/_includes/disqus.html +10 -2
- data/_includes/footer.html +21 -21
- data/_includes/head.html +2 -4
- data/_includes/test.html +190 -0
- data/_layouts/category.html +11 -11
- data/_layouts/default.html +2 -1
- data/_layouts/editor.html +0 -2
- data/_layouts/post.html +0 -2
- data/assets/css/main.css +3 -0
- data/assets/css/pickerdata.css +3 -0
- data/assets/js/chips.js +2 -327
- data/assets/js/pickerdata.js +9 -2558
- data/assets/js/toc.min.js +0 -14
- metadata +3 -5
- data/search.json +0 -10
- data/sw.js +0 -48
- data/tags.json +0 -23
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: d5ff9ef48b4d7914f64a7a87b44f22d75d3377c7
         | 
| 4 | 
            +
              data.tar.gz: 1bfd37ed1fc410624abfa8c0039436973589e9b2
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9067cb300f9158e5059f492fed975e7ed01ca3c67c062bf2e77e0711315f915d83f492201ab32d7c5d51d2fb54192f33f70f7349db01a7935bf22254e86b43ff
         | 
| 7 | 
            +
              data.tar.gz: 7145e673899389caf5e47fe36a42378993767717f8d1384c03e40fb3f574f5136e006a1889f6c54bc2f6df3b10b57ede451ace48ff5a9fab5e3297fe7238a3be
         | 
    
        data/README.md
    CHANGED
    
    | @@ -200,14 +200,15 @@ Add the following format to your posts: | |
| 200 200 |  | 
| 201 201 | 
             
            If you use the first method to install, you need to download the following files to your jekyll website root directory Or create a new file,And replace it with your own information:
         | 
| 202 202 |  | 
| 203 | 
            -
            *  | 
| 203 | 
            +
            * mainifest.json
         | 
| 204 204 | 
             
            * sw.js
         | 
| 205 205 | 
             
            * search.json
         | 
| 206 | 
            -
            *  | 
| 207 | 
            -
            * mainifest.json
         | 
| 206 | 
            +
            * tags.json
         | 
| 208 207 | 
             
            * _data/friends.yml
         | 
| 209 208 | 
             
            * _data/menus.yml
         | 
| 210 209 | 
             
            * _data/sns.yml
         | 
| 210 | 
            +
            * assets/images/touch/*
         | 
| 211 | 
            +
            * pages/*
         | 
| 211 212 |  | 
| 212 213 | 
             
            How to use? See Usage.
         | 
| 213 214 | 
             
            ## Contributing
         | 
    
        data/_includes/analytics.html
    CHANGED
    
    | @@ -1,10 +1,8 @@ | |
| 1 | 
            -
             | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 9 | 
            -
                  </script>
         | 
| 10 | 
            -
                {% endif %}
         | 
| 1 | 
            +
            <script type="text/javascript">
         | 
| 2 | 
            +
              (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
         | 
| 3 | 
            +
              (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
         | 
| 4 | 
            +
              m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
         | 
| 5 | 
            +
              })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
         | 
| 6 | 
            +
              ga('create', '{{ site.google_analytics }}', 'auto');
         | 
| 7 | 
            +
              ga('send', 'pageview');
         | 
| 8 | 
            +
            </script>
         | 
    
        data/_includes/disqus.html
    CHANGED
    
    | @@ -1,3 +1,11 @@ | |
| 1 | 
            +
            {% if site.disqus_shortname != "" %}
         | 
| 1 2 | 
             
            <div class="mdui-divider"></div>
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            < | 
| 3 | 
            +
                {% if site.disqus_proxy == false %}
         | 
| 4 | 
            +
                <button id="load-disqus" class="mdui-btn mdui-btn-block mdui-center" onclick="disqus.load();" data="{{ site.disqus_shortname }}">阅读评论 「请确保 Disqus 可以正常加载」</button>
         | 
| 5 | 
            +
                {% endif %}
         | 
| 6 | 
            +
            {% if site.disqus_proxy %}
         | 
| 7 | 
            +
            <div class="mdui-divider"></div>
         | 
| 8 | 
            +
            <div id="disqusreadonly" style="padding-top: 16px;">
         | 
| 9 | 
            +
            </div>
         | 
| 10 | 
            +
            {% endif %}
         | 
| 11 | 
            +
            {% endif %}
         | 
    
        data/_includes/footer.html
    CHANGED
    
    | @@ -1,28 +1,28 @@ | |
| 1 1 | 
             
            <footer class="mdui-m-t-5">
         | 
| 2 | 
            -
            <div class="mdui-card">
         | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 10 | 
            -
             | 
| 11 | 
            -
             | 
| 2 | 
            +
                <div class="mdui-card">
         | 
| 3 | 
            +
                    <div class="mdui-card-content mdui-shadow-0 mdui-p-a-5">
         | 
| 4 | 
            +
                        <div class="mdui-container">
         | 
| 5 | 
            +
                            <div class="mdui-row-sm-3">
         | 
| 6 | 
            +
                                <div class="mdui-col">
         | 
| 7 | 
            +
                                    <div class="mdui-row">
         | 
| 8 | 
            +
                                        {% for sns in site.data.sns %}
         | 
| 9 | 
            +
                                        {% if sns.url != null %}
         | 
| 10 | 
            +
                                        <div class="mdui-col-xs-4 mdui-col-sm-3 mdui-col-md-2 ">
         | 
| 11 | 
            +
                                            <a href="{{sns.url}}"><div class="mdui-center k-footer-icon k-{{ sns.name }}"></div></a>
         | 
| 12 | 
            +
                                        </div>
         | 
| 13 | 
            +
                                        {% endif %}
         | 
| 14 | 
            +
                                        {% endfor %}
         | 
| 15 | 
            +
                                    </div>
         | 
| 16 | 
            +
                                </div>
         | 
| 17 | 
            +
                                <div class="mdui-col mdui-text-center" style="line-height:48px">
         | 
| 18 | 
            +
                                    Copyright ©<script>var fd=new Date;document.write(" "+fd.getFullYear()+" ")</script> {{site.title}}
         | 
| 19 | 
            +
                                </div>
         | 
| 20 | 
            +
                                <div class="mdui-col mdui-text-center mdui-typo">
         | 
| 21 | 
            +
                                    <div>Powered by <a href="https://jekyllrb.com">Jekyll</a></div>
         | 
| 22 | 
            +
                                    <div>Theme <a href="https://github.com/KeJunMao/jekyll-theme-mdui">jekyll-theme-mdui</a></div>
         | 
| 12 23 | 
             
                                </div>
         | 
| 13 | 
            -
                            {% endif %}
         | 
| 14 | 
            -
                            {% endfor %}
         | 
| 15 24 | 
             
                            </div>
         | 
| 16 25 | 
             
                        </div>
         | 
| 17 | 
            -
                        <div class="mdui-col mdui-text-center" style="line-height:48px">
         | 
| 18 | 
            -
                          Copyright ©<script>var fd=new Date;document.write(" "+fd.getFullYear()+" ")</script> {{site.title}}
         | 
| 19 | 
            -
                        </div>
         | 
| 20 | 
            -
                        <div class="mdui-col mdui-text-center mdui-typo">
         | 
| 21 | 
            -
                            <div>Powered by <a href="https://jekyllrb.com">Jekyll</a></div>
         | 
| 22 | 
            -
                            <div>Theme <a href="https://github.com/KeJunMao/jekyll-theme-mdui">jekyll-theme-mdui</a></div>
         | 
| 23 | 
            -
                        </div>
         | 
| 24 | 
            -
                    </div>
         | 
| 25 26 | 
             
                    </div>
         | 
| 26 27 | 
             
                </div>
         | 
| 27 | 
            -
            </div>
         | 
| 28 28 | 
             
            </footer>
         | 
    
        data/_includes/head.html
    CHANGED
    
    | @@ -26,9 +26,7 @@ | |
| 26 26 | 
             
                <noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css"></noscript>
         | 
| 27 27 | 
             
                {% endif %}
         | 
| 28 28 | 
             
                <script> 
         | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
            -
            		/*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */
         | 
| 32 | 
            -
            		!function(a){if(a.loadCSS){var b=loadCSS.relpreload={};if(b.support=function(){try{return a.document.createElement("link").relList.supports("preload")}catch(b){return!1}},b.poly=function(){for(var b=a.document.getElementsByTagName("link"),c=0;c<b.length;c++){var d=b[c];"preload"===d.rel&&"style"===d.getAttribute("as")&&(a.loadCSS(d.href,d,d.getAttribute("media")),d.rel=null)}},!b.support()){b.poly();var c=a.setInterval(b.poly,300);a.addEventListener&&a.addEventListener("load",function(){b.poly(),a.clearInterval(c)}),a.attachEvent&&a.attachEvent("onload",function(){a.clearInterval(c)})}}}(this);
         | 
| 29 | 
            +
            		  !function(a){"use strict";var b=function(b,c,d){function e(a){return h.body?a():void setTimeout(function(){e(a)})}function f(){i.addEventListener&&i.removeEventListener("load",f),i.media=d||"all"}var g,h=a.document,i=h.createElement("link");if(c)g=c;else{var j=(h.body||h.getElementsByTagName("head")[0]).childNodes;g=j[j.length-1]}var k=h.styleSheets;i.rel="stylesheet",i.href=b,i.media="only x",e(function(){g.parentNode.insertBefore(i,c?g:g.nextSibling)});var l=function(a){for(var b=i.href,c=k.length;c--;)if(k[c].href===b)return a();setTimeout(function(){l(a)})};return i.addEventListener&&i.addEventListener("load",f),i.onloadcssdefined=l,l(f),i};"undefined"!=typeof exports?exports.loadCSS=b:a.loadCSS=b}("undefined"!=typeof global?global:this);
         | 
| 30 | 
            +
            		  !function(a){if(a.loadCSS){var b=loadCSS.relpreload={};if(b.support=function(){try{return a.document.createElement("link").relList.supports("preload")}catch(b){return!1}},b.poly=function(){for(var b=a.document.getElementsByTagName("link"),c=0;c<b.length;c++){var d=b[c];"preload"===d.rel&&"style"===d.getAttribute("as")&&(a.loadCSS(d.href,d,d.getAttribute("media")),d.rel=null)}},!b.support()){b.poly();var c=a.setInterval(b.poly,300);a.addEventListener&&a.addEventListener("load",function(){b.poly(),a.clearInterval(c)}),a.attachEvent&&a.attachEvent("onload",function(){a.clearInterval(c)})}}}(this);
         | 
| 33 31 | 
             
                </script>
         | 
| 34 32 | 
             
            </head>
         | 
    
        data/_includes/test.html
    ADDED
    
    | @@ -0,0 +1,190 @@ | |
| 1 | 
            +
            {% if disqus_shortname != "" %} {% if page.layout == 'post' %}
         | 
| 2 | 
            +
            <script>
         | 
| 3 | 
            +
                function proxyMode(disqus_proxy_url, disqus_shortname, disqus_identifier, disqus_api_key) {
         | 
| 4 | 
            +
                    $.ajax({
         | 
| 5 | 
            +
                        url: disqus_proxy_url + "/api/3.0/threads/list.json",
         | 
| 6 | 
            +
                        type: 'get',
         | 
| 7 | 
            +
                        dataType: 'json',
         | 
| 8 | 
            +
                        data: {
         | 
| 9 | 
            +
                            api_key: disqus_api_key,
         | 
| 10 | 
            +
                            forum: disqus_shortname,
         | 
| 11 | 
            +
                            thread: 'ident:' + disqus_identifier
         | 
| 12 | 
            +
                        },
         | 
| 13 | 
            +
                        success: function (data) {
         | 
| 14 | 
            +
                            for (x in data.response) {
         | 
| 15 | 
            +
                                if (data.response[x].link.indexOf(disqus_identifier) > 1) {
         | 
| 16 | 
            +
                                    var postid = data.response[x].id;
         | 
| 17 | 
            +
                                    $.ajax({
         | 
| 18 | 
            +
                                        url: disqus_proxy_url + "/api/3.0/posts/list.json",
         | 
| 19 | 
            +
                                        type: 'get',
         | 
| 20 | 
            +
                                        dataType: 'json',
         | 
| 21 | 
            +
                                        data: {
         | 
| 22 | 
            +
                                            api_key: disqus_api_key,
         | 
| 23 | 
            +
                                            forum: disqus_shortname,
         | 
| 24 | 
            +
                                            thread: postid
         | 
| 25 | 
            +
                                        },
         | 
| 26 | 
            +
                                        success: function (data) {
         | 
| 27 | 
            +
                                            function getcontent(data) {
         | 
| 28 | 
            +
                                                console.log(data);
         | 
| 29 | 
            +
                                                var el = '<div class="mdui-card mdui-shadow-5">';
         | 
| 30 | 
            +
                                                el += '<div class="mdui-card-header">';
         | 
| 31 | 
            +
                                                el += '<img class="mdui-card-header-avatar" src="' + data.author.avatar.cache + '"/>';
         | 
| 32 | 
            +
                                                el += '<div class="mdui-card-header-title">' + data.author.name + '</div>';
         | 
| 33 | 
            +
                                                el += '<div class="mdui-card-header-subtitle">' + data.author.about + '</div>';
         | 
| 34 | 
            +
                                                el += '</div><div id="disqus' + data.id + '" class="mdui-card-content">';
         | 
| 35 | 
            +
                                                if (data.media.length > 0) {
         | 
| 36 | 
            +
                                                    for (y in data.media) {
         | 
| 37 | 
            +
                                                        data.message += '<a href="' + data.media[y].location + '" target="_blank" ><img class="mdui-img-fluid" src="' + data.media[y].location + '" /></a>'
         | 
| 38 | 
            +
                                                    }
         | 
| 39 | 
            +
                                                }
         | 
| 40 | 
            +
                                                el += data.message;
         | 
| 41 | 
            +
                                                el +=  '<div class="mdui-card-actions"><button class="mdui-btn mdui-ripple k-reply mdui-float-right">回复</button></div>';
         | 
| 42 | 
            +
                                                el += '<div class="input mdui-m-b-2 mdui-hidden">';
         | 
| 43 | 
            +
                                                el += '<div class="mdui-textfield"><textarea class="mdui-textfield-input" placeholder="Description"></textarea></div>';
         | 
| 44 | 
            +
                                                el += '<div class="mdui-row-sm-3">';
         | 
| 45 | 
            +
                                                el += '<div class="mdui-col"><div class="mdui-textfield"><input class="mdui-textfield-input" type="text" name="name" placeholder="Name"/></div></div>';
         | 
| 46 | 
            +
                                                el += '<div class="mdui-col"><div class="mdui-textfield"><input class="mdui-textfield-input" type="text" name="email" placeholder="Email"/></div></div>';
         | 
| 47 | 
            +
                                                el += '<div class="mdui-col"><div class="mdui-textfield"><input class="mdui-textfield-input" type="text" name="website" placeholder="Website"/></div></div>';
         | 
| 48 | 
            +
                                                if (data.parent===null){
         | 
| 49 | 
            +
                                                    el += '<button thread="'+data.thread+'" class="mdui-btn k-send mdui-btn-block mdui-ripple">发送</button>';
         | 
| 50 | 
            +
                                                }else{
         | 
| 51 | 
            +
                                                    el += '<button thread="'+data.thread+'" parent="'+data.parent+'" class="k-send mdui-btn mdui-btn-block mdui-ripple">发送</button>';
         | 
| 52 | 
            +
                                                }
         | 
| 53 | 
            +
                                                el += '</div></div></div></div>';
         | 
| 54 | 
            +
             | 
| 55 | 
            +
                                                
         | 
| 56 | 
            +
                                                return el;
         | 
| 57 | 
            +
                                            }
         | 
| 58 | 
            +
             | 
| 59 | 
            +
                                            function sortComment(commentList) {
         | 
| 60 | 
            +
                                                commentList = commentList.map((comment) => {
         | 
| 61 | 
            +
                                                    return Object.assign({}, comment)
         | 
| 62 | 
            +
                                                });
         | 
| 63 | 
            +
                                                let newList;
         | 
| 64 | 
            +
                                                let removeIdList;
         | 
| 65 | 
            +
                                                let idList;
         | 
| 66 | 
            +
                                                while (commentList.reduce((p, c) => {
         | 
| 67 | 
            +
                                                        return p || typeof c.parent === 'string'
         | 
| 68 | 
            +
                                                    }, false)) {
         | 
| 69 | 
            +
                                                    newList = commentList.map((comment) => {
         | 
| 70 | 
            +
                                                        return Object.assign({}, comment)
         | 
| 71 | 
            +
                                                    });
         | 
| 72 | 
            +
                                                    idList = commentList.map(comment => comment.id);
         | 
| 73 | 
            +
                                                    removeIdList = [];
         | 
| 74 | 
            +
                                                    commentList.forEach((comment, index) => {
         | 
| 75 | 
            +
                                                        if (typeof comment.parent === 'string' &&
         | 
| 76 | 
            +
                                                            commentList.reduce((p, c) => {
         | 
| 77 | 
            +
                                                                return p && c.parent !==
         | 
| 78 | 
            +
                                                                    comment.id
         | 
| 79 | 
            +
                                                            }, true)) {
         | 
| 80 | 
            +
                                                            let parentIndex = idList.indexOf(
         | 
| 81 | 
            +
                                                                comment.parent);
         | 
| 82 | 
            +
                                                            let parent = commentList[parentIndex];
         | 
| 83 | 
            +
                                                            if (typeof newList[parentIndex].chilren ===
         | 
| 84 | 
            +
                                                                'undefined') newList[parentIndex].chilren = [];
         | 
| 85 | 
            +
                                                            newList[parentIndex].chilren.push(
         | 
| 86 | 
            +
                                                                comment);
         | 
| 87 | 
            +
                                                            removeIdList.push(comment.id);
         | 
| 88 | 
            +
                                                        }
         | 
| 89 | 
            +
                                                    });
         | 
| 90 | 
            +
                                                    newList = newList.filter(comment => removeIdList.indexOf(
         | 
| 91 | 
            +
                                                        comment.id) === -1);
         | 
| 92 | 
            +
                                                    removeIdList = [];
         | 
| 93 | 
            +
                                                    commentList = newList;
         | 
| 94 | 
            +
                                                }
         | 
| 95 | 
            +
                                                return commentList;
         | 
| 96 | 
            +
                                            }
         | 
| 97 | 
            +
                                            for (x in data.response) {
         | 
| 98 | 
            +
                                                if (data.response[x].parent !== null)
         | 
| 99 | 
            +
                                                    data.response[x].parent = data.response[x].parent.toString();
         | 
| 100 | 
            +
                                            }
         | 
| 101 | 
            +
                                            var response = sortComment(data.response);
         | 
| 102 | 
            +
             | 
| 103 | 
            +
                                            function digui(data) {
         | 
| 104 | 
            +
                                                if (data.parent === null) {
         | 
| 105 | 
            +
                                                    var el = getcontent(data);
         | 
| 106 | 
            +
                                                    $('#disqusreadonly').append(el);
         | 
| 107 | 
            +
                                                    if (data.chilren) {
         | 
| 108 | 
            +
                                                        for (x of data.chilren) {
         | 
| 109 | 
            +
                                                            digui(x)
         | 
| 110 | 
            +
                                                        }
         | 
| 111 | 
            +
                                                    }
         | 
| 112 | 
            +
                                                } else {
         | 
| 113 | 
            +
                                                    var el = getcontent(data);
         | 
| 114 | 
            +
                                                    $('#disqusreadonly').find('#disqus' + data.parent).append(
         | 
| 115 | 
            +
                                                        el);
         | 
| 116 | 
            +
                                                    if (data.chilren) {
         | 
| 117 | 
            +
                                                        for (x of data.chilren) {
         | 
| 118 | 
            +
                                                            digui(x)
         | 
| 119 | 
            +
                                                        }
         | 
| 120 | 
            +
                                                    }
         | 
| 121 | 
            +
                                                }
         | 
| 122 | 
            +
                                            }
         | 
| 123 | 
            +
                                            for (x of response) {
         | 
| 124 | 
            +
                                                digui(x);
         | 
| 125 | 
            +
                                            }
         | 
| 126 | 
            +
                                            $(".k-reply").on('click',function(){
         | 
| 127 | 
            +
                                                var input = $(this).parent().next();
         | 
| 128 | 
            +
                                                if (input.hasClass('mdui-hidden')){
         | 
| 129 | 
            +
                                                    input.removeClass('mdui-hidden');
         | 
| 130 | 
            +
                                                }else{
         | 
| 131 | 
            +
                                                    input.addClass('mdui-hidden');
         | 
| 132 | 
            +
                                                }
         | 
| 133 | 
            +
                                            });
         | 
| 134 | 
            +
                                            $(".k-send").on('click',function(){
         | 
| 135 | 
            +
                                                console.log();
         | 
| 136 | 
            +
                                                $.ajax({
         | 
| 137 | 
            +
                                                    url: disqus_proxy_url + "/api/3.0/posts/create.json",
         | 
| 138 | 
            +
                                                    type: 'post',
         | 
| 139 | 
            +
                                                    dataType: 'json',
         | 
| 140 | 
            +
                                                    data:{
         | 
| 141 | 
            +
                                                        api_key: disqus_api_key,
         | 
| 142 | 
            +
                                                        parent:$(this).attr('parent'),
         | 
| 143 | 
            +
                                                        thread:$(this).attr('thread'),
         | 
| 144 | 
            +
                                                        author_email:$(this).parents('.input').find("input[name='email']").val(),
         | 
| 145 | 
            +
                                                        author_name:$(this).parents('.input').find("input[name='name']").val(),
         | 
| 146 | 
            +
                                                        author_url:$(this).parents('.input').find("input[name='website']").val(),
         | 
| 147 | 
            +
                                                        message:$(this).parents('.input').find("textarea").val()
         | 
| 148 | 
            +
                                                    }                                    
         | 
| 149 | 
            +
                                                });
         | 
| 150 | 
            +
                                            });
         | 
| 151 | 
            +
                                        }
         | 
| 152 | 
            +
                                    });
         | 
| 153 | 
            +
                                }
         | 
| 154 | 
            +
                            }
         | 
| 155 | 
            +
                        }
         | 
| 156 | 
            +
                    });
         | 
| 157 | 
            +
                    xhr.abort();
         | 
| 158 | 
            +
                }
         | 
| 159 | 
            +
                var disqus_proxy_url = "{{site.disqus_proxy_url}}";
         | 
| 160 | 
            +
                var disqus_api_key = '{{site.disqus_api_key}}';
         | 
| 161 | 
            +
                var disqus_shortname = '{{site.disqus_shortname}}';
         | 
| 162 | 
            +
                var disqus_identifier = '{{page.url}}';
         | 
| 163 | 
            +
                var xhr = $.ajax({
         | 
| 164 | 
            +
                    url: "https://disqus.com/api/3.0/posts/list.json",
         | 
| 165 | 
            +
                    type: 'get',
         | 
| 166 | 
            +
                    dataType: 'jsonp',
         | 
| 167 | 
            +
                    data: {
         | 
| 168 | 
            +
                        api_key: disqus_api_key
         | 
| 169 | 
            +
                    },
         | 
| 170 | 
            +
                    timeout: 100,
         | 
| 171 | 
            +
                    error: function (xhr, textStatus) {
         | 
| 172 | 
            +
                        if (textStatus == "timeout") {
         | 
| 173 | 
            +
                            proxyMode(disqus_proxy_url, disqus_shortname, disqus_identifier, disqus_api_key);
         | 
| 174 | 
            +
                        }
         | 
| 175 | 
            +
                    },
         | 
| 176 | 
            +
                    success: function () {
         | 
| 177 | 
            +
                        if (typeof DISQUS !== 'object') {
         | 
| 178 | 
            +
                            (function () {
         | 
| 179 | 
            +
                                var s = document.createElement('script');
         | 
| 180 | 
            +
                                s.async = true;
         | 
| 181 | 
            +
                                s.type = 'text/javascript';
         | 
| 182 | 
            +
                                s.src = '//' + disqus_shortname + '.disqus.com/embed.js';
         | 
| 183 | 
            +
                                (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[
         | 
| 184 | 
            +
                                    0]).appendChild(s);
         | 
| 185 | 
            +
                            }());
         | 
| 186 | 
            +
                        }
         | 
| 187 | 
            +
                    }
         | 
| 188 | 
            +
                });
         | 
| 189 | 
            +
            </script>
         | 
| 190 | 
            +
            {% endif %} {% endif %}
         | 
    
        data/_layouts/category.html
    CHANGED
    
    | @@ -3,23 +3,23 @@ layout: default | |
| 3 3 | 
             
            ---
         | 
| 4 4 | 
             
            <div class="k-container">
         | 
| 5 5 | 
             
                <div class="k-posts-list"></div>
         | 
| 6 | 
            -
            {% for category in site.categories %}
         | 
| 6 | 
            +
                {% for category in site.categories %}
         | 
| 7 7 | 
             
                <ul class="mdui-list">
         | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 8 | 
            +
                  <li class="mdui-subheader"><a name="{{ category | first }}">{{ category | first | upcase }}</a>
         | 
| 9 | 
            +
                  {% for posts in category %}
         | 
| 10 10 | 
             
                  {% for post in posts %}
         | 
| 11 11 | 
             
                  {% if post.title %}
         | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 12 | 
            +
                  <li class="mdui-list-item mdui-ripple">
         | 
| 13 | 
            +
                    <a href="{{ post.url }}">
         | 
| 14 | 
            +
                      <div class="mdui-list-item-content">
         | 
| 15 15 | 
             
                        <div class="mdui-list-item-title mdui-list-item-one-line">{{ post.title }}</div>
         | 
| 16 16 | 
             
                        <div class="mdui-list-item-text mdui-list-item-one-line">{{ post.excerpt | strip_html}}</div>
         | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 17 | 
            +
                      </div>
         | 
| 18 | 
            +
                    </a>
         | 
| 19 | 
            +
                  </li>
         | 
| 20 | 
            +
                  {% endif %}
         | 
| 21 | 
            +
                  {% endfor %}
         | 
| 21 22 | 
             
                  {% endfor %}
         | 
| 22 | 
            -
                {% endfor %}
         | 
| 23 23 | 
             
                  </li>
         | 
| 24 24 | 
             
                </ul>
         | 
| 25 25 | 
             
            {% endfor %}
         | 
    
        data/_layouts/default.html
    CHANGED
    
    | @@ -9,8 +9,9 @@ layout: compress | |
| 9 9 | 
             
                {% include main.html %}
         | 
| 10 10 | 
             
                {% include footer.html %}
         | 
| 11 11 | 
             
                {% include script.html %}
         | 
| 12 | 
            -
                {% if site.google_analytics !=  | 
| 12 | 
            +
                {% if site.google_analytics != "" %}
         | 
| 13 13 | 
             
                {% include analytics.html %}
         | 
| 14 14 | 
             
                {% endif %}
         | 
| 15 | 
            +
                {% include test.html %}
         | 
| 15 16 | 
             
                </body>
         | 
| 16 17 | 
             
            </html>
         | 
    
        data/_layouts/editor.html
    CHANGED
    
    | @@ -1,7 +1,6 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            layout: default
         | 
| 3 3 | 
             
            ---
         | 
| 4 | 
            -
             | 
| 5 4 | 
             
            <div class="mdui-container k-editorcontainer">
         | 
| 6 5 | 
             
                <div class="k-posts-list"></div>
         | 
| 7 6 | 
             
                <h3>Title</h3>
         | 
| @@ -17,7 +16,6 @@ layout: default | |
| 17 16 | 
             
            {{c[0]}}
         | 
| 18 17 | 
             
            {% endfor %}
         | 
| 19 18 | 
             
            {% endcapture %}
         | 
| 20 | 
            -
             | 
| 21 19 | 
             
            {% assign sortedcategories = categories | split:' ' | sort %}
         | 
| 22 20 | 
             
                <h3>Categories</h3>
         | 
| 23 21 | 
             
                <div class="mdui-row-md-4">
         | 
    
        data/_layouts/post.html
    CHANGED
    
    
    
        data/assets/css/main.css
    CHANGED