Skip to content

Commit

Permalink
paginator and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bamr87 committed May 18, 2024
1 parent 30f4d4f commit 1455292
Show file tree
Hide file tree
Showing 24 changed files with 185 additions and 68 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ group :jekyll_plugins do
gem 'jekyll-feed', "~> 0.17"
gem 'jekyll-sitemap' , "~> 1.4.0"
gem 'jekyll-seo-tag', "~> 2.8.0"
gem 'jekyll-paginate', '~> 1.1'
# gem 'jekyll-redirect-from'
# gem 'jekyll-paginate'
# gem 'jemoji' # Doesn't work for some reason
end

Expand Down
3 changes: 3 additions & 0 deletions TODO/todo-tree-20240515-2103.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
draft: draft
---
└─ it-journey
├─ _data
│ └─ navigation-old.yml
Expand Down
11 changes: 9 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ plugins:
- github-pages
- jekyll-feed
- jekyll-sitemap
- jekyll-seo-tag
- jekyll-paginate
# - jekyll-assets
# - jekyll-algolia
# - jekyll-mermaid # https://mermaidjs.github.io/
Expand Down Expand Up @@ -255,6 +257,11 @@ collections:

permalink: pretty

# pagination https://jekyllrb.com/docs/pagination/

paginate: 10
paginate_path: "/pages/:num/"

# Defaults https://jekyllrb.com/docs/configuration/front-matter-defaults/

nav-file: '_data/navigation/map.yml'
Expand All @@ -273,8 +280,8 @@ defaults:
share: true
related: true
toc: true
# sidebar:
# nav: main
sidebar:
nav: main
permalink: /:collection/:name/

# pages
Expand Down
6 changes: 0 additions & 6 deletions _data/navigation/cooking.yml

This file was deleted.

38 changes: 19 additions & 19 deletions _data/navigation/docs.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
- title: Setup
sublinks:
- title: "Configuration"
- title: Configuration
url: /docs/configuration
- title: "Overriding Theme Defaults"
- title: Overriding Theme Defaults
url: /docs/overriding-theme-defaults
- title: Features
sublinks:
- title: "Navigation"
- title: Navigation
url: /docs/navigation
- title: "UI Text"
- title: UI Text
url: /docs/ui-text
- title: "Authors"
- title: Authors
url: /docs/authors
- title: "Layouts"
- title: Layouts
url: /docs/layouts
- title: Programming
sublinks:
- title: Liquid
url: /
source: null
- title: Headless CMS
sublinks:
- title: "Working with Posts"
- title: Working with Posts
url: /docs/posts
- title: "Working with Collections"
- title: Working with Collections
url: /docs/collections
- title: "Helpers"
- title: Helpers
url: /docs/helpers
- title: "Utility Classes"
- title: Utility Classes
url: /docs/utility-classes
- title: Programming
sublinks:
- title: "Liquid"
url: /
source:
- title: Design
sublinks:
- title: "Stylesheets"
- title: Stylesheets
url: /docs/stylesheets
- title: "JavaScript"
- title: JavaScript
url: /docs/javascript
- title: Releases
sublinks:
- title: "History"
url: /docs/history
- title: History
url: /docs/history
11 changes: 9 additions & 2 deletions _data/navigation/home.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- title: "Home"
- title: Home
icon: bi-house
url: /home
url: /home
sublinks:
- title: Style
url: /home/style/
- title: Roadmap
icon: bi-map
url: /roadmap

10 changes: 6 additions & 4 deletions _data/navigation/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
- title: Journey
url: /posts
sublinks:
- title: home
- title: Home
url: /posts
- title: articles
- title: Articles
url: /posts/articles
- title: Quests
url: /quests
- title: Pages
url: /pages/
- title: Library
url: /docs/
sublinks:
Expand All @@ -24,12 +26,12 @@
- title: Notes
url: /notes
sublinks:
- title: home
- title: Home
url: /notes
- title: About
url: /about/
sublinks:
- title: home
- title: Home
url: /about
- title: Config
url: /about/config
Expand Down
10 changes: 5 additions & 5 deletions _data/navigation/sub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- title: about
url: /about/
sublinks:
- title: home
url: /about/home/
- icon: test
url: asdf/asdf
sublinks: []
title: tes

2 changes: 1 addition & 1 deletion _layouts/collection.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: home
layout: default
---

{{ content }}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: root
---

<!-- Home Layout -->
Expand Down
20 changes: 20 additions & 0 deletions _layouts/journals.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ <h1 id="page-title" class="page__title">{{ page.title }}</h1>
{% endunless %}
{{ content }}
</div>

<nav aria-label="Page navigation">
<ul class="pagination pagination-lg justify-content-center">
<li class="page-item">
{% if paginator.previous_page %}
<a class="page-link" href="{{ paginator.previous_page_path }}">Previous</a>
{% else %}
<a class="page-link" href="#" aria-disabled="true">Previous</a>
{% endif %}
</li>
<li class="page-item">
{% if paginator.next_page %}
<a class="page-link" href="{{ paginator.next_page_path }}">Next</a>
{% else %}
<a class="page-link" href="#" aria-disabled="true">Next</a>
{% endif %}
</li>
</ul>
</nav>

</div>

<!-- giscus app - Feature # FR000001 -->
Expand Down
2 changes: 1 addition & 1 deletion _layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<div class="offcanvas">
{% include sidebar-left.html %}
</div>

<div class="container-xl pt-5">

{{ content }}
</div>

Expand Down
18 changes: 18 additions & 0 deletions frontmatter.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,24 @@
"singleEntry": false,
"type": "navigation"
},
{
"id": "docsNav",
"title": "Docs Navigation",
"file": "[[workspace]]/_data/navigation/docs.yml",
"fileType": "yaml",
"labelField": "title",
"singleEntry": false,
"type": "navigation"
},
{
"id": "homeNav",
"title": "Home Navigation",
"file": "[[workspace]]/_data/navigation/home.yml",
"fileType": "yaml",
"labelField": "title",
"singleEntry": false,
"type": "navigation"
},
{
"id": "subNav",
"title": "Sub Navigation",
Expand Down
5 changes: 4 additions & 1 deletion home.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ title: Home
author: bamr87
description: This is an overall outline of this site, and a place to start or come back to when lost.
purpose: To build a platform for learning and share knowledge and tools
layout: home
layout: collection
keywords: Home, Zer0, IT-Journey, programming, development
permalink: /home/
collection: posts
sidebar:
nav: home
lastmod: 2024-05-15T03:54:48.681Z
TODO:
- Fix the copy button on code snipets
Expand Down
6 changes: 2 additions & 4 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ lastmod: 2024-05-08T04:53:36.889Z
slug: /
---

<div id="particles-js" class="z-n1 position-absolute"></div>

# Welcome to IT-Journey.dev: Your Full Stack Development Quest Begins Here!

Embark on an epic adventure through the realms of full stack development, where coding skills empower you to build anything from the ground up. At IT-Journey.dev, we believe learning should be a quest - full of challenges, mysteries, and achievements. Are you ready to become a Full Stack Wizard?
Expand Down Expand Up @@ -67,10 +69,6 @@ Arm yourself with a selection of resources and tools designed to aid your quest.

This landing page sets the tone for a learning adventure, inviting users to explore full stack development in a fun and engaging way. Feel free to tweak the content however you see fit, or even create your own landing page to better fit your site's theme and structure. Good luck on your quest to educate the next generation of Full Stack Wizards!

Click on these particales for fun.

<div id="particles-js" class=""></div>

## Powered BY

{% for power in site.powered_by %}
Expand Down
3 changes: 1 addition & 2 deletions pages/_posts/2000-01-01-articles.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ layout: collection
description: Listing of articles
draft: true
sort_by: date
permalink: /posts/articles
lastmod: 2024-05-15T04:02:25.605Z
lastmod: 2024-05-18T05:29:30.499Z
type: default
date: 2024-05-15T03:26:37.801Z
preview: null
Expand Down
5 changes: 2 additions & 3 deletions pages/_posts/2000-01-01-index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
title: posts
title: Posts (~) Index
author: null
layout: collection
permalink: /posts/
description: null
collection: posts
lastmod: 2024-05-16T02:57:55.453Z
lastmod: 2024-05-18T05:10:07.662Z
draft: true
sidebar: searchCats
sort_by: date
Expand Down
3 changes: 1 addition & 2 deletions pages/_posts/2022-05-09-javascript-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ title: test
author: null
layout: javascript
description: null
permalink: posts/js-test/
categories:
- Posts
sidebar:
nav: docs
toc: true
toc_sticky: true
date: 2022-05-09T17:55:08.609Z
lastmod: 2022-05-09T18:00:40.013Z
lastmod: 2024-05-18T05:29:09.090Z
draft: true
---
3 changes: 1 addition & 2 deletions pages/_posts/2024-05-16-fight-with-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ snippet: null
author: bamr87
layout: null
keywords: {}
lastmod: 2024-05-16T19:50:28.913Z
lastmod: 2024-05-18T05:29:21.209Z
slug: null
permalink: null
attachments: ""
type: posts
---
Expand Down
5 changes: 2 additions & 3 deletions pages/_posts/reflections/2021-10-27-build-die-repeat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
title: Build-Destroy-Repeat
author: null
description: null
permalink: posts/bdr/
categories:
- Posts
sidebar:
nav: docs
toc: true
toc_sticky: true
date: '2021-10-27T21:42:21.287Z'
lastmod: '2022-01-09T04:33:38.245Z'
date: 2021-10-27T21:42:21.287Z
lastmod: 2024-05-18T05:28:29.561Z
draft: false
---

Expand Down
5 changes: 2 additions & 3 deletions pages/_posts/reflections/2021-11-08-it-purpose.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
title: IT Purpose
author: null
description: null
permalink: 'posts/purpose/'
categories:
- Posts
sidebar:
nav: posts
toc: true
toc_sticky: true
date: '2021-11-08T19:50:20.168Z'
lastmod: '2021-11-08T19:52:00.979Z'
date: 2021-11-08T19:50:20.168Z
lastmod: 2024-05-18T05:57:12.990Z
draft: true
---
# IT-Manifesto
Expand Down
11 changes: 7 additions & 4 deletions pages/_quests/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
title: Init World
title: Quests (~) Index
layout: collection
keywords: init, world
keywords:
- init
- hello world
catagories: quests
description: This is the init world.
description: This is an index of quests that are written, or being written.
permalink: /quests/
lastmod: 2024-03-13T01:15:03.334Z
lastmod: 2024-05-18T05:57:24.042Z
draft: draft
---

# init_world
Expand Down
Loading

0 comments on commit 1455292

Please sign in to comment.