steve-for-jekyll 1.0 → 1.1.1
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/404.html +9 -0
- data/LICENSE.txt +21 -21
- data/README.md +61 -21
- data/_config.yml +96 -70
- data/_includes/blog/custom-widgets.html +3 -3
- data/_includes/blog/post.html +16 -2
- data/_includes/blog/sidebar.html +42 -42
- data/_includes/footer.html +11 -11
- data/_includes/footer/custom-text.html +5 -5
- data/_includes/header.html +17 -17
- data/_includes/header/menu.html +12 -12
- data/_includes/post/comment-form.html +69 -0
- data/_includes/post/comments.html +47 -0
- data/_includes/search-form.html +13 -13
- data/_layouts/archive.html +21 -21
- data/_layouts/default.html +18 -18
- data/_layouts/home.html +23 -23
- data/_layouts/page.html +15 -15
- data/_layouts/post.html +115 -92
- data/_sass/{steve.scss → steve-for-jekyll.scss} +51 -51
- data/_sass/steve/_base.scss +237 -249
- data/_sass/steve/_layout.scss +472 -397
- data/assets/css/screen.scss +34 -34
- data/assets/js/responsive-videos.js +79 -79
- data/staticman.yml +30 -0
- metadata +11 -7
    
        data/assets/css/screen.scss
    CHANGED
    
    | @@ -1,34 +1,34 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            ---
         | 
| 3 | 
            -
             | 
| 4 | 
            -
            /*
         | 
| 5 | 
            -
              Color Scheme
         | 
| 6 | 
            -
            /*
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            // $color__background-content: #fff; // posts, pages and sidebar background color.
         | 
| 9 | 
            -
            // $color__background-body: #e4f0f6; // body background color
         | 
| 10 | 
            -
            // $color__text: #000112; // body text color
         | 
| 11 | 
            -
            //
         | 
| 12 | 
            -
            // $color__link: #4e9dd8; // color for links and accents
         | 
| 13 | 
            -
            // $color__link-hover: #2361a7; // alternate color for active or focused links and accents
         | 
| 14 | 
            -
            //
         | 
| 15 | 
            -
            // $color__details: #939496; // color for details such as borders and shadows
         | 
| 16 | 
            -
            // $color__details-lighter: #f0f1f4; // lighter alternative for details
         | 
| 17 | 
            -
            // $color__details-darker: #6d6e70; // darker alternative for details
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            /*
         | 
| 20 | 
            -
              Typography
         | 
| 21 | 
            -
            */
         | 
| 22 | 
            -
             | 
| 23 | 
            -
            // $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif; // used for the main, body typography
         | 
| 24 | 
            -
            // $font__headings: $font__body; // used for headings and feature elements
         | 
| 25 | 
            -
            // $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace; // used for pre-formatted text and code.
         | 
| 26 | 
            -
             | 
| 27 | 
            -
            /*
         | 
| 28 | 
            -
              Layout
         | 
| 29 | 
            -
            */
         | 
| 30 | 
            -
             | 
| 31 | 
            -
            // $layout__container-width: 1180px; // the width of the main content (content + sidebar)
         | 
| 32 | 
            -
            // $layout__gutter: 2rem; // the spacing unit between elements.
         | 
| 33 | 
            -
             | 
| 34 | 
            -
            @import " | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            ---
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            /*
         | 
| 5 | 
            +
              Color Scheme
         | 
| 6 | 
            +
            /*
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            // $color__background-content: #fff; // posts, pages and sidebar background color.
         | 
| 9 | 
            +
            // $color__background-body: #e4f0f6; // body background color
         | 
| 10 | 
            +
            // $color__text: #000112; // body text color
         | 
| 11 | 
            +
            //
         | 
| 12 | 
            +
            // $color__link: #4e9dd8; // color for links and accents
         | 
| 13 | 
            +
            // $color__link-hover: #2361a7; // alternate color for active or focused links and accents
         | 
| 14 | 
            +
            //
         | 
| 15 | 
            +
            // $color__details: #939496; // color for details such as borders and shadows
         | 
| 16 | 
            +
            // $color__details-lighter: #f0f1f4; // lighter alternative for details
         | 
| 17 | 
            +
            // $color__details-darker: #6d6e70; // darker alternative for details
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            /*
         | 
| 20 | 
            +
              Typography
         | 
| 21 | 
            +
            */
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            // $font__body: "Avenir Next", Corbel, "Fira Sans", "Trebuchet MS", Ubuntu, sans-serif; // used for the main, body typography
         | 
| 24 | 
            +
            // $font__headings: $font__body; // used for headings and feature elements
         | 
| 25 | 
            +
            // $font__code: "Cascadia Code", SFMono-Regular, Menlo, Consolas, "Fira Mono", "DejaVu Sans Mono", monospace; // used for pre-formatted text and code.
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            /*
         | 
| 28 | 
            +
              Layout
         | 
| 29 | 
            +
            */
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            // $layout__container-width: 1180px; // the width of the main content (content + sidebar)
         | 
| 32 | 
            +
            // $layout__gutter: 2rem; // the spacing unit between elements.
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            @import "{{ site.theme }}";
         | 
| @@ -1,79 +1,79 @@ | |
| 1 | 
            -
            /*
         | 
| 2 | 
            -
            Responsive videos.
         | 
| 3 | 
            -
            */
         | 
| 4 | 
            -
            (function() {
         | 
| 5 | 
            -
            var _debounce, _each, _filter, _resize, iframes, isVideo, resizeVideos, videos;
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            resizeVideos = function() {
         | 
| 8 | 
            -
              _each(videos, function(video) {
         | 
| 9 | 
            -
                var newWidth;
         | 
| 10 | 
            -
                newWidth = video.parentElement.offsetWidth;
         | 
| 11 | 
            -
                _resize(video, newWidth);
         | 
| 12 | 
            -
              });
         | 
| 13 | 
            -
            };
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            _each = function(items, action) {
         | 
| 16 | 
            -
              var i, len;
         | 
| 17 | 
            -
              i = 0;
         | 
| 18 | 
            -
              len = items.length;
         | 
| 19 | 
            -
              while (i < len) {
         | 
| 20 | 
            -
                action(items[i], i);
         | 
| 21 | 
            -
                i++;
         | 
| 22 | 
            -
              }
         | 
| 23 | 
            -
            };
         | 
| 24 | 
            -
             | 
| 25 | 
            -
            _filter = function(items, test) {
         | 
| 26 | 
            -
              var filtered, i, item;
         | 
| 27 | 
            -
              filtered = [];
         | 
| 28 | 
            -
              i = 0;
         | 
| 29 | 
            -
              while (i < items.length) {
         | 
| 30 | 
            -
                item = items[i];
         | 
| 31 | 
            -
                if (test(item, i)) {
         | 
| 32 | 
            -
                  filtered.push(item);
         | 
| 33 | 
            -
                }
         | 
| 34 | 
            -
                i++;
         | 
| 35 | 
            -
              }
         | 
| 36 | 
            -
              return filtered;
         | 
| 37 | 
            -
            };
         | 
| 38 | 
            -
             | 
| 39 | 
            -
            _resize = function(video, newWidth) {
         | 
| 40 | 
            -
              var ASPECT_RATIO, newHeight;
         | 
| 41 | 
            -
              ASPECT_RATIO = 9 / 16;
         | 
| 42 | 
            -
              newHeight = ASPECT_RATIO * newWidth;
         | 
| 43 | 
            -
              video.setAttribute('width', newWidth.toString());
         | 
| 44 | 
            -
              video.setAttribute('height', newHeight.toString());
         | 
| 45 | 
            -
            };
         | 
| 46 | 
            -
             | 
| 47 | 
            -
            _debounce = function(func, wait, immediate) {
         | 
| 48 | 
            -
              var timeout;
         | 
| 49 | 
            -
              timeout = void 0;
         | 
| 50 | 
            -
              return function() {
         | 
| 51 | 
            -
                var args, callNow, context, later;
         | 
| 52 | 
            -
                context = this;
         | 
| 53 | 
            -
                args = arguments;
         | 
| 54 | 
            -
                later = function() {
         | 
| 55 | 
            -
                  timeout = null;
         | 
| 56 | 
            -
                  if (!immediate) {
         | 
| 57 | 
            -
                    func.apply(context, args);
         | 
| 58 | 
            -
                  }
         | 
| 59 | 
            -
                };
         | 
| 60 | 
            -
                callNow = immediate && !timeout;
         | 
| 61 | 
            -
                clearTimeout(timeout);
         | 
| 62 | 
            -
                timeout = setTimeout(later, wait);
         | 
| 63 | 
            -
                if (callNow) {
         | 
| 64 | 
            -
                  func.apply(context, args);
         | 
| 65 | 
            -
                }
         | 
| 66 | 
            -
              };
         | 
| 67 | 
            -
            };
         | 
| 68 | 
            -
             | 
| 69 | 
            -
            iframes = document.getElementsByTagName('iframe');
         | 
| 70 | 
            -
             | 
| 71 | 
            -
            isVideo = /(youtube)|(vimeo)|(cloudup)|(spotify)|(twitch)/i;
         | 
| 72 | 
            -
             | 
| 73 | 
            -
            videos = _filter(iframes, function(iframe) {
         | 
| 74 | 
            -
              return isVideo.test(iframe.getAttribute('src'));
         | 
| 75 | 
            -
            });
         | 
| 76 | 
            -
             | 
| 77 | 
            -
            resizeVideos();
         | 
| 78 | 
            -
             | 
| 79 | 
            -
            }).call(this);
         | 
| 1 | 
            +
            /*
         | 
| 2 | 
            +
            Responsive videos.
         | 
| 3 | 
            +
            */
         | 
| 4 | 
            +
            (function() {
         | 
| 5 | 
            +
            var _debounce, _each, _filter, _resize, iframes, isVideo, resizeVideos, videos;
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            resizeVideos = function() {
         | 
| 8 | 
            +
              _each(videos, function(video) {
         | 
| 9 | 
            +
                var newWidth;
         | 
| 10 | 
            +
                newWidth = video.parentElement.offsetWidth;
         | 
| 11 | 
            +
                _resize(video, newWidth);
         | 
| 12 | 
            +
              });
         | 
| 13 | 
            +
            };
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            _each = function(items, action) {
         | 
| 16 | 
            +
              var i, len;
         | 
| 17 | 
            +
              i = 0;
         | 
| 18 | 
            +
              len = items.length;
         | 
| 19 | 
            +
              while (i < len) {
         | 
| 20 | 
            +
                action(items[i], i);
         | 
| 21 | 
            +
                i++;
         | 
| 22 | 
            +
              }
         | 
| 23 | 
            +
            };
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            _filter = function(items, test) {
         | 
| 26 | 
            +
              var filtered, i, item;
         | 
| 27 | 
            +
              filtered = [];
         | 
| 28 | 
            +
              i = 0;
         | 
| 29 | 
            +
              while (i < items.length) {
         | 
| 30 | 
            +
                item = items[i];
         | 
| 31 | 
            +
                if (test(item, i)) {
         | 
| 32 | 
            +
                  filtered.push(item);
         | 
| 33 | 
            +
                }
         | 
| 34 | 
            +
                i++;
         | 
| 35 | 
            +
              }
         | 
| 36 | 
            +
              return filtered;
         | 
| 37 | 
            +
            };
         | 
| 38 | 
            +
             | 
| 39 | 
            +
            _resize = function(video, newWidth) {
         | 
| 40 | 
            +
              var ASPECT_RATIO, newHeight;
         | 
| 41 | 
            +
              ASPECT_RATIO = 9 / 16;
         | 
| 42 | 
            +
              newHeight = ASPECT_RATIO * newWidth;
         | 
| 43 | 
            +
              video.setAttribute('width', newWidth.toString());
         | 
| 44 | 
            +
              video.setAttribute('height', newHeight.toString());
         | 
| 45 | 
            +
            };
         | 
| 46 | 
            +
             | 
| 47 | 
            +
            _debounce = function(func, wait, immediate) {
         | 
| 48 | 
            +
              var timeout;
         | 
| 49 | 
            +
              timeout = void 0;
         | 
| 50 | 
            +
              return function() {
         | 
| 51 | 
            +
                var args, callNow, context, later;
         | 
| 52 | 
            +
                context = this;
         | 
| 53 | 
            +
                args = arguments;
         | 
| 54 | 
            +
                later = function() {
         | 
| 55 | 
            +
                  timeout = null;
         | 
| 56 | 
            +
                  if (!immediate) {
         | 
| 57 | 
            +
                    func.apply(context, args);
         | 
| 58 | 
            +
                  }
         | 
| 59 | 
            +
                };
         | 
| 60 | 
            +
                callNow = immediate && !timeout;
         | 
| 61 | 
            +
                clearTimeout(timeout);
         | 
| 62 | 
            +
                timeout = setTimeout(later, wait);
         | 
| 63 | 
            +
                if (callNow) {
         | 
| 64 | 
            +
                  func.apply(context, args);
         | 
| 65 | 
            +
                }
         | 
| 66 | 
            +
              };
         | 
| 67 | 
            +
            };
         | 
| 68 | 
            +
             | 
| 69 | 
            +
            iframes = document.getElementsByTagName('iframe');
         | 
| 70 | 
            +
             | 
| 71 | 
            +
            isVideo = /(youtube)|(vimeo)|(cloudup)|(spotify)|(twitch)/i;
         | 
| 72 | 
            +
             | 
| 73 | 
            +
            videos = _filter(iframes, function(iframe) {
         | 
| 74 | 
            +
              return isVideo.test(iframe.getAttribute('src'));
         | 
| 75 | 
            +
            });
         | 
| 76 | 
            +
             | 
| 77 | 
            +
            resizeVideos();
         | 
| 78 | 
            +
             | 
| 79 | 
            +
            }).call(this);
         | 
    
        data/staticman.yml
    ADDED
    
    | @@ -0,0 +1,30 @@ | |
| 1 | 
            +
            comments:
         | 
| 2 | 
            +
              branch: main
         | 
| 3 | 
            +
              commitMessage: "Adds comment via Staticman"
         | 
| 4 | 
            +
              path: "_data/comments/{options.slug}"
         | 
| 5 | 
            +
              filename: "comment-{@timestamp}"
         | 
| 6 | 
            +
              format: yaml
         | 
| 7 | 
            +
              moderation: true
         | 
| 8 | 
            +
              allowedFields:
         | 
| 9 | 
            +
                - name
         | 
| 10 | 
            +
                - email
         | 
| 11 | 
            +
                - website
         | 
| 12 | 
            +
                - message
         | 
| 13 | 
            +
              generatedFields:
         | 
| 14 | 
            +
                date:
         | 
| 15 | 
            +
                  type: date
         | 
| 16 | 
            +
                  options:
         | 
| 17 | 
            +
                    format: timestamp-seconds
         | 
| 18 | 
            +
              requiredFields:
         | 
| 19 | 
            +
                - name
         | 
| 20 | 
            +
                - email
         | 
| 21 | 
            +
                - message
         | 
| 22 | 
            +
              transforms:
         | 
| 23 | 
            +
                email: md5
         | 
| 24 | 
            +
              akismet:
         | 
| 25 | 
            +
                enabled: true
         | 
| 26 | 
            +
                author: name
         | 
| 27 | 
            +
                authorEmail: email
         | 
| 28 | 
            +
                authorUrl: website
         | 
| 29 | 
            +
                content: message
         | 
| 30 | 
            +
                type: comment
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: steve-for-jekyll
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version:  | 
| 4 | 
            +
              version: 1.1.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Arthur Freitas
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021-05- | 
| 11 | 
            +
            date: 2021-05-13 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: jekyll
         | 
| @@ -44,14 +44,14 @@ dependencies: | |
| 44 44 | 
             
                requirements:
         | 
| 45 45 | 
             
                - - "~>"
         | 
| 46 46 | 
             
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            -
                    version: 0.15 | 
| 47 | 
            +
                    version: '0.15'
         | 
| 48 48 | 
             
              type: :runtime
         | 
| 49 49 | 
             
              prerelease: false
         | 
| 50 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 51 | 
             
                requirements:
         | 
| 52 52 | 
             
                - - "~>"
         | 
| 53 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            -
                    version: 0.15 | 
| 54 | 
            +
                    version: '0.15'
         | 
| 55 55 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 56 56 | 
             
              name: jekyll-seo-tag
         | 
| 57 57 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -129,6 +129,7 @@ executables: [] | |
| 129 129 | 
             
            extensions: []
         | 
| 130 130 | 
             
            extra_rdoc_files: []
         | 
| 131 131 | 
             
            files:
         | 
| 132 | 
            +
            - 404.html
         | 
| 132 133 | 
             
            - LICENSE.txt
         | 
| 133 134 | 
             
            - README.md
         | 
| 134 135 | 
             
            - _config.yml
         | 
| @@ -141,6 +142,8 @@ files: | |
| 141 142 | 
             
            - _includes/head.html
         | 
| 142 143 | 
             
            - _includes/header.html
         | 
| 143 144 | 
             
            - _includes/header/menu.html
         | 
| 145 | 
            +
            - _includes/post/comment-form.html
         | 
| 146 | 
            +
            - _includes/post/comments.html
         | 
| 144 147 | 
             
            - _includes/search-form.html
         | 
| 145 148 | 
             
            - _layouts/archive.html
         | 
| 146 149 | 
             
            - _layouts/blog.html
         | 
| @@ -148,12 +151,13 @@ files: | |
| 148 151 | 
             
            - _layouts/home.html
         | 
| 149 152 | 
             
            - _layouts/page.html
         | 
| 150 153 | 
             
            - _layouts/post.html
         | 
| 151 | 
            -
            - _sass/steve.scss
         | 
| 154 | 
            +
            - _sass/steve-for-jekyll.scss
         | 
| 152 155 | 
             
            - _sass/steve/_base.scss
         | 
| 153 156 | 
             
            - _sass/steve/_layout.scss
         | 
| 154 157 | 
             
            - _sass/steve/_syntax.scss
         | 
| 155 158 | 
             
            - assets/css/screen.scss
         | 
| 156 159 | 
             
            - assets/js/responsive-videos.js
         | 
| 160 | 
            +
            - staticman.yml
         | 
| 157 161 | 
             
            homepage: https://github.com/esporo/steve
         | 
| 158 162 | 
             
            licenses:
         | 
| 159 163 | 
             
            - MIT
         | 
| @@ -173,8 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 173 177 | 
             
                - !ruby/object:Gem::Version
         | 
| 174 178 | 
             
                  version: '0'
         | 
| 175 179 | 
             
            requirements: []
         | 
| 176 | 
            -
            rubygems_version: 3.2. | 
| 180 | 
            +
            rubygems_version: 3.2.15
         | 
| 177 181 | 
             
            signing_key:
         | 
| 178 182 | 
             
            specification_version: 4
         | 
| 179 | 
            -
            summary: A charming | 
| 183 | 
            +
            summary: A charming and fun Jekyll theme for blogs.
         | 
| 180 184 | 
             
            test_files: []
         |