diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index ec1cf33c3..000000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -2.6.3 diff --git a/README.md b/README.md index 1904a8275..1ed7506f7 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,16 @@ plainwhite: twitter: thelehhman github: thelehhman linkedIn: in/thelehhman # format: locale/username + rss: rss +``` + +** To enable RSS feed ** +Make sure that your projects Gemfile includes: + +``` +group :jekyll_plugins do + gem "jekyll-feed" +end ``` **Updating Placeholder Image** @@ -99,16 +109,65 @@ show_excerpts: true **Navigation** -Navigation can be enabled by adding the following line to your `_config.yml` +Navigation can be enabled by adding the following line to your `_config.yml`: + +```yaml +plainwhite: + navigation: + - title: My Work + url: "/my-work" + - title: Resume + url: "/resume" +``` + +**Multiline tagline** + +Tagline can be multiline in this way + +```yaml +plainwhite: + tagline: | + First Line. + + Second Line. + + Third Line. +``` + +**Archives** + +Archives can be enabled by adding the following line to enable the plugin in `_config.yml`: ```yaml -navigation: - - title: My Work - url: "/my-work" - - title: Resume - url: "/resume" +plugins: + - jekyll-archives ``` +To customize the config and fully enable, you need to add the following lines to your `_config.yml`: + +```yaml +jekyll-archives: + enabled: all + layout: archive + permalinks: + year: "/:year/" + month: "/:year/:month/" + day: "/:year/:month/:day/" + tag: "/tag/:name/" + category: "/category/:name/" +``` + +To read more information on how to customize and enable/disable archive types, SEE: https://github.com/jekyll/jekyll-archives. + +In order to add support for the category archive type, you must create a `category.html` in your project root, and add this content: + +```yaml +--- +layout: categories +permalink: /categories/ +title: Categories +--- + ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/thelehhman/plainwhite-jekyll. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. diff --git a/_config.yml b/_config.yml index da5daba27..547fbacad 100644 --- a/_config.yml +++ b/_config.yml @@ -20,9 +20,9 @@ plainwhite: # generate social links in footer social_links: twitter: thelehhman - github: thelehhman + github: thelehhman linkedIn: in/thelehhman - rss: rss + # rss: rss # dribbble: jekyll # facebook: jekyll # flickr: jekyll @@ -35,7 +35,6 @@ plainwhite: # telegram: jekyll # googleplus: +jekyll # microdotblog: jekyll - # Mastodon instances # mastodon: # - username: jekyll @@ -53,4 +52,6 @@ theme: plainwhite plugins: - jekyll-seo-tag -# - jekyll-feed \ No newline at end of file + - jekyll-menus + # - jekyll-archives + # - jekyll-feed diff --git a/_includes/post.html b/_includes/post.html new file mode 100644 index 000000000..e74d67dfa --- /dev/null +++ b/_includes/post.html @@ -0,0 +1,23 @@ +
  • + {%- assign date_format = site.plainwhite.date_format | default: "%b %-d, %Y" + -%} + +

    {{ post.title | escape }}

    +
    +
    + + +
    +
    + {%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%} +
    +
  • diff --git a/_layouts/archive.html b/_layouts/archive.html new file mode 100644 index 000000000..3d3e68273 --- /dev/null +++ b/_layouts/archive.html @@ -0,0 +1,13 @@ +--- +layout: default +title: Archives +--- + + diff --git a/_layouts/categories.html b/_layouts/categories.html new file mode 100644 index 000000000..a527b029d --- /dev/null +++ b/_layouts/categories.html @@ -0,0 +1,18 @@ +--- +layout: default +title: Categories +--- + + diff --git a/_layouts/default.html b/_layouts/default.html index 970b72371..a57446bb2 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,7 +7,7 @@
    {{ site.plainwhite.name }} -

    +

    {{ site.plainwhite.name }}

    {{ site.plainwhite.tagline }}

    @@ -15,7 +15,7 @@

    {%- if site.plainwhite.social_links.github -%}
  • - +
  • {%- endif -%} @@ -33,15 +33,24 @@

    {%- endif -%} + {%- if site.plainwhite.social_links.rss -%} + +
  • + +
  • +
    + {%- endif -%} - {%- if site.plainwhite.navigation -%} + {%- if site.menus.main -%} diff --git a/_layouts/home.html b/_layouts/home.html index 88bfa8df3..32b87ca70 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -5,9 +5,7 @@ {%- if page.title -%}

    {{ page.title }}

    {%- endif -%} - {{ content }} - {%- if site.posts.size > 0 -%} - - {%- endif -%} diff --git a/_sass/ext/_fonts.scss b/_sass/ext/_fonts.scss index bebd61965..775605f31 100644 --- a/_sass/ext/_fonts.scss +++ b/_sass/ext/_fonts.scss @@ -1,11 +1,11 @@ @font-face { - font-family: 'fontello'; - src: url('../font/fontello.eot?26793073'); - src: url('../font/fontello.eot?26793073#iefix') format('embedded-opentype'), - url('../font/fontello.woff2?26793073') format('woff2'), - url('../font/fontello.woff?26793073') format('woff'), - url('../font/fontello.ttf?26793073') format('truetype'), - url('../font/fontello.svg?26793073#fontello') format('svg'); + font-family: "fontello"; + src: url("../font/fontello.eot?26793073"); + src: url("../font/fontello.eot?26793073#iefix") format("embedded-opentype"), + url("../font/fontello.woff2?26793073") format("woff2"), + url("../font/fontello.woff?26793073") format("woff"), + url("../font/fontello.ttf?26793073") format("truetype"), + url("../font/fontello.svg?26793073#fontello") format("svg"); font-weight: normal; font-style: normal; } @@ -19,43 +19,55 @@ } } */ - - [class^="icon-"]:before, [class*=" icon-"]:before { + +[class^="icon-"]:before, +[class*=" icon-"]:before { font-family: "fontello"; font-style: normal; font-weight: normal; speak: none; - + display: inline-block; text-decoration: inherit; width: 1em; - margin-right: .2em; + margin-right: 0.2em; text-align: center; /* opacity: .8; */ - + /* For safety - reset parent styles, that can break glyph codes*/ font-variant: normal; text-transform: none; - + /* fix buttons height, for twitter bootstrap */ line-height: 1em; - + /* Animation center compensation - margins should be symmetric */ /* remove if not needed */ - margin-left: .2em; - + margin-left: 0.2em; + /* you can be more comfortable with increased icons size */ /* font-size: 120%; */ - + /* Font smoothing. That was taken from TWBS */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - + /* Uncomment for 3D effect */ /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ } - -.icon-calendar:before { content: '\e800'; } /* '' */ -.icon-github-circled:before { content: '\f09b'; } /* '' */ -.icon-twitter-squared:before { content: '\f304'; } /* '' */ -.icon-linkedin-squared:before { content: '\f30c'; } /* '' */ \ No newline at end of file + +.icon-github-circled:before { + content: "\f09b"; +} /* '' */ +.icon-rss-squared:before { + content: "\f143"; +} /* '' */ +.icon-github-squared:before { + content: "\f300"; +} /* '' */ +.icon-twitter-squared:before { + content: "\f304"; +} /* '' */ +.icon-linkedin-squared:before { + content: "\f30c"; +} /* '' */ diff --git a/_sass/plain.scss b/_sass/plain.scss index a68b9df36..573a2822a 100644 --- a/_sass/plain.scss +++ b/_sass/plain.scss @@ -98,12 +98,19 @@ main { font-size: 22px; margin-top: 17px; color: #aaa; + white-space: pre-wrap; + line-height: normal; } img { max-width: 150px; } } } +#title { + a { + text-decoration: none; + } +} .social { list-style-type: none; padding: 0; @@ -132,6 +139,7 @@ main { a { display: block; + font-family: 'Merriweather'; text-align: center; padding: 1rem 0; text-decoration: none; diff --git a/assets/.DS_Store b/assets/.DS_Store deleted file mode 100644 index 214ed47e9..000000000 Binary files a/assets/.DS_Store and /dev/null differ diff --git a/assets/font/fontello.eot b/assets/font/fontello.eot old mode 100755 new mode 100644 index 3cf8e9bb0..89761a6a1 Binary files a/assets/font/fontello.eot and b/assets/font/fontello.eot differ diff --git a/assets/font/fontello.svg b/assets/font/fontello.svg old mode 100755 new mode 100644 index 65bbf00c0..f9181a6fb --- a/assets/font/fontello.svg +++ b/assets/font/fontello.svg @@ -1,15 +1,17 @@ -Copyright (C) 2019 by original authors @ fontello.com +Copyright (C) 2020 by original authors @ fontello.com - - + + + + diff --git a/assets/font/fontello.ttf b/assets/font/fontello.ttf old mode 100755 new mode 100644 index a628c2450..a73824c47 Binary files a/assets/font/fontello.ttf and b/assets/font/fontello.ttf differ diff --git a/assets/font/fontello.woff b/assets/font/fontello.woff old mode 100755 new mode 100644 index 8c5944d86..4b424a342 Binary files a/assets/font/fontello.woff and b/assets/font/fontello.woff differ diff --git a/assets/font/fontello.woff2 b/assets/font/fontello.woff2 old mode 100755 new mode 100644 index e31677939..41fd98be4 Binary files a/assets/font/fontello.woff2 and b/assets/font/fontello.woff2 differ diff --git a/plainwhite.gemspec b/plainwhite.gemspec index 47e6e9fe5..a2ebcd547 100644 --- a/plainwhite.gemspec +++ b/plainwhite.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "plainwhite" - spec.version = "0.9" + spec.version = "0.12" spec.authors = ["Samarjeet"] spec.email = ["thelehhman@gmail.com"] @@ -14,6 +14,8 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency "jekyll", "~> 3.8.6" spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.6.1" + spec.add_runtime_dependency "jekyll-archives", "~> 2.2.1" + spec.add_runtime_dependency "jekyll-menus", "~> 0.6.1" spec.add_development_dependency "bundler", "> 1.16" spec.add_development_dependency "rake", "~> 12.0"