Skip to content

Commit

Permalink
simpler pagination buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmags committed Apr 17, 2023
1 parent aeef501 commit b16bd3b
Show file tree
Hide file tree
Showing 9 changed files with 239 additions and 239 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
I"�{"source"=>"/home/bobby/Documents/websites/code", "destination"=>"/home/bobby/Documents/websites/code/_site", "collections_dir"=>"collections", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/:categories/:year/:month/:day/:title:output_ext"}, "projects"=>{"output"=>true}, "blog"=>{"output"=>true}}, "safe"=>false, "include"=>[".htaccess"], "exclude"=>[".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>["jekyll-feed", "jekyll-seo-tag"], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>nil, "show_dir_listing"=>false, "permalink"=>"date", "paginate_path"=>"/page:num/", "timezone"=>nil, "quiet"=>false, "verbose"=>false, "defaults"=>[], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false}, "title"=>"RCmags", "author"=>"random-internet-guy", "email"=>"memoryofatrufestival@gmail.com", "description"=>"blog n' stuff", "paginate"=>6, "github_username"=>"RCmags", "youtube_username"=>"XXXmags", "rcgroups_username_id"=>"189488", "show_excerpts"=>false, "minima"=>{"date_format"=>"%-d %b, %Y"}, "livereload_port"=>35729, "serving"=>true, "watch"=>true, "url"=>"http://localhost:4000"}:ET
I"�{"source"=>"/home/bobby/Documents/github-website/code", "destination"=>"/home/bobby/Documents/github-website/code/_site", "collections_dir"=>"collections", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/:categories/:year/:month/:day/:title:output_ext"}, "projects"=>{"output"=>true}, "blog"=>{"output"=>true}}, "safe"=>false, "include"=>[".htaccess"], "exclude"=>[".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>["jekyll-feed", "jekyll-seo-tag"], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>nil, "show_dir_listing"=>false, "permalink"=>"date", "paginate_path"=>"/page:num/", "timezone"=>nil, "quiet"=>false, "verbose"=>false, "defaults"=>[], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false}, "title"=>"RCmags", "author"=>"random-internet-guy", "email"=>"memoryofatrufestival@gmail.com", "description"=>"Projects and other things", "paginate"=>6, "github_username"=>"RCmags", "youtube_username"=>"XXXmags", "rcgroups_username_id"=>"189488", "google_analytics"=>true, "minima"=>{"date_format"=>"%-d %b, %Y"}, "livereload_port"=>35729, "serving"=>true, "watch"=>true, "url"=>"http://localhost:4000"}:ET
5 changes: 3 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: RCmags
author: random-internet-guy
email: memoryofatrufestival@gmail.com
description: blog n' stuff
description: Projects and other things

# index pagination
plugins:
Expand All @@ -24,7 +24,8 @@ github_username: RCmags
youtube_username: XXXmags
rcgroups_username_id: "189488"

show_excerpts: false # set to true to show excerpts on the homepage
# toggled
google_analytics: true

# Minima date format
# refer to http://shopify.github.io/liquid/filters/date/ if you want to customize this
Expand Down
4 changes: 3 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<head>
<!-- auto-generated tag -->
{% include google-analytics.html %}
{% if site.google_analytics %}
{% include google-analytics.html %}
{% endif %}

<!-- default -->
<meta charset="utf-8">
Expand Down
64 changes: 44 additions & 20 deletions _includes/paginator-buttons.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,47 @@
<div class="pagination">
<!-- Previous button -->
{% if paginator.previous_page %}
<a class="button_link" href="{{ paginator.previous_page_path }}">
&#9664;
</a>
{% else %}
<span class="button_null"> &#9664; </span>
{% endif %}
{% assign npages = paginator.total_pages %}

<div class="paginator-buttons">
<details>
<!-- button menu -->
<summary>

<!-- Next button -->
{% if paginator.next_page %}
<a class="button_link" href="{{ paginator.next_page_path }}">
&#9654;
</a>
{% else %}
<span class="button_null"> &#9654; </span>
{% endif %}
</div>
<!-- Previous button -->
{% if paginator.previous_page %}
<a class="button_link" href="{{ paginator.previous_page_path }}">
{% else %}
<a class="button_null">
{% endif %}
<svg style="height: 20px; width: 20px">
<polygon points="0,10 20,20 20,0">
</svg></a>

<!-- Goto button -->
{% if npages > 1 %}
<span class="label">{{ paginator.page }}/{{ paginator.total_pages }}</span>
{% endif %}

<!-- Pages -->
{% include paginator-goto.html %}

<!-- Next button -->
{% if paginator.next_page %}
<a class="button_link" href="{{ paginator.next_page_path }}">
{% else %}
<a class="button_null">
{% endif %}
<svg style="height: 20px; width: 20px">
<polygon points="20,10 0,20 0,0">
</svg></a>

</summary>

<!-- list -->
{% if npages > 1 %}
<div class="grid-container">
<a class="grid-item" href="{{ site.baseurl }}/">1</a>
{% for index in (2..npages) %}
<a class="grid-item" href="{{ site.baseurl }}/page{{ index }}">{{index}}</a>
{% endfor %}
</nav>
{% endif %}

</details>
</div>
18 changes: 0 additions & 18 deletions _includes/paginator-goto.html

This file was deleted.

3 changes: 2 additions & 1 deletion _sass/minima.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ $max-image-size: 650px;
"minima/syntax-highlighting",
"youtube",
"search-lunr",
"pagination",
"paginator-list",
"paginator-buttons",
"image-slider",
"projects",
"icons"
Expand Down
196 changes: 0 additions & 196 deletions _sass/pagination.scss

This file was deleted.

Loading

0 comments on commit b16bd3b

Please sign in to comment.