Skip to content

Commit

Permalink
Revert "Remove pagination, jumbotron, and change description"
Browse files Browse the repository at this point in the history
This reverts commit cce3897.
  • Loading branch information
dginovker committed Apr 22, 2023
1 parent 31364b0 commit ac7f789
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Site
name: "Sunwoo Kimchi"
title: "Sunwoo Kimchi"
description: "Gyeongsangbukdo Style Sunwoo Kimchi"
description: "Jekyll template, Medium styled, free for bloggers."
logo: 'assets/images/logo.png'
favicon: 'assets/images/logo.png'
baseurl: /mediumish-theme-jekyll
Expand Down Expand Up @@ -47,6 +47,10 @@ jekyll-archives:
permalinks:
category: '/category/:name/'

# Pagination
paginate: 6
paginate_path: /page:num/

# Other
markdown: kramdown

Expand Down
25 changes: 25 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,31 @@ <h1 class="sitetitle">{{ site.name }}</h1>

</div>

<!-- Categories Jumbotron
================================================== -->
<div class="jumbotron fortags">
<div class="d-md-flex h-100">
<div class="col-md-4 transpdark align-self-center text-center h-100">
<div class="d-md-flex align-items-center justify-content-center h-100">
<h2 class="d-md-block align-self-center py-1 font-weight-light">Explore <span class="d-none d-md-inline"></span></h2>
</div>
</div>
<div class="col-md-8 p-5 align-self-center text-center">
{% assign categories_list = site.categories %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
<a class="mt-1 mb-1" href="{{site.baseurl}}/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{ category | camelcase }} ({{ site.tags[category].size }})</a>
{% endfor %}
{% else %}
{% for category in categories_list %}
<a class="mt-1 mb-1" href="{{site.baseurl}}/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{ category[0] | camelcase }} ({{ category[1].size }})</a>
{% endfor %}
{% endif %}
{% assign categories_list = nil %}
</div>
</div>
</div>

<!-- Begin Footer
================================================== -->
<footer class="footer">
Expand Down
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,12 @@ <h2><span>All Stories</span></h2>

</section>

<!-- Pagination
================================================== -->
<div class="bottompagination">
<div class="pointerup"><i class="fa fa-caret-up"></i></div>
<span class="navigation" role="navigation">
{% include pagination.html %}
</span>
</div>

0 comments on commit ac7f789

Please sign in to comment.