From 87b4fc52bfff1a08b267aff3c2d490279831647c Mon Sep 17 00:00:00 2001 From: Jonathan Partain Date: Fri, 17 Nov 2023 00:27:07 +0100 Subject: [PATCH 1/3] Added a communityposts collection, and set up a basic sample post on said page --- Gemfile | 5 ++++- _communityposts/test_post.md | 24 ++++++++++++++++++++++++ _config.yml | 21 +++++++++++++++++++++ _data/theme.yml | 1 + communityposts.md | 7 +++++++ index.html | 12 ++++++++++++ index.md | 7 ------- 7 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 _communityposts/test_post.md create mode 100644 communityposts.md create mode 100644 index.html delete mode 100644 index.md diff --git a/Gemfile b/Gemfile index 764a465..5344809 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,9 @@ source "https://rubygems.org" # Jekyll Version gem "jekyll", "~> 3.9.3" # This is the default theme for new Jekyll sites. -gem "github-pages", group: :jekyll_plugins +gem "github-pages", group: :jekyll_plugins do + gem "jekyll_paginate" +end + gem "webrick" gem "rexml" diff --git a/_communityposts/test_post.md b/_communityposts/test_post.md new file mode 100644 index 0000000..e21c212 --- /dev/null +++ b/_communityposts/test_post.md @@ -0,0 +1,24 @@ +--- +title: This is a test post +# optional alternate title to replace page.title at the top of the page +alt_title: test alt title +# optional sub-title below the page title +sub_title: sub title +introduction: | + intro text goes here + +#image: # url to a hero image + +author: + name: john doe +comments: false +collection: communityposts +--- + + +this is a simple test post + +## title can go here + - list item one + - list item two + diff --git a/_config.yml b/_config.yml index dc2de13..31ed43c 100644 --- a/_config.yml +++ b/_config.yml @@ -9,3 +9,24 @@ instagram_username: "skip.gu" linkedin_username: "company/skip-student-association" discord_link: "https://tinyurl.com/skip-discord" google_analytics: G-96M5M9TCM7 + +paginate: 10 +paginate_path: /page:num/ + +plugins: + - jekyll-paginate + +collections: + communityposts: + output: true + permalink: /:collection/:path/ + +defaults: + - scope: + path: "_communityposts" + type: communityposts + values: + layout: posts + read_time: true + + diff --git a/_data/theme.yml b/_data/theme.yml index 1832fbb..f34f53e 100644 --- a/_data/theme.yml +++ b/_data/theme.yml @@ -3,3 +3,4 @@ skin: night # default, night, plum, sea, soft, steel navigation_pages: - join_skip.md - membership.md + - communityposts.md diff --git a/communityposts.md b/communityposts.md new file mode 100644 index 0000000..a34171d --- /dev/null +++ b/communityposts.md @@ -0,0 +1,7 @@ +--- +title: Community Posts +layout: collection +permalink: /communityposts/ +collection: communityposts +entries_layout: list #list (default), grid +--- diff --git a/index.html b/index.html new file mode 100644 index 0000000..5b1ad9c --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ +--- +layout: home +paginate: true +alt_title: "SKIP - Student Association" +sub_title: "SKIP - Student Association" +introduction: | + SKIP, which stands for **"The Student Association for Knowledge in Informatics and Programming",** is a vibrant community dedicated to enriching the academic and social experiences of students at the **IT faculty of Gothenburg University.** + + SKIP was founded in 1989 by a group of System Science students at the IT Faculty of the University of Gothenburg. Our mission is to offer students opportunities to socialize with people from different programs as a way to create an informal learning environment, where knowledge in IT can be shared. + + The primary objective of SKIP is to deliver events that enhance the study experience of students within Göta Studentkår. By organizing diverse, engaging, and impactful events, SKIP aims to create a vibrant and supportive student community, where academic and personal growth are fostered. +--- diff --git a/index.md b/index.md deleted file mode 100644 index 5bdaad6..0000000 --- a/index.md +++ /dev/null @@ -1,7 +0,0 @@ -## SKIP - Student Association - -SKIP, which stands for **"The Student Association for Knowledge in Informatics and Programming",** is a vibrant community dedicated to enriching the academic and social experiences of students at the **IT faculty of Gothenburg University.** - -SKIP was founded in 1989 by a group of System Science students at the IT Faculty of the University of Gothenburg. Our mission is to offer students opportunities to socialize with people from different programs as a way to create an informal learning environment, where knowledge in IT can be shared. - -The primary objective of SKIP is to deliver events that enhance the study experience of students within Göta Studentkår. By organizing diverse, engaging, and impactful events, SKIP aims to create a vibrant and supportive student community, where academic and personal growth are fostered. From 3ad6552808bee63b22f5af8726763f4f642ae3f2 Mon Sep 17 00:00:00 2001 From: michalspano Date: Fri, 17 Nov 2023 15:27:02 +0100 Subject: [PATCH 2/3] #24 Add `permalink` to subpages This is to ensure consistency among the pages. Furthermore, the `.html` extension is omitted in the build process, so the `permalink` is necessary to ensure that the links work as expected. --- index.html | 1 + join_skip.md | 1 + membership.md | 1 + 3 files changed, 3 insertions(+) diff --git a/index.html b/index.html index 5b1ad9c..5509f86 100644 --- a/index.html +++ b/index.html @@ -9,4 +9,5 @@ SKIP was founded in 1989 by a group of System Science students at the IT Faculty of the University of Gothenburg. Our mission is to offer students opportunities to socialize with people from different programs as a way to create an informal learning environment, where knowledge in IT can be shared. The primary objective of SKIP is to deliver events that enhance the study experience of students within Göta Studentkår. By organizing diverse, engaging, and impactful events, SKIP aims to create a vibrant and supportive student community, where academic and personal growth are fostered. +permalink: / --- diff --git a/join_skip.md b/join_skip.md index cf7b33e..88ecf5c 100644 --- a/join_skip.md +++ b/join_skip.md @@ -1,6 +1,7 @@ --- title: Join SKIP layout: post +permalink: /join-skip/ --- ## Join Us: Become a SKIP Member! diff --git a/membership.md b/membership.md index 4af04e4..301cbba 100644 --- a/membership.md +++ b/membership.md @@ -1,6 +1,7 @@ --- title: Membership layout: post +permalink: /membership/ --- ## SKIP Student Association Structure Overview From 0aa3fe4d8fabbe280b00a92861050f516bb2f39e Mon Sep 17 00:00:00 2001 From: Jonathan Partain Date: Fri, 17 Nov 2023 16:02:26 +0100 Subject: [PATCH 3/3] Changed index.html to use html to display text instead of yaml header. changed community posts to be just 'posts', and modified the permalinks --- _communityposts/{test_post.md => example_post.md} | 0 _config.yml | 2 +- _data/theme.yml | 2 +- communityposts.md | 4 ++-- index.html | 12 ++++++------ 5 files changed, 10 insertions(+), 10 deletions(-) rename _communityposts/{test_post.md => example_post.md} (100%) diff --git a/_communityposts/test_post.md b/_communityposts/example_post.md similarity index 100% rename from _communityposts/test_post.md rename to _communityposts/example_post.md diff --git a/_config.yml b/_config.yml index 31ed43c..2a69345 100644 --- a/_config.yml +++ b/_config.yml @@ -19,7 +19,7 @@ plugins: collections: communityposts: output: true - permalink: /:collection/:path/ + permalink: /posts/:path/ defaults: - scope: diff --git a/_data/theme.yml b/_data/theme.yml index f34f53e..20e0af1 100644 --- a/_data/theme.yml +++ b/_data/theme.yml @@ -3,4 +3,4 @@ skin: night # default, night, plum, sea, soft, steel navigation_pages: - join_skip.md - membership.md - - communityposts.md + # - communityposts.md diff --git a/communityposts.md b/communityposts.md index a34171d..abd2e82 100644 --- a/communityposts.md +++ b/communityposts.md @@ -1,7 +1,7 @@ --- -title: Community Posts +title: Posts layout: collection -permalink: /communityposts/ +permalink: /posts/ collection: communityposts entries_layout: list #list (default), grid --- diff --git a/index.html b/index.html index 5509f86..d5de622 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,11 @@ paginate: true alt_title: "SKIP - Student Association" sub_title: "SKIP - Student Association" -introduction: | - SKIP, which stands for **"The Student Association for Knowledge in Informatics and Programming",** is a vibrant community dedicated to enriching the academic and social experiences of students at the **IT faculty of Gothenburg University.** - - SKIP was founded in 1989 by a group of System Science students at the IT Faculty of the University of Gothenburg. Our mission is to offer students opportunities to socialize with people from different programs as a way to create an informal learning environment, where knowledge in IT can be shared. - - The primary objective of SKIP is to deliver events that enhance the study experience of students within Göta Studentkår. By organizing diverse, engaging, and impactful events, SKIP aims to create a vibrant and supportive student community, where academic and personal growth are fostered. permalink: / --- + +

SKIP, which stands for "The student Association for Knowledge in Informatics and Programming", is a vibrant community dedicated to enriching the academic and social experiences of students at the IT faculty of Gothenburg University.

+ +

SKIP was founded in 1989 by a group of System Science students at the IT Faculty of the University of Gothenburg. Our mission is to offer students opportunities to socialize with people from different programs as a way to create an informal learning environment, where knowledge in IT can be shared.

+ +

The primary objective of SKIP is to deliver events that enhance the study experience of students within Göta Studentkår. By organizing diverse, engaging, and impactful events, SKIP aims to create a vibrant and supportive student community, where academic and personal growth are fostered.