jekyll-theme-linky 0.2.6 → 0.2.7
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 +6 -0
 - data/_includes/link-category.html +39 -0
 - data/_layouts/links.html +11 -31
 - data/_sass/linky.scss +12 -1
 - metadata +3 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: f45457eb1046edb874bcfc978af6ea1ad2ea75550c68f59794de1eafd4cebe3d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 73e99e3f1b17b2aa6b06c573649e9cdc9f042d89d57bddbc405a3adcbd8efe48
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: dce3a2f66bdbc8e39a359f8da43f730304f123c8ab3406ecf1dcae17cd9e73505f108f69f78055c6befe756b252c4245eb99514d4c640eec52a3689f5272aa09
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6300adae45ccb504721d1d2de1e84e834af9eff7fd3898eb71f823194b70fa7c4c3d5f103ef1c11082c529a032b526f7e04c5f9828138c77606422763555bdd4
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -113,6 +113,7 @@ image: "/images/example.jpg" 
     | 
|
| 
       113 
113 
     | 
    
         
             
            title: 'My link test'
         
     | 
| 
       114 
114 
     | 
    
         
             
            priority: 5
         
     | 
| 
       115 
115 
     | 
    
         
             
            expires: 2024-11-11
         
     | 
| 
      
 116 
     | 
    
         
            +
            category: 'Example'
         
     | 
| 
       116 
117 
     | 
    
         
             
            ---
         
     | 
| 
       117 
118 
     | 
    
         
             
            ```
         
     | 
| 
       118 
119 
     | 
    
         | 
| 
         @@ -140,6 +141,11 @@ expires: 2024-11-11 
     | 
|
| 
       140 
141 
     | 
    
         | 
| 
       141 
142 
     | 
    
         
             
                Note that this will only take effect on a rebuild; there's no runtime JavaScript, etc. to disable a link that's already been deployed.
         
     | 
| 
       142 
143 
     | 
    
         | 
| 
      
 144 
     | 
    
         
            +
            - `category`
         
     | 
| 
      
 145 
     | 
    
         
            +
             
     | 
| 
      
 146 
     | 
    
         
            +
                Links will be grouped by category (if any). Items without a category field will be grouped together at the
         
     | 
| 
      
 147 
     | 
    
         
            +
                top of the list; other items will be separated by category headers.
         
     | 
| 
      
 148 
     | 
    
         
            +
             
     | 
| 
       143 
149 
     | 
    
         | 
| 
       144 
150 
     | 
    
         
             
            ## Update Links with Decap CMS
         
     | 
| 
       145 
151 
     | 
    
         | 
| 
         @@ -0,0 +1,39 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
             
     | 
| 
      
 2 
     | 
    
         
            +
            {% assign link_list = include.link_list %}
         
     | 
| 
      
 3 
     | 
    
         
            +
            {% assign collection_title = include.title | default: "" %}
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            {% if collection_title != "" %}
         
     | 
| 
      
 7 
     | 
    
         
            +
            <h2 class="section-header">{{ collection_title }}</h2>
         
     | 
| 
      
 8 
     | 
    
         
            +
            {% endif %}
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            <ul class="links">
         
     | 
| 
      
 11 
     | 
    
         
            +
                {% assign current_date = site.time | date: "%Y-%m-%d" %}
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                {% assign valid_links = '' | split: '' %}
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                {% for link in link_list %}
         
     | 
| 
      
 16 
     | 
    
         
            +
                    {% if link.expires and link.expires != nil %}
         
     | 
| 
      
 17 
     | 
    
         
            +
                        {% assign exp_date = link.expires | date: "%Y-%m-%d" %}
         
     | 
| 
      
 18 
     | 
    
         
            +
                        {% if exp_date > current_date %}
         
     | 
| 
      
 19 
     | 
    
         
            +
                            {% assign valid_links = valid_links | push: link %}
         
     | 
| 
      
 20 
     | 
    
         
            +
                        {% endif %}
         
     | 
| 
      
 21 
     | 
    
         
            +
                    {% else %}
         
     | 
| 
      
 22 
     | 
    
         
            +
                        {% assign valid_links = valid_links | push: link %}
         
     | 
| 
      
 23 
     | 
    
         
            +
                    {% endif %}
         
     | 
| 
      
 24 
     | 
    
         
            +
                {% endfor %}
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
                {% assign priorities = valid_links | sort: "priority" | group_by: 'priority'  %}
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
                {% for priority in priorities %}
         
     | 
| 
      
 29 
     | 
    
         
            +
                    {% assign sorted_links = priority.items | sort: 'title' %}
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                    {% for link in sorted_links %}
         
     | 
| 
      
 32 
     | 
    
         
            +
                        <li class="link" data-priority="{{ link.priority }}">
         
     | 
| 
      
 33 
     | 
    
         
            +
                            <a href="{{ link.link }}">
         
     | 
| 
      
 34 
     | 
    
         
            +
                                    <img src="{{ link.image | default: "/assets/link-default.svg" }}" class="link-logo" alt="{{ link.title }}"> </a>
         
     | 
| 
      
 35 
     | 
    
         
            +
                            <a class="link-desc" href="{{ link.link }}">{{ link.title }}</a>
         
     | 
| 
      
 36 
     | 
    
         
            +
                        </li>
         
     | 
| 
      
 37 
     | 
    
         
            +
                    {% endfor %}
         
     | 
| 
      
 38 
     | 
    
         
            +
                {% endfor %}
         
     | 
| 
      
 39 
     | 
    
         
            +
            </ul>
         
     | 
    
        data/_layouts/links.html
    CHANGED
    
    | 
         @@ -132,38 +132,18 @@ layout: default 
     | 
|
| 
       132 
132 
     | 
    
         
             
                <h1 class="page-heading">{{ page.title }}</h1>
         
     | 
| 
       133 
133 
     | 
    
         
             
                {%- endif -%}
         
     | 
| 
       134 
134 
     | 
    
         | 
| 
       135 
     | 
    
         
            -
                 
     | 
| 
       136 
     | 
    
         
            -
             
     | 
| 
       137 
     | 
    
         
            -
             
     | 
| 
       138 
     | 
    
         
            -
             
     | 
| 
       139 
     | 
    
         
            -
             
     | 
| 
       140 
     | 
    
         
            -
                    {% assign valid_links = '' | split: '' %}
         
     | 
| 
       141 
     | 
    
         
            -
             
     | 
| 
       142 
     | 
    
         
            -
                    {% for link in site.links %}
         
     | 
| 
       143 
     | 
    
         
            -
                        {% if link.expires and link.expires != nil %}
         
     | 
| 
       144 
     | 
    
         
            -
                            {% assign exp_date = link.expires | date: "%Y-%m-%d" %}
         
     | 
| 
       145 
     | 
    
         
            -
                            {% if exp_date > current_date %}
         
     | 
| 
       146 
     | 
    
         
            -
                                {% assign valid_links = valid_links | push: link %}
         
     | 
| 
       147 
     | 
    
         
            -
                            {% endif %}
         
     | 
| 
       148 
     | 
    
         
            -
                        {% else %}
         
     | 
| 
       149 
     | 
    
         
            -
                            {% assign valid_links = valid_links | push: link %}
         
     | 
| 
       150 
     | 
    
         
            -
                        {% endif %}
         
     | 
| 
       151 
     | 
    
         
            -
                    {% endfor %}
         
     | 
| 
       152 
     | 
    
         
            -
             
     | 
| 
       153 
     | 
    
         
            -
                    {% assign priorities = valid_links | sort: "priority" | group_by: 'priority'  %}
         
     | 
| 
       154 
     | 
    
         
            -
             
     | 
| 
       155 
     | 
    
         
            -
                    {% for priority in priorities %}
         
     | 
| 
       156 
     | 
    
         
            -
                        {% assign sorted_links = priority.items | sort: 'title' %}
         
     | 
| 
      
 135 
     | 
    
         
            +
                {%- assign uncategorized_links = site.links | where_exp: "link", "link.category == nil" -%}
         
     | 
| 
      
 136 
     | 
    
         
            +
                {%- if uncategorized_links.size > 0 -%}
         
     | 
| 
      
 137 
     | 
    
         
            +
                    {% include link-category.html link_list=uncategorized_links %}
         
     | 
| 
      
 138 
     | 
    
         
            +
                {%- endif -%}
         
     | 
| 
       157 
139 
     | 
    
         | 
| 
       158 
     | 
    
         
            -
             
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
     | 
    
         
            -
             
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
             
     | 
| 
       163 
     | 
    
         
            -
             
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
     | 
    
         
            -
                    {% endfor %}
         
     | 
| 
       166 
     | 
    
         
            -
                </ul>
         
     | 
| 
      
 140 
     | 
    
         
            +
                {%- assign categories = site.links | map: "category" | uniq | where_exp: "category", "category != nil" -%}
         
     | 
| 
      
 141 
     | 
    
         
            +
                {%- for category in categories -%}
         
     | 
| 
      
 142 
     | 
    
         
            +
                    {%- assign categorized_links = site.links | where: "category", category -%}
         
     | 
| 
      
 143 
     | 
    
         
            +
                    {%- if categorized_links.size > 0 -%}
         
     | 
| 
      
 144 
     | 
    
         
            +
                        {% include link-category.html link_list=categorized_links title=category %}
         
     | 
| 
      
 145 
     | 
    
         
            +
                    {%- endif -%}
         
     | 
| 
      
 146 
     | 
    
         
            +
                {%- endfor -%}
         
     | 
| 
       167 
147 
     | 
    
         | 
| 
       168 
148 
     | 
    
         
             
                {{ content }}
         
     | 
| 
       169 
149 
     | 
    
         
             
            </div>
         
     | 
    
        data/_sass/linky.scss
    CHANGED
    
    | 
         @@ -108,7 +108,7 @@ li.link { 
     | 
|
| 
       108 
108 
     | 
    
         
             
                min-width: 150px;
         
     | 
| 
       109 
109 
     | 
    
         
             
                max-width: 600px;
         
     | 
| 
       110 
110 
     | 
    
         
             
                background-color: var(--button-background);
         
     | 
| 
       111 
     | 
    
         
            -
                padding: 0.5em;
         
     | 
| 
      
 111 
     | 
    
         
            +
                padding: 0.5em 2.5em 0.5em 0.5em;
         
     | 
| 
       112 
112 
     | 
    
         
             
                border-radius: 1em;
         
     | 
| 
       113 
113 
     | 
    
         
             
                cursor: pointer;
         
     | 
| 
       114 
114 
     | 
    
         
             
                text-align: center;
         
     | 
| 
         @@ -165,3 +165,14 @@ h1 { 
     | 
|
| 
       165 
165 
     | 
    
         
             
                margin: 0 auto;
         
     | 
| 
       166 
166 
     | 
    
         
             
                text-align: center;
         
     | 
| 
       167 
167 
     | 
    
         
             
            }
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
            .section-header {
         
     | 
| 
      
 170 
     | 
    
         
            +
                margin: 0 20px;
         
     | 
| 
      
 171 
     | 
    
         
            +
                font-weight: normal;
         
     | 
| 
      
 172 
     | 
    
         
            +
                text-align: center;
         
     | 
| 
      
 173 
     | 
    
         
            +
                font-size: 125%;
         
     | 
| 
      
 174 
     | 
    
         
            +
            }
         
     | 
| 
      
 175 
     | 
    
         
            +
             
     | 
| 
      
 176 
     | 
    
         
            +
            .link:first-child {
         
     | 
| 
      
 177 
     | 
    
         
            +
                margin-top: 0.5rem;
         
     | 
| 
      
 178 
     | 
    
         
            +
            }
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: jekyll-theme-linky
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.7
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Paul Roub
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2025- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-02-10 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: jekyll
         
     | 
| 
         @@ -72,6 +72,7 @@ files: 
     | 
|
| 
       72 
72 
     | 
    
         
             
            - _includes/head.html
         
     | 
| 
       73 
73 
     | 
    
         
             
            - _includes/header.html
         
     | 
| 
       74 
74 
     | 
    
         
             
            - _includes/instagram-logo.svg
         
     | 
| 
      
 75 
     | 
    
         
            +
            - _includes/link-category.html
         
     | 
| 
       75 
76 
     | 
    
         
             
            - _includes/mastodon-logo.svg
         
     | 
| 
       76 
77 
     | 
    
         
             
            - _includes/phone-logo.svg
         
     | 
| 
       77 
78 
     | 
    
         
             
            - _includes/pinterest-logo.svg
         
     |