diff --git a/Gemfile b/Gemfile index 9d2f64d..26090fb 100644 --- a/Gemfile +++ b/Gemfile @@ -8,10 +8,10 @@ source "https://rubygems.org" # # This will help ensure the proper Jekyll version is running. # Happy Jekylling! -gem "jekyll", "~> 3.8.4" +gem "jekyll", "~> 3.8.5" # This is the default theme for new Jekyll sites. You may change this to anything you like. -gem "minima", "~> 2.0" +gem "minima", "~> 2.5.0" # If you want to use GitHub Pages, remove the "gem "jekyll"" above and # uncomment the line below. To upgrade, run `bundle update github-pages`. @@ -19,7 +19,9 @@ gem "minima", "~> 2.0" # If you have any plugins, put them here! group :jekyll_plugins do - gem "jekyll-feed", "~> 0.6" + gem "jekyll-feed", "~> 0.11.0" + gem "jekyll-archives", "~> 2.1.1" + gem "jekyll-seo-tag", "~> 2.5.0" end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/Gemfile.lock b/Gemfile.lock index 2aaf2ca..b761daa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -27,7 +27,9 @@ GEM pathutil (~> 0.9) rouge (>= 1.7, < 4) safe_yaml (~> 1.0) - jekyll-feed (0.10.0) + jekyll-archives (2.1.1) + jekyll (>= 2.4) + jekyll-feed (0.11.0) jekyll (~> 3.3) jekyll-sass-converter (1.5.2) sass (~> 3.4) @@ -65,10 +67,12 @@ PLATFORMS ruby DEPENDENCIES - jekyll (~> 3.8.4) - jekyll-feed (~> 0.6) - minima (~> 2.0) + jekyll (~> 3.8.5) + jekyll-archives (~> 2.1.1) + jekyll-feed (~> 0.11.0) + jekyll-seo-tag (~> 2.5.0) + minima (~> 2.5.0) tzinfo-data BUNDLED WITH - 1.16.2 + 1.16.6 diff --git a/_config.yml b/_config.yml index 3758dfb..7df92e0 100644 --- a/_config.yml +++ b/_config.yml @@ -24,15 +24,17 @@ logo: "/files/logo/c4l_logo/c4l_logo.RGB_400px.png" logo_alt: "Code4Lib" include: ['_pages'] +# Minima theme's menu builder. Pages added to header_pages appear in navigation. header_pages: - about.md + # - music last.fm's group pages taken down # - https://shop.spreadshirt.com/code4lib/ # external links are in _includes/header.html - +# social links twitter_username: code4lib github_username: code4lib youtube_username: code4lib @@ -43,6 +45,25 @@ markdown: kramdown theme: minima plugins: - jekyll-feed + - jekyll-archives + - jekyll-seo-tag + +# jekyll-archives configuration +# See https://github.com/jekyll/jekyll-archives/blob/master/docs/configuration.md +jekyll-archives: + enabled: all # The string 'all', or an array of enabled archive types + layouts: # Specify layouts for each type of archive + year: year + month: month + day: day + category: archive + tag: archive + permalinks: # Specify permalinks for archive pages + year: 'archives/:year/' + month: 'archives/:year/:month/' + day: 'archives/:year/:month/:day/' + tag: '/tag/:name/' + category: '/category/:name/' # Exclude from processing. # The following items will not be processed, by default. Create a custom list @@ -55,3 +76,6 @@ plugins: # - vendor/cache/ # - vendor/gems/ # - vendor/ruby/ + +# keep: +# - files \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index 68d02de..7c5db67 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,40 +1,41 @@ - + diff --git a/_layouts/archive.html b/_layouts/archive.html new file mode 100644 index 0000000..27ed772 --- /dev/null +++ b/_layouts/archive.html @@ -0,0 +1,15 @@ +--- +layout: default +--- + + +

Posts with {{ page.type }} '{{ page.title }}'.

+ + \ No newline at end of file diff --git a/_layouts/day.html b/_layouts/day.html new file mode 100644 index 0000000..f6cb605 --- /dev/null +++ b/_layouts/day.html @@ -0,0 +1,15 @@ +--- +layout: default +--- + + +

Archive of posts from {{ page.date | date: "%B %-d, %Y" }}

+ + \ No newline at end of file diff --git a/_layouts/month.html b/_layouts/month.html new file mode 100644 index 0000000..05f5744 --- /dev/null +++ b/_layouts/month.html @@ -0,0 +1,15 @@ +--- +layout: default +--- + + +

Archive of posts from {{ page.date | date: "%B %Y" }}

+ + \ No newline at end of file diff --git a/_layouts/year.html b/_layouts/year.html new file mode 100644 index 0000000..2f8e413 --- /dev/null +++ b/_layouts/year.html @@ -0,0 +1,15 @@ +--- +layout: default +--- + + +

Archive of posts from {{ page.date | date: "%Y" }}

+ + \ No newline at end of file diff --git a/_pages/about.md b/_pages/about.md index 08b1461..d2d8582 100644 --- a/_pages/about.md +++ b/_pages/about.md @@ -1,14 +1,8 @@ --- -excerpt: "code4lib isn't entirely about code or libraries. It is a volunteer-driven - collective of hackers, designers, architects, curators, catalogers, artists and - instigators from around the world, who largely work for and with libraries, archives - and museums on technology \"stuff.\" It started in the fall of 2003 as a mailing - list when a group of library programmers decided to create an overarching community - agnostic towards any particular language or technology. \r\n\r\nCode4Lib is dedicated - to providing a harassment-free community experience for everyone regardless of gender, - sexual orientation, disability, physical appearance, body size, race, or religion. - For more information, please see our emerging CodeofConduct4Lib.\r\n\r\n" -categories: [] +excerpt: "code4lib isn't entirely about code or libraries. It is a volunteer-driven collective of hackers, designers, architects, curators, catalogers, artists and instigators from around the world, who largely work for and with libraries, archives and museums on technology \"stuff.\" It started in the fall of 2003 as a mailing list when a group of library programmers decided to create an overarching community agnostic towards any particular language or technology. \r\n\r\nCode4Lib is dedicated to providing a harassment-free community experience for everyone regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. + +For more information, please see our emerging CodeofConduct4Lib.\r\n\r\n" +categories: layout: page title: About permalink: /about/ diff --git a/_pages/archive.md b/_pages/archive.md new file mode 100644 index 0000000..74b5102 --- /dev/null +++ b/_pages/archive.md @@ -0,0 +1,46 @@ +--- +excerpt: "Archived posts by category and date." +categories: archive, site, admin +layout: page +title: Archive +permalink: /archive/ +created: +legacy-date: +--- + +

Posts in a given category can be reached at:

+

/category/[name of category]

+

Posts in a given date range can be reach at:

+

/archives/[year]
+/archives/[year]/[month]
+/archives/[year]/[month]/[day]

+ +
+

Post categories with corresponding number of posts:

+ +
+ +
+

Posts by year with corresponding number of posts:

+ +
diff --git a/_sass/minima.scss b/_sass/minima.scss index 7695d32..840e5f4 100644 --- a/_sass/minima.scss +++ b/_sass/minima.scss @@ -43,15 +43,17 @@ $on-laptop: 800px !default; text-align: center; } + + // Use media queries like this: // @include media-query($on-palm) { -// .wrapper { -// padding-right: $spacing-unit / 2; -// padding-left: $spacing-unit / 2; -// } -// } -@mixin media-query($device) { - @media screen and (max-width: $device) { + // .wrapper { + // padding-right: $spacing-unit / 2; + // padding-left: $spacing-unit / 2; + // } + // } + @mixin media-query($device) { + @media screen and (max-width: $device) { @content; } } @@ -62,7 +64,32 @@ $on-laptop: 800px !default; // Import partials. @import - "minima/base", +"minima/base", "minima/layout", "minima/syntax-highlighting" -; + ; + +// Custom + +// Piped List +.piped-list { + position: relative; + overflow: hidden; +} +.piped-list ul { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + margin: 1em; +} +.piped-list ul li { + list-style: none; + margin: .25em 0; + padding: 0; + text-align: center; +} +.piped-list li + li::before { + content: "|"; + margin: 0 .5em; +} \ No newline at end of file diff --git a/about.md b/about.md deleted file mode 100644 index 8b4e0b2..0000000 --- a/about.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -layout: page -title: About -permalink: /about/ ---- - -This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/) - -You can find the source code for Minima at GitHub: -[jekyll][jekyll-organization] / -[minima](https://github.com/jekyll/minima) - -You can find the source code for Jekyll at GitHub: -[jekyll][jekyll-organization] / -[jekyll](https://github.com/jekyll/jekyll) - - -[jekyll-organization]: https://github.com/jekyll