diff --git a/404.html b/404.html new file mode 100644 index 0000000..cdc90db --- /dev/null +++ b/404.html @@ -0,0 +1,34 @@ +--- +title: Page Not Found +--- + + + + {%- include head.html -%} + + + +

404

+

Page not found.

+ + \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..bb94df8 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +source "https://rubygems.org" +gemspec diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..432a204 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2019 Samarjeet + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..4198112 --- /dev/null +++ b/README.md @@ -0,0 +1,146 @@ +# plainwhite + +Simplistic jekyll portfolio-style theme for writers. + +**Demo**: [thelehhman.com](https://thelehhman.com) + +![plainwhite theme preview](/screenshot.png) + +## Installation on Github Pages + +Add this line to your site's `_config.yml`: + +```yaml +remote_theme: thelehhman/plainwhite-jekyll +``` + +## Installation + +Add this line to your Jekyll site's `Gemfile`: + +```ruby +gem "plainwhite" +``` + +And add this line to your Jekyll site's `_config.yml`: + +```yaml +theme: plainwhite +``` + +And then execute: + + $ bundle + +Or install it yourself as: + + $ gem install plainwhite + +## Usage + +The "plainwhite" key in \_config.yml is used to customize the theme data. + +```yaml +plainwhite: + name: Adam Denisov + tagline: Developer. Designer + date_format: "%b %-d, %Y" + + social_links: + twitter: thelehhman + github: thelehhman + linkedIn: in/thelehhman # format: locale/username +``` + +**Updating Placeholder Image** + +The placeholder portfolio image can be replaced by the desired image by placing it as `assets/portfolio.png` in your jekyll website. + +**Comments (Disqus)** + +Comments on posts can be enabled by specifying your disqus_shortname under plainwhite in `_config.yml`. For example, + +```yaml +plainwhite: + disqus_shortname: games +``` + +**Google Analytics** + +It can be enabled by specifying your analytics id under plainwhite in `_config.yml` + +```yaml +plainwhite: + analytics_id: "< YOUR ID >" +``` + +**Sitemap** + +It can be toggled by the following line to under plainwhite in `_config.yml` + +```yaml +plainwhite: + sitemap: true +``` + +**Excerpts** + +Excerpts can be enabled by adding the following line to your `_config.yml` + +```yaml +show_excerpts: true +``` + +**Layouts** + +- Home +- Page +- Post + +**Navigation** + +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. +``` + +## 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. + +## Development + +To set up your environment to develop this theme, run `bundle install`. + +Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal. + +When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled. +To add a custom directory to your theme-gem, please edit the regexp in `plainwhite.gemspec` accordingly. + +## License + +The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). + +## More themes + +- [Texture](https://github.com/thelehhman/texture) diff --git a/_config.yml b/_config.yml index 9e61627..da5daba 100644 --- a/_config.yml +++ b/_config.yml @@ -1 +1,56 @@ -remote_theme: thelehhman/plainwhite-jekyll +title: Your awesome title +author: GitHub User +email: your-email@domain.com +description: > # this means to ignore newlines until "show_exerpts:" + Write an awesome description for your new site here. You can edit this + line in _config.yml. It will appear in your document head meta (for + Google search results) and in your feed.xml site description. +show_excerpts: true # set to true to show excerpts on the homepage + +# Minima date format +# refer to http://shopify.github.io/liquid/filters/date/ if you want to customize this +sass: + sass_dir: _sass +plainwhite: + name: Adam Denisov + tagline: Developer. Designer + date_format: "%b %-d, %Y" + sitemap: true # set to true to generate sitemap.xml content + + # generate social links in footer + social_links: + twitter: thelehhman + github: thelehhman + linkedIn: in/thelehhman + rss: rss + # dribbble: jekyll + # facebook: jekyll + # flickr: jekyll + # instagram: jekyll + # linkedin: jekyll + # pinterest: jekyll + # youtube: jekyll + # youtube_channel: UC8CXR0-3I70i1tfPg1PAE1g + # youtube_channel_name: CloudCannon + # telegram: jekyll + # googleplus: +jekyll + # microdotblog: jekyll + + # Mastodon instances + # mastodon: + # - username: jekyll + # instance: example.com + # - username: jekyll2 + # instance: example.com + +# If you want to link only specific pages in your header, uncomment +# this and add the path to the pages in order as they should show up +#header_pages: +# - about.md + +# Build settings +theme: plainwhite + +plugins: + - jekyll-seo-tag +# - jekyll-feed \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..0b969f2 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,7 @@ + + + + + +{{ page.title | default: site.title }} +{% seo %} \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..05f4ffc --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,68 @@ + + + + {%- include head.html -%} + + +
+
+ {{ site.plainwhite.name }} +

+ {{ site.plainwhite.name }} +

+

{{ site.plainwhite.tagline }}

+ + + {%- if site.plainwhite.navigation -%} + + {%- endif -%} + +

© + {{ "now" | date: "%Y" }}

+
+
+ {{ content }} +
+
+ {%- if site.plainwhite.analytics_id -%} + + + {%- endif -%} + + diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..88bfa8d --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,45 @@ +--- +layout: default +--- + +{%- if page.title -%} +

{{ page.title }}

+{%- endif -%} + +{{ content }} + +{%- if site.posts.size > 0 -%} + + + +{%- endif -%} diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..91df6ba --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,8 @@ +--- +layout: default +--- +
+
+ {{ content }} +
+
\ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..9c6c488 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,37 @@ +--- +layout: default +--- +{%- assign date_format = site.plainwhite.date_format | default: "%b %-d, %Y" -%} +
+ +

{{ page.title | escape }}

+
+
+ + +
+
+ {{ content }} +
+ {%- if site.plainwhite.disqus_shortname -%} +
+ + + {%- endif -%} +
diff --git a/_posts/2019-03-23-welcome-to-jekyll.markdown b/_posts/2019-03-23-welcome-to-jekyll.markdown new file mode 100644 index 0000000..bbfd553 --- /dev/null +++ b/_posts/2019-03-23-welcome-to-jekyll.markdown @@ -0,0 +1,28 @@ +--- +layout: post +title: "Integrating razorpay into your webapp" +date: 2019-03-23 21:03:36 +0530 +categories: Javascript NodeJS +--- +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse + +```javascript +const Razorpay = require('razorpay'); + +let rzp = Razorpay({ + key_id: 'KEY_ID', + secret: 'name' +}); + +// capture request +rzp.capture(payment_id, cost) + .then(function (data) { + return 2; + }) +``` + +Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. + +[jekyll-docs]: https://jekyllrb.com/docs/home +[jekyll-gh]: https://github.com/jekyll/jekyll +[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/_sass/_syntax.scss b/_sass/_syntax.scss new file mode 100644 index 0000000..e46cdc9 --- /dev/null +++ b/_sass/_syntax.scss @@ -0,0 +1,14 @@ +@import 'ext/solarized-light'; + +.highlight { + background-color: #f4f4f4; +} + +div.highlight { + padding: 5px 20px; +} +pre.highlight, code { + font-family: 'Consolas', Menlo, monospace; + line-height: 1.4em; + tab-size: 4; +} \ No newline at end of file diff --git a/_sass/ext/_fonts.scss b/_sass/ext/_fonts.scss new file mode 100644 index 0000000..bebd619 --- /dev/null +++ b/_sass/ext/_fonts.scss @@ -0,0 +1,61 @@ +@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-weight: normal; + font-style: normal; +} +/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ +/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ +/* +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: 'fontello'; + src: url('../font/fontello.svg?26793073#fontello') format('svg'); + } +} +*/ + + [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; + 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; + + /* 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 diff --git a/_sass/ext/_normalize.scss b/_sass/ext/_normalize.scss new file mode 100644 index 0000000..95a98dd --- /dev/null +++ b/_sass/ext/_normalize.scss @@ -0,0 +1,428 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +// +// 1. Set default font family to sans-serif. +// 2. Prevent iOS text size adjust after orientation change, without disabling +// user zoom. +// + +html { + font-family: sans-serif; // 1 + -ms-text-size-adjust: 100%; // 2 + -webkit-text-size-adjust: 100%; // 2 +} + +// +// Remove default margin. +// + +body { + margin: 0; +} + +// HTML5 display definitions +// ========================================================================== + +// +// Correct `block` display not defined for any HTML5 element in IE 8/9. +// Correct `block` display not defined for `details` or `summary` in IE 10/11 +// and Firefox. +// Correct `block` display not defined for `main` in IE 11. +// + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +// +// 1. Correct `inline-block` display not defined in IE 8/9. +// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. +// + +audio, +canvas, +progress, +video { + display: inline-block; // 1 + vertical-align: baseline; // 2 +} + +// +// Prevent modern browsers from displaying `audio` without controls. +// Remove excess height in iOS 5 devices. +// + +audio:not([controls]) { + display: none; + height: 0; +} + +// +// Address `[hidden]` styling not present in IE 8/9/10. +// Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. +// + +[hidden], +template { + display: none; +} + +// Links +// ========================================================================== + +// +// Remove the gray background color from active links in IE 10. +// + +a { + background-color: transparent; +} + +// +// Improve readability when focused and also mouse hovered in all browsers. +// + +a:active, +a:hover { + outline: 0; +} + +// Text-level semantics +// ========================================================================== + +// +// Address styling not present in IE 8/9/10/11, Safari, and Chrome. +// + +abbr[title] { + border-bottom: 1px dotted; +} + +// +// Address style set to `bolder` in Firefox 4+, Safari, and Chrome. +// + +b, +strong { + font-weight: bold; +} + +// +// Address styling not present in Safari and Chrome. +// + +dfn { + font-style: italic; +} + +// +// Address variable `h1` font-size and margin within `section` and `article` +// contexts in Firefox 4+, Safari, and Chrome. +// + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +// +// Address styling not present in IE 8/9. +// + +mark { + background: #ff0; + color: #000; +} + +// +// Address inconsistent and variable font size in all browsers. +// + +small { + font-size: 80%; +} + +// +// Prevent `sub` and `sup` affecting `line-height` in all browsers. +// + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +// Embedded content +// ========================================================================== + +// +// Remove border when inside `a` element in IE 8/9/10. +// + +img { + border: 0; +} + +// +// Correct overflow not hidden in IE 9/10/11. +// + +svg:not(:root) { + overflow: hidden; +} + +// Grouping content +// ========================================================================== + +// +// Address margin not present in IE 8/9 and Safari. +// + +figure { + margin: 1em 40px; +} + +// +// Address differences between Firefox and other browsers. +// + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +// +// Contain overflow in all browsers. +// + +pre { + overflow: auto; +} + +// +// Address odd `em`-unit font size rendering in all browsers. +// + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +// Forms +// ========================================================================== + +// +// Known limitation: by default, Chrome and Safari on OS X allow very limited +// styling of `select`, unless a `border` property is set. +// + +// +// 1. Correct color not being inherited. +// Known issue: affects color of disabled elements. +// 2. Correct font properties not being inherited. +// 3. Address margins set differently in Firefox 4+, Safari, and Chrome. +// + +button, +input, +optgroup, +select, +textarea { + color: inherit; // 1 + font: inherit; // 2 + margin: 0; // 3 +} + +// +// Address `overflow` set to `hidden` in IE 8/9/10/11. +// + +button { + overflow: visible; +} + +// +// Address inconsistent `text-transform` inheritance for `button` and `select`. +// All other form control elements do not inherit `text-transform` values. +// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. +// Correct `select` style inheritance in Firefox. +// + +button, +select { + text-transform: none; +} + +// +// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` +// and `video` controls. +// 2. Correct inability to style clickable `input` types in iOS. +// 3. Improve usability and consistency of cursor style between image-type +// `input` and others. +// + +button, +html input[type="button"], +// 1 +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; // 2 + cursor: pointer; // 3 +} + +// +// Re-set default cursor for disabled elements. +// + +button[disabled], +html input[disabled] { + cursor: default; +} + +// +// Remove inner padding and border in Firefox 4+. +// + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +// +// Address Firefox 4+ setting `line-height` on `input` using `!important` in +// the UA stylesheet. +// + +input { + line-height: normal; +} + +// +// It's recommended that you don't attempt to style these elements. +// Firefox's implementation doesn't respect box-sizing, padding, or width. +// +// 1. Address box sizing set to `content-box` in IE 8/9/10. +// 2. Remove excess padding in IE 8/9/10. +// + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; // 1 + padding: 0; // 2 +} + +// +// Fix the cursor style for Chrome's increment/decrement buttons. For certain +// `font-size` values of the `input`, it causes the cursor style of the +// decrement button to change from `default` to `text`. +// + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +// +// 1. Address `appearance` set to `searchfield` in Safari and Chrome. +// 2. Address `box-sizing` set to `border-box` in Safari and Chrome +// (include `-moz` to future-proof). +// + +input[type="search"] { + -webkit-appearance: textfield; // 1 + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; // 2 + box-sizing: content-box; +} + +// +// Remove inner padding and search cancel button in Safari and Chrome on OS X. +// Safari (but not Chrome) clips the cancel button when the search input has +// padding (and `textfield` appearance). +// + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +// +// Define consistent border, margin, and padding. +// + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +// +// 1. Correct `color` not being inherited in IE 8/9/10/11. +// 2. Remove padding so people aren't caught out if they zero out fieldsets. +// + +legend { + border: 0; // 1 + padding: 0; // 2 +} + +// +// Remove default vertical scrollbar in IE 8/9/10/11. +// + +textarea { + overflow: auto; +} + +// +// Don't inherit the `font-weight` (applied by a rule above). +// NOTE: the default cannot safely be changed in Chrome and Safari on OS X. +// + +optgroup { + font-weight: bold; +} + +// Tables +// ========================================================================== + +// +// Remove most spacing between table cells. +// + +table { + border-collapse: collapse; + border-spacing: 0; +} + +td, +th { + padding: 0; +} diff --git a/_sass/ext/_solarized-light.scss b/_sass/ext/_solarized-light.scss new file mode 100644 index 0000000..63629f8 --- /dev/null +++ b/_sass/ext/_solarized-light.scss @@ -0,0 +1,84 @@ +/* Solarized Light +For use with Jekyll and Pygments +http://ethanschoonover.com/solarized +SOLARIZED HEX ROLE +--------- -------- ------------------------------------------ +base01 #586e75 body text / default code / primary content +base1 #93a1a1 comments / secondary content +base3 #fdf6e3 background +orange #cb4b16 constants +red #dc322f regex, special keywords +blue #268bd2 reserved keywords +cyan #2aa198 strings, numbers +green #859900 operators, other keywords +*/ + +.highlight { background-color: #fdf6e3; color: #586e75 } +.highlight .c { color: #93a1a1 } /* Comment */ +.highlight .err { color: #586e75 } /* Error */ +.highlight .g { color: #586e75 } /* Generic */ +.highlight .k { color: #859900 } /* Keyword */ +.highlight .l { color: #586e75 } /* Literal */ +.highlight .n { color: #586e75 } /* Name */ +.highlight .o { color: #859900 } /* Operator */ +.highlight .x { color: #cb4b16 } /* Other */ +.highlight .p { color: #586e75 } /* Punctuation */ +.highlight .cm { color: #93a1a1 } /* Comment.Multiline */ +.highlight .cp { color: #859900 } /* Comment.Preproc */ +.highlight .c1 { color: #93a1a1 } /* Comment.Single */ +.highlight .cs { color: #859900 } /* Comment.Special */ +.highlight .gd { color: #2aa198 } /* Generic.Deleted */ +.highlight .ge { color: #586e75; font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #dc322f } /* Generic.Error */ +.highlight .gh { color: #cb4b16 } /* Generic.Heading */ +.highlight .gi { color: #859900 } /* Generic.Inserted */ +.highlight .go { color: #586e75 } /* Generic.Output */ +.highlight .gp { color: #586e75 } /* Generic.Prompt */ +.highlight .gs { color: #586e75; font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #cb4b16 } /* Generic.Subheading */ +.highlight .gt { color: #586e75 } /* Generic.Traceback */ +.highlight .kc { color: #cb4b16 } /* Keyword.Constant */ +.highlight .kd { color: #268bd2 } /* Keyword.Declaration */ +.highlight .kn { color: #859900 } /* Keyword.Namespace */ +.highlight .kp { color: #859900 } /* Keyword.Pseudo */ +.highlight .kr { color: #268bd2 } /* Keyword.Reserved */ +.highlight .kt { color: #dc322f } /* Keyword.Type */ +.highlight .ld { color: #586e75 } /* Literal.Date */ +.highlight .m { color: #2aa198 } /* Literal.Number */ +.highlight .s { color: #2aa198 } /* Literal.String */ +.highlight .na { color: #586e75 } /* Name.Attribute */ +.highlight .nb { color: #B58900 } /* Name.Builtin */ +.highlight .nc { color: #268bd2 } /* Name.Class */ +.highlight .no { color: #cb4b16 } /* Name.Constant */ +.highlight .nd { color: #268bd2 } /* Name.Decorator */ +.highlight .ni { color: #cb4b16 } /* Name.Entity */ +.highlight .ne { color: #cb4b16 } /* Name.Exception */ +.highlight .nf { color: #268bd2 } /* Name.Function */ +.highlight .nl { color: #586e75 } /* Name.Label */ +.highlight .nn { color: #586e75 } /* Name.Namespace */ +.highlight .nx { color: #586e75 } /* Name.Other */ +.highlight .py { color: #586e75 } /* Name.Property */ +.highlight .nt { color: #268bd2 } /* Name.Tag */ +.highlight .nv { color: #268bd2 } /* Name.Variable */ +.highlight .ow { color: #859900 } /* Operator.Word */ +.highlight .w { color: #586e75 } /* Text.Whitespace */ +.highlight .mf { color: #2aa198 } /* Literal.Number.Float */ +.highlight .mh { color: #2aa198 } /* Literal.Number.Hex */ +.highlight .mi { color: #2aa198 } /* Literal.Number.Integer */ +.highlight .mo { color: #2aa198 } /* Literal.Number.Oct */ +.highlight .sb { color: #93a1a1 } /* Literal.String.Backtick */ +.highlight .sc { color: #2aa198 } /* Literal.String.Char */ +.highlight .sd { color: #586e75 } /* Literal.String.Doc */ +.highlight .s2 { color: #2aa198 } /* Literal.String.Double */ +.highlight .se { color: #cb4b16 } /* Literal.String.Escape */ +.highlight .sh { color: #586e75 } /* Literal.String.Heredoc */ +.highlight .si { color: #2aa198 } /* Literal.String.Interpol */ +.highlight .sx { color: #2aa198 } /* Literal.String.Other */ +.highlight .sr { color: #dc322f } /* Literal.String.Regex */ +.highlight .s1 { color: #2aa198 } /* Literal.String.Single */ +.highlight .ss { color: #2aa198 } /* Literal.String.Symbol */ +.highlight .bp { color: #268bd2 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #268bd2 } /* Name.Variable.Class */ +.highlight .vg { color: #268bd2 } /* Name.Variable.Global */ +.highlight .vi { color: #268bd2 } /* Name.Variable.Instance */ +.highlight .il { color: #2aa198 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/_sass/plain.scss b/_sass/plain.scss new file mode 100644 index 0000000..573a282 --- /dev/null +++ b/_sass/plain.scss @@ -0,0 +1,250 @@ +@import "ext/fonts"; +@import "ext/normalize"; +@import "syntax"; + +$linkColor: #0a59b0; +$mobileW: 768px; +$smallMobileW: 480px; +$bigScreenW: 1600px; +$leftWidth: 220px; + +*, +*:before, +*:after { + box-sizing: border-box; +} + +body { + font-family: "Raleway", sans-serif; + font-size: 16px; + line-height: 1.2em; + margin: 0; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +img, +embed, +object, +video { + max-width: 100%; +} + +a { + color: #000; + transition: color 0.3s; + &:hover { + color: $linkColor; + } +} + +h2 { + margin: 0.7em 0; +} +main { + margin: 0 90px; + display: flex; + height: 100%; + + @media screen and (min-width: $bigScreenW) { + margin: 0 auto; + max-width: 1440px; + } + @media screen and (max-width: 1280px) { + margin: 0 75px; + } + @media screen and (max-width: 1024px) { + margin: 0 35px; + } + + @media screen and (max-width: $mobileW) { + margin: 0 10px; + flex-direction: column; + } + @media screen and (max-width: $smallMobileW) { + margin: 0; + } + + .content { + @media screen and (min-width: $mobileW + 1) { + max-width: calc(100% - #{$leftWidth}); + margin-left: $leftWidth; + width: 100%; + } + } + .about { + display: flex; + height: 100vh; + padding-bottom: 15vh; + @media screen and (max-width: $mobileW) { + height: auto; + padding: 10vh 0; + } + @media screen and (min-width: $mobileW + 1) { + position: fixed; + } + min-width: $leftWidth; + justify-content: center; + flex-direction: column; + align-items: center; + h2 { + font-size: 22px; + margin-top: 25px; + margin-bottom: 0; + color: #222222; + font-weight: normal; + } + .tagline { + 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; + margin-top: 0; + li { + float: left; + i { + font-size: 34px; + } + } +} + +.navigation { + width: 80%; + + ul { + list-style-type: none; + padding: 0; + margin-top: 0; + + li:last-child { + a { + border-bottom: 0; + } + } + + a { + display: block; + font-family: 'Merriweather'; + text-align: center; + padding: 1rem 0; + text-decoration: none; + border-bottom: 1px solid #ececec; + + @media screen and (max-width: $mobileW) { + padding: 2rem 0; + } + } + } +} + +.post-wrapper { + border-bottom: 1px solid #ececec; + margin-bottom: 1rem; + padding-bottom: 1rem; +} + +.post-categories { + list-style-type: none; + margin: 0; + padding: 0; + li { + font-size: 14px; + float: left; + background-color: #e3e3e3; + padding: 5px 20px; + border-radius: 2px; + @media screen and (max-width: $mobileW) { + margin-top: 5px; + } + margin-right: 10px; + margin-bottom: 10px; + } +} +.post-date { + margin-right: 10px; + color: #555; + min-width: 150px; +} +.post-meta { + display: flex; + justify-content: space-between; + align-items: center; + @media screen and (max-width: $mobileW) { + flex-direction: column-reverse; + align-items: baseline; + .post-date { + margin-bottom: 16px; + } + } +} +.post-link { + text-decoration: none; +} + +.post-title { + line-height: 1.2em; + font-size: 28px; +} +.posts, +.post-container { + list-style-type: none; + margin: 45px 30px; + @media screen and (max-width: $smallMobileW) { + margin-left: 20px; + margin-right: 20px; + } + @media screen and (max-width: $mobileW) { + padding: 0 !important; + margin-top: 0; + } +} +.post-container { + padding-left: 30px; +} +.post { + font-family: "Merriweather", sans-serif; + font-weight: 300; + color: #222; + line-height: 1.9em; + a { + color: $linkColor; + text-decoration: none; + transition: border-bottom 0.4s; + &:hover { + border-bottom: 0.5px solid $linkColor; + } + } + h1, + h2, + h3, + h4, + h5, + h6 { + font-family: Raleway, sans-serif; + } +} + +#posts-label { + border-bottom: 1px solid #eee; + font-size: 15px; + color: #777; + text-transform: uppercase; + letter-spacing: 0.5px; + padding-bottom: 10px; + font-weight: normal; +} diff --git a/assets/css/style.scss b/assets/css/style.scss new file mode 100644 index 0000000..76a742b --- /dev/null +++ b/assets/css/style.scss @@ -0,0 +1,4 @@ +--- +--- + +@import "plain"; \ No newline at end of file diff --git a/assets/font/fontello.eot b/assets/font/fontello.eot new file mode 100755 index 0000000..3cf8e9b Binary files /dev/null and b/assets/font/fontello.eot differ diff --git a/assets/font/fontello.svg b/assets/font/fontello.svg new file mode 100755 index 0000000..65bbf00 --- /dev/null +++ b/assets/font/fontello.svg @@ -0,0 +1,18 @@ + + + +Copyright (C) 2019 by original authors @ fontello.com + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/font/fontello.ttf b/assets/font/fontello.ttf new file mode 100755 index 0000000..a628c24 Binary files /dev/null and b/assets/font/fontello.ttf differ diff --git a/assets/font/fontello.woff b/assets/font/fontello.woff new file mode 100755 index 0000000..8c5944d Binary files /dev/null and b/assets/font/fontello.woff differ diff --git a/assets/font/fontello.woff2 b/assets/font/fontello.woff2 new file mode 100755 index 0000000..e316779 Binary files /dev/null and b/assets/font/fontello.woff2 differ diff --git a/assets/portfolio.png b/assets/portfolio.png new file mode 100644 index 0000000..aee7eee Binary files /dev/null and b/assets/portfolio.png differ diff --git a/index.md b/index.md index b01838e..bf0c84b 100644 --- a/index.md +++ b/index.md @@ -1 +1,3 @@ -Lalala +--- +layout: home +--- \ No newline at end of file diff --git a/plainwhite.gemspec b/plainwhite.gemspec new file mode 100644 index 0000000..ee43021 --- /dev/null +++ b/plainwhite.gemspec @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +Gem::Specification.new do |spec| + spec.name = "plainwhite" + spec.version = "0.9" + spec.authors = ["Samarjeet"] + spec.email = ["thelehhman@gmail.com"] + + spec.summary = "A portfolio style jekyll theme for writers" + spec.homepage = "https://thelehhman.com/" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README|404.html|sitemap.xml)!i) } + + spec.add_runtime_dependency "jekyll", "~> 3.7.3" + spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.1.0" + + spec.add_development_dependency "bundler", "> 1.16" + spec.add_development_dependency "rake", "~> 12.0" +end diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..ac9bf81 Binary files /dev/null and b/screenshot.png differ diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..f794fb4 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,25 @@ +--- +layout: null +--- +{%-if site.plainwhite.sitemap -%} + + + + {{ site.url }} + 2019-06-07T00:00:00+00:00 + 1.00 + + {%- for post in site.posts -%} + + {{ site.url }}{{ post.url }} + {{ post.date | date_to_xmlschema }} + weekly + 0.80 + + {%- endfor -%} + +{%- endif -%} \ No newline at end of file