Giter Site home page Giter Site logo

simple's People

Contributors

donaldwhyte avatar isnowfy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple's Issues

同一篇文章中有多个代码段时着色有问题

修改方法:

    function mdupdate() {
        var converter = new Showdown.converter();
        var tmp = $("#editmd").val();
        // 非贪婪全局替换
        tmp = tmp.replace(/~~~~\{(.*)\}\n([\s\S]*?)~~~~\n/gm, "<pre><code class=\"language-$1\">$2</code></pre>");
        tmp = tmp.replace(/~~~~\n([\s\S]*?)~~~~\n/gm, "<pre><code>$1</code></pre>");
        tmp = converter.makeHtml(tmp);
        $("#edithtml").html(tmp);
        Prism.highlightAll();
        MathJax.Hub.Queue(["Typeset", MathJax.Hub, "edithtml"]);
    }

Contribution: Searching function

Hello,

Saw that you wanted to add searching function to your project and decided to contribute a code that I use in my blog.

Test page (index.html), online demo here or just type something in my blog search form.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Zearch</title>

    <!-- Bootstrap -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>

    <div class="container">
      <div id="content">
        <div class="row">
          <div class="page-content col-md-6 col-sm-8">

            <h1>Type L</h1>
            <form>
              <div class="input-group custom-search-form">
                <input type="text" id="uzer-infut" class="form-control" placeholder="Ask me anything">
              </div>
            </form>


            <div id="queryMe"></div>


          </div><!--/.page-content-->
        </div><!--/.row-->
      </div><!--/.content-->
    </div><!--/.container-->

  <script defer src="search.js"></script>
  <script defer src="tmpl.min.js"></script>

  </body>
</html>

You must have https://github.com/blueimp/JavaScript-Templates installed (npm install; npm run build)

search.js

(function() {
    'use strict';

    var nothingFoundTemplate = [
        "<hr>",
            "<div class='alert alert-info'>Nothing found.</div>",
        "<hr>"
    ].join(''),
    searchTemplate = [
        "{% for (var x=0; x < o.length; x++) { %}",
            "<div class='page-header'>",
                "<h4>",
                    "<a href='{%=o[x][1]%}' class='text-muted'>",
                        "{%=o[x][0]%}",
                    "</a>",
                "</h4>",
            "</div>",
        "{% } %}"
    ].join(''),
    entries = [
            //  title     url
            ['Lorem', 'http://ex0.com'],
            ['Little Joe', 'http://ex1.com'],
            ['ipsum', 'http://ex2.com'],
            ['next', 'http://ex3.com'],
            ['generation', 'http://ex4.com'],
            ['old', 'http://ex5.com'],
            ['school', 'http://ex6.com']
    ];

    var innerData = function(partialTemplate, data, id) {
        var template = document.createElement('div'),
            container = document.querySelector('#' + id);
        while (container.firstChild) {
            container.removeChild(container.firstChild);
        }
        template.innerHTML = tmpl(partialTemplate, data);
        container.appendChild(template);
    };
    var invokeSearch = function() {
        var x,
            arr = [],
            foundPosts = false,
            uzerQuery = document.getElementById('uzer-infut').value.toLowerCase();

        if (uzerQuery === '') {
            innerData(nothingFoundTemplate, arr, 'queryMe');
            return false;
        }

        entries.forEach(function(entry) {
            if (entry[0].toLowerCase().match(uzerQuery)) {
                arr.push(entry);
                foundPosts = true;
            }
        });
        innerData(foundPosts ? searchTemplate :
                nothingFoundTemplate, arr, 'queryMe');
    };
    document.getElementById('uzer-infut').addEventListener('input', invokeSearch, false);
}());

Every key stroke will trigger the search function, thus making it interactive without the need from the user to click any submit buttons (especially useful on mobile devices).

3 days later: replaced the entries objects with arrays instead.

服务不可用

之前用这个工具写过几篇文章的,今天发现文章都不见了,而且,现在登录后post文章都不行了,登录也是有问题的,密码错了也可以过

登录失败

使用的是git的用户名和密码还是显示 Something error!

初始化失败

我在使用 isnowfy 创建博客的时候出错了
Github最后一个请求 422
不知道是什么原因造成的。
或者 isnowfy 是否还有其他部署方法?

请求链接:

https://api.github.com/repos/kxxoling/kxxoling.github.io/git/commits?1413631940027

请求头:

{"message":"simple","author":{},"parents":["b661d0c2a39063fba4150b31b3474f04cef9d39c"],"tree":"926ffe86dd9d26162fef8b100c7ced2db76744e7"}

错误信息:

{
"message": "Invalid request.\n\nMissing required keys "email, name" in object; keys are "".",
"documentation_url": "https://developer.github.com/v3/git/commits/#create-a-commit"
}

typo

the default page name is currently "Url ike intro.html".

Blog setup in subdirectory

Initializing Simple requires the root's HTML file /index.html file to be overwritten. Is there a way to set Simple up in a custom subdirectory, such as /blog/, so that the blog is hosted at http://[username].github.io/blog?

Italic markdown appears underlined

Hello,

great job !
as said in title, italic markdown words or sentences (like Hello Wolrd!) appears underlined in simple.

After investigation, it comes from your file entry.css :

em{padding-bottom:.05em;font-style:inherit;font-weight:inherit;border-bottom:2px dotted #8b98a0}

should be replaced by :

em{padding-bottom:.05em;font-style:italic;font-weight:inherit;/*border-bottom:2px dotted #8b98a0*/}

This is just my humble opinion. Feel free to use it and test it more deeply.

Have a nice day.
Bruno.

tags 中文标签不可用

中文标签,如:#博客系统
会直接转换成
#%E5%8D%9A%E5%AE%A2%E7%B3%BB%E7%BB%9F
从而使得标签不可用,无法正常输出标签下的文章。

Case for handling foldername/filename URL while saving page

I have created a post, with url as posts/hello.html. After saving, I found that Blog title, post title, pages are not shown in the generated page.

Please do make it work. I feel this is worthy application, very easy to use but needs some updates. Please also include Error displays (you can use alerts rather than not showing any error).

登录失败

github可以登录,确定密码没有问题。

但是登录时提示something error。
确定不是广告插件问题,换了多个浏览器尝试。

Cannot login

  1. sign in on page http://isnowfy.github.io/simple/
  2. show error "something error" beside "Sign in" button

PS: I think it should be some user validation issue on this. Maybe github account issue or simple project issue.

请问一个小白问题

是不是把src目录放到自己github page仓库下面,就可以在自己的page下面登录呢?还是一定要在你这边登录才可以发布呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.