diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..736d7400f --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.gem +.bundle +.jekyll-cache +.sass-cache +_site +Gemfile.lock diff --git a/404.html b/404.html new file mode 100644 index 000000000..4c69a306d --- /dev/null +++ b/404.html @@ -0,0 +1,25 @@ +--- +permalink: /404.html +layout: post +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..bb94df829 --- /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 000000000..21bfc5ddd --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2020 Abhinav Saxena + +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 000000000..acc5ab3f2 --- /dev/null +++ b/README.md @@ -0,0 +1,139 @@ +# moonwalk + +A fast and minimalistic blog with clean dark mode. Based on [no style please](https://riggraz.dev/no-style-please/) + +

Try the demo out!

+ + + +## Features +* Light & dark mode with theme switcher +* Vertical list, horizontal list, card list +* Landing page with navbar, footer, portfolio +* Fast (very minimal CSS) - for more information on performance see [Lighthouse report](https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/lighthouse-report.png) +* Responsive and mobile friendly +* SEO optimized (uses [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag)) +* RSS feed (uses [Jekyll Feed](https://github.com/jekyll/jekyll-feed)) +* Easy to extend +* Fully compatible with [GitHub Pages](https://pages.github.com/) (see [GitHub Pages installation](#github-pages-installation)) + +## Installation + +If you haven't already created your blog using Jekyll, follow the [instructions](https://jekyllrb.com/docs/) to do so from Jekyll's documentation. + +NOTE: if you are using Jekyll with GitHub Pages, see the [GitHub Pages installation section](#github-pages-installation). + +Then, to style your blog with this theme, add this line to your Jekyll site's `Gemfile`: + +```ruby +gem "moonwalk" +``` + +And add this line to your Jekyll site's `_config.yml`: + +```yaml +theme: moonwalk +``` + +And then execute: + + $ bundle + +Or install it yourself as: + + $ gem install moonwalk + +### GitHub Pages installation + +If you want to use this theme for your Jekyll's site deployed on [GitHub Pages](https://pages.github.com/), follow the instructions on [this page](https://docs.github.com/en/github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll#adding-a-theme). + +## Usage + +You can edit `_config.yml` file to customize your blog. You can change things such as the name of the blog, the author, the appearance of the theme (light, dark or auto), how dates are formatted, etc. Customizable fields should be straightforward to understand. Still, `_config.yml` contains some comments to help you understand what each field does. + +For further customization (e.g. layout, CSS) see the [official Jekyll's documentation](https://jekyllrb.com/docs/themes/#overriding-theme-defaults) on customizing gem-based themes. + +### Customize the menu + +In order to add/edit/delete entries in the home page, you have to edit the `home.yml` file inside `_data` folder. Through that file you can define the structure of the menu. Take a look at the default configuration to get an idea of how it works and read on for a more comprehensive explanation. + +Data can be configured in `_data/home.yml` file - you can add data for navbar, footer, portfolio or simply remove all of that and use simple blog layout. + +The `home.yml` file accepts the following fields: + +1. Vertical list + - `entries` define a new unordered list that will contain menu entries + - each entry is marked by a `-` at the beginning of the line + - each entry has the following attributes: + - `title`, which defines the text to render for that menu entry + - `url`, which can either be a URL or `false`. If it is `false`, the entry will be rendered as plain text; otherwise the entry will be rendered as a link pointing to the specified URL. Note that the URL can either be relative or absolute. + - `post_list`, which can be `true` or `false`. If it is true, the entry will have all posts in the site as subentries. This is used to render your post list. + - `entries`, yes, you can have entries inside entries. In this way you can create nested sublists! +2. Card list - cards are used to showcase portfolio projects. Please see `project_entries` in `_data/home.yml` file + - each entry is marked by a `-` at the beginning of the line + - each entry has the following attributes: + - `title` defines the header of the card + - `desc` is the body of the card + - `url` is a relative or absolute link which this card can point to. + - `highlight` in case you want to highlight something, keep the text short though +3. Horizontal list - moonwalk uses horizontal lists to create navbar and footer. Please see `navbar_entries` and `footer_entries` in `data/home.yml` file + - each entry is marked by a `-` at the beginning of the line + - each entry has the following attributes: + - `title` defines the header of the card + - `url` is a relative or absolute link which this card can point to. + + +### Pro tips +1. Moonwalk has 3 in-built layouts: + - post - for content + - blog - for listing blog posts + - home - for landing page + you can change your `index.md` file to use either home or blog layout. + +2. It is extremely easy to tweak the color scheme. + - for light mode, customize these css variables +```css +html { + --bg: #fff; + --bg-secondary: #f8f9fa; + --headings: #000; + --text: #333; + --links: blue; + --highlight: #ffecb2; // light yellow +} +``` + - for dark mode customize these css variables +```css +@mixin dark-appearance { + html, body { + --bg: #1f242A; + --bg-secondary: #323945; + --headings: #3D9970; + --text: #adb5bd; + --links: #91a7ff; + --highlight: #ffd8a8; + --highlight: #ffd43b; + }; +} +``` + +## Contributing + +Bug reports and pull requests are welcome on GitHub at https://github.com/abhinavs/moonwalk. + +## 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 `moonwalk.gemspec` accordingly. + +## Acknowledgement +This theme's original base is [no style please](https://github.com/riggraz/no-style-please) theme created by [Riccardo Graziosi](https://riggraz.dev/) - many thanks to him for creating a theme with nearly no css. + +## License + +The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). + diff --git a/_config.yml b/_config.yml new file mode 100644 index 000000000..71848444e --- /dev/null +++ b/_config.yml @@ -0,0 +1,32 @@ +title: Moonwalk +author: Abhinav Saxena +url: https://www.abhinav.co # root address of the site +description: > # description of the site (multiple lines allowed) + Moonwalk is a fast and elegant Jekyll theme with a clean dark mode. It comes with horizontal list (for navbar and footer), card list (for portfolio), and a generic vertical list. It is very easy to modify in case you want to build over it - please see _layouts/home.html to do that. + +permalink: /:slug.html + +favicon: "./logo.png" # relative path to site's favicon +# goat_counter: "yoursitename" # put your GoatCounter name if you want to use GoatCounter analytics + +#theme: moonwalk # if you are using GitHub Pages, change it to remote_theme: abhinavs/moonwalk +remote_theme: abhinavs/moonwalk + +theme_config: + appearance: "dark" # can be "light", "dark" or "auto" + back_home_text: "home.." # customize text for homepage link in post layout + date_format: "%Y-%m-%d" # customize how date is formatted + show_description: true # show blog description in home page + show_navbar: true # show horizontal navbar in home page + show_footer: true # show footer links in home page,add in _data/home.yml + show_projects: true # show projects as cards, add in _data/home.yml + show_old_projects: true # show old projects as cards, add in _data/home.yml + show_misc_list: true # show generic vertical list for misc details, add _data/home.yml + + +sass: + style: :compressed + +plugins: + - jekyll-feed + - jekyll-seo-tag diff --git a/_data/home.yml b/_data/home.yml new file mode 100644 index 000000000..e423e4145 --- /dev/null +++ b/_data/home.yml @@ -0,0 +1,109 @@ +navbar_entries: + - title: about + url: about + + - title: blog + url: blog + + - title: website + url: http://www.abhinav.co + +project_entries: + - title: Project 1 + url: overview-post + desc: This is an example project, configured in _data/home.yml + + - title: Project 2 + url: overview-post + desc: Projects are shown in card layout + + - title: Project 3 + url: overview-post + desc: You can control visibility from _config.yml file + + - title: Project 4 + url: overview-post + desc: This project uses highlight markup, configured in _data/home.yml + highlight: WIP + + - title: Project 5 + url: overview-post + desc: Moonwalk also has horizontal list (used in header and footer) + highlight: WIP + + - title: Project 6 + url: overview-post + desc: It also has a scalable vertical list (in case you need it) + +old_project_entries: + - title: microrequests + url: http://www.abhinav.co/microrequests + desc: A Python library to consume microservices more efficiently + + - title: blockr + url: http://www.abhinav.co/blockr + desc: A CLI tool to help you easily block and unblock websites + + - title: moonwalk + url: https://github.com/abhinavs/moonwalk + desc: A fast and minimalist Jekyll blog theme with clean dark mode + + - title: humangous + url: http://www.humangous.co + desc: The better people know you, the better they collaborate + + - title: avnee + url: http://www.avnee.co + desc: New age kids require new ways of parenting + + - title: year progress + url: https://year-progress.herokuapp.com/ + desc: A bot written for slack that shows current year in a progress bar + highlight: archived + +footer_entries: + - title: abhinav's homepage + url: http://www.abhinav.co + + - title: twitter + url: https://twitter.com/abhinav + + - title: github + url: https://github.com/abhinavs + + - title: feed + url: feed.xml + +misc_entries: + - title: this is an example vertical list + url: false + + - title: you can show or hide using a boolean flag in _config.yml + url: false + + - title: and you can add data in _data/home.yml + url: false + + - title: Blog posts + post_list: true + url: false + + - title: moonwalk on the Internet + url: false + entries: + - title: on Github + url: https://github.com/abhinavs/moonwalk + + - title: originally built for abhinav's homepage + url: http://www.abhinav.co + + - title: this list is scalable and can be nested + url: false + entries: + - title: this is nested inside a nested list + url: false + + - title: it is easy to use, see _data/home.yml to see how to configure it. + url: false + + diff --git a/_includes/card_list.html b/_includes/card_list.html new file mode 100644 index 000000000..29c4461bb --- /dev/null +++ b/_includes/card_list.html @@ -0,0 +1,26 @@ + diff --git a/_includes/goat_counter.html b/_includes/goat_counter.html new file mode 100644 index 000000000..8c225875a --- /dev/null +++ b/_includes/goat_counter.html @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 000000000..92e944c97 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,20 @@ + + + + + + + {% if page.title %} + {{ page.title }} + {% else %} + {{ site.title }} + {% endif %} + + + {% seo title=false %} + {% feed_meta %} + + + + {% include toggle_theme_js.html %} + diff --git a/_includes/horizontal_list.html b/_includes/horizontal_list.html new file mode 100644 index 000000000..68fc618d0 --- /dev/null +++ b/_includes/horizontal_list.html @@ -0,0 +1,10 @@ + diff --git a/_includes/post_list.html b/_includes/post_list.html new file mode 100644 index 000000000..1cffe36d4 --- /dev/null +++ b/_includes/post_list.html @@ -0,0 +1,9 @@ +{% if site.posts.size > 0 %} + +{% endif %} \ No newline at end of file diff --git a/_includes/toggle_theme_button.html b/_includes/toggle_theme_button.html new file mode 100644 index 000000000..c2fb2119b --- /dev/null +++ b/_includes/toggle_theme_button.html @@ -0,0 +1,10 @@ + diff --git a/_includes/toggle_theme_js.html b/_includes/toggle_theme_js.html new file mode 100644 index 000000000..a88e342d3 --- /dev/null +++ b/_includes/toggle_theme_js.html @@ -0,0 +1,27 @@ + + + diff --git a/_includes/vertical_list.html b/_includes/vertical_list.html new file mode 100644 index 000000000..257489b52 --- /dev/null +++ b/_includes/vertical_list.html @@ -0,0 +1,19 @@ + diff --git a/_layouts/blog.html b/_layouts/blog.html new file mode 100644 index 000000000..d3d6cdb6c --- /dev/null +++ b/_layouts/blog.html @@ -0,0 +1,10 @@ +--- +layout: default +--- +{{ site.theme_config.back_home_text }} + +
+

{{ site.title }}

+
+ +{% include post_list.html %} diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 000000000..6c398fb48 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,17 @@ + + + {%- include head.html -%} + +
+
+ {{ content }} + {% include toggle_theme_button.html %} +
+
+ + {% if site.goat_counter and jekyll.environment == "production" %} + {% include goat_counter.html %} + {% endif %} + + + diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 000000000..0c782877c --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,42 @@ +--- +layout: default +--- + +
+{% if site.theme_config.show_navbar == true %} + {% include horizontal_list.html collection=site.data.home.navbar_entries %} +
+{% endif %} + +

{{ site.title }}

+ {% if site.theme_config.show_description == true %} +

{{ site.description }}

+ {% endif %} +
+ +{% if site.theme_config.show_projects == true %} +

Portfolio

+ {% include card_list.html collection=site.data.home.project_entries %} +{% endif %} + +{% if site.theme_config.show_misc_list == true %} +

Details

+ {% include vertical_list.html collection=site.data.home.misc_entries %} +{% endif %} + + +

Blog

+{% include post_list.html %} + +{% if site.theme_config.show_old_projects == true %} +

Old Projects

+ {% include card_list.html collection=site.data.home.old_project_entries %} +{% endif %} + + +{% if site.theme_config.show_footer == true %} + +{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 000000000..84402ddfc --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,7 @@ +--- +layout: default +--- + +{{ site.theme_config.back_home_text }} +

{{ page.title }}

+{{ content }} diff --git a/_posts/2020-07-07-overview-post.md b/_posts/2020-07-07-overview-post.md new file mode 100644 index 000000000..55abd8166 --- /dev/null +++ b/_posts/2020-07-07-overview-post.md @@ -0,0 +1,83 @@ +--- +layout: post +--- + +Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit. Pellentesque vel lacinia neque. Praesent nulla quam, ullamcorper in sollicitudin ac, molestie sed justo. Cras aliquam, sapien id consectetur accumsan, augue magna faucibus ex, ut ultricies turpis tortor vel ante. In at rutrum tellus. + +# Sample heading 1 +## Sample heading 2 +### Sample heading 3 +#### Sample heading 4 +##### Sample heading 5 +###### Sample heading 6 + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. + +## Lists + +Unordered: + +- Fusce non velit cursus ligula mattis convallis vel at metus[^2]. +- Sed pharetra tellus massa, non elementum eros vulputate non. +- Suspendisse potenti. + +Ordered: + +1. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc. +2. Sed massa quam, auctor in eros quis, porttitor tincidunt orci. +3. Nulla convallis id sapien ornare viverra. +4. Nam a est eget ligula pellentesque posuere. + +## Blockquote + +The following is a blockquote: + +> Suspendisse tempus dolor nec risus sodales posuere. Proin dui dui, mollis a consectetur molestie, lobortis vitae tellus. + +## Thematic breaks (
) + +Mauris viverra dictum ultricies[^3]. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. **You can put some text inside the horizontal rule like so.** + +--- +{: data-content="hr with text"} + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. **Or you can just have an clean horizontal rule.** + +--- + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. Or you can just have an clean horizontal rule. + +## Code + +Now some code: + +``` +const ultimateTruth = 'follow middlepath'; +console.log(ultimateTruth); +``` + +And here is some `inline code`! + +## Tables + +Now a table: + +| Tables | Are | Cool | +| ------------- |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | + +## Images + +![theme logo](http://www.abhinavsaxena.com/images/abhinav.jpeg) + +This is an image[^4] + +--- +{: data-content="footnotes"} + +[^1]: this is a footnote. You should reach here if you click on the corresponding superscript number. +[^2]: hey there, don't forget to read all the footnotes! +[^3]: this is another footnote. +[^4]: this is a very very long footnote to test if a very very long footnote brings some problems or not; hope that there are no problems but you know sometimes problems arise from nowhere. diff --git a/_posts/2020-07-08-language-tests.md b/_posts/2020-07-08-language-tests.md new file mode 100644 index 000000000..b7e5172be --- /dev/null +++ b/_posts/2020-07-08-language-tests.md @@ -0,0 +1,51 @@ +--- +layout: post +title: "Language Tests" +--- + +Note: Text is from [moving](https://github.com/huangyz0918/moving), which is another good Jekyll theme. + +### 1. 日本語テスト + +This is a Japanese test post to show you how japanese is displayed. + +私は昨日ついにその助力家というのの上よりするたなけれ。 +最も今をお話団はちょうどこの前後なかろでくらいに困りがいるたをは帰着考えたなかって、そうにもするでうたらない。 +がたを知っないはずも同時に九月をいよいよたありた。 + +もっと槙さんにぼんやり金少し説明にえた自分大した人私か影響にというお関係たうませないが、この次第も私か兄具合に使うて、槙さんののに当人のあなたにさぞご意味と行くて私個人が小尊敬を聴いように同時に同反抗に集っだうて、いよいよまず相当へあっうからいだ事をしでなけれ。 + +> それでそれでもご時日をしはずはたったいやと突き抜けるますて、その元がは行ったてという獄を尽すていけですた。 + +この中道具の日その学校はあなたごろがすまなりかとネルソンさんの考えるですん、辺の事実ないというご盲従ありたですと、爺さんのためが薬缶が結果までの箸の当時してならて、多少の十月にためからそういう上からとにかくしましないと触れべきものたで、ないうですと多少お人達したのでたた。 + +From [すぐ使えるダミーテキスト - 日本語 Lorem ipsum.](http://lipsum.sugutsukaeru.jp/index.cgi) + + +### 2. 繁体中文测试 + +This is a chinese test post to show you how chinese is displayed. + +善我王上魚、產生資西員合兒臉趣論。畫衣生這著爸毛親可時,安程幾?合學作。觀經而作建。都非子作這!法如言子你關!手師也。 + +以也座論頭室業放。要車時地變此親不老高小是統習直麼調未,行年香一? + +就竟在,是我童示讓利分和異種百路關母信過明驗有個歷洋中前合著區亮風值新底車有正結,進快保的行戰從:弟除文辦條國備當來際年每小腳識世可的的外的廣下歌洲保輪市果底天影;全氣具些回童但倒影發狀在示,數上學大法很,如要我……月品大供這起服滿老?應學傳者國:山式排只不之然清同關;細車是!停屋常間又,資畫領生,相們制在?公別的人寫教資夠。資再我我!只臉夫藝量不路政吃息緊回力之;兒足灣電空時局我怎初安。意今一子區首者微陸現際安除發連由子由而走學體區園我車當會,經時取頭,嚴了新科同?很夫營動通打,出和導一樂,查旅他。坐是收外子發物北看蘭戰坐車身做可來。道就學務。 + +國新故。 + +> 工步他始能詩的,裝進分星海演意學值例道……於財型目古香亮自和這乎?化經溫詩。只賽嚴大一主價世哥受的沒有中年即病行金拉麼河。主小路了種就小為廣不? + +From [亂數假文產生器 - Chinese Lorem Ipsum.](http://www.richyli.com/tool/loremipsum/) + + + +### 3. 简体中文测试 + +效育声去本义然空,各值太法心想,场强实地。 题铁习点儿表管少间千,只何政亲织文意部,千影画派证男须。 手反取长风治增非等直难群,连取及天他己事头级,影数弦适把气快目人。 专议以省通引而千个,格则口段度样水热马,地教少务改磨。 包思外心半院应她算斯,市外会快记路又火学,劳如肃它准众丧边。 + + > 团算部住县单总边素格军所,合音府教看和广光采率位转,位用品根确针百。 证其标元角工方海接交他,论象切万世认一响义,治然身本风弦带题。 向我次路持加北,她不反心。 说总元军例市决,现始即算证养,规走还壳。 + +因林可相儿应满军,热影省条律因资再,整肃赤心将届。 局广写两量备验还,南教事争工民的,备进研上布。 素身电活非直,速这区交示从,百层达。 资量那毛什京身,白这快。 半打容三手开常价或,手严量般象式效,名可重芽门适。 来设什一我么,光界美么或,住身式准。 造酸改表委验众办地百养,商物战众本列听度名院,制压录丽快与千机内。 住需当四议决得命南然照按民置,当住命形金决否矿单外。 气象理离开新集增际,三划方工义很年关,拉许准孝口。 构片出干计由备美打养,持育总指承入无己。 + +From [假文生成器, lorem ipsum Chinese](http://www.cancms.com/content/dummytext) \ No newline at end of file diff --git a/_posts/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md b/_posts/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md new file mode 100644 index 000000000..9d7b30159 --- /dev/null +++ b/_posts/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md @@ -0,0 +1,5 @@ +--- +layout: post +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vel lacinia neque. Praesent nulla quam, ullamcorper in sollicitudin ac, molestie sed justo. Cras aliquam, sapien id consectetur accumsan, augue magna faucibus ex, ut ultricies turpis tortor vel ante. In at rutrum tellus. Nullam vestibulum metus eu purus malesuada, volutpat mattis leo facilisis. \ No newline at end of file diff --git a/_posts/2020-07-09-post-example-with-headings-and-toc.md b/_posts/2020-07-09-post-example-with-headings-and-toc.md new file mode 100644 index 000000000..bd689f475 --- /dev/null +++ b/_posts/2020-07-09-post-example-with-headings-and-toc.md @@ -0,0 +1,26 @@ +--- +layout: post +--- + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Nunc a egestas tortor, sed feugiat leo. + +## Table of contents +- [Table of contents](#table-of-contents) +- [The start](#the-start) +- [The middle](#the-middle) +- [The end](#the-end) + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Nunc a egestas tortor, sed feugiat leo. Vestibulum porta tincidunt tellus, vitae ornare tortor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed nunc neque, tempor in iaculis non, faucibus et metus. Etiam id nisl ut lorem gravida euismod. + +## [The start](#the-start) + +Fusce non velit cursus ligula mattis convallis vel at metus. Sed pharetra tellus massa, non elementum eros vulputate non. Suspendisse potenti. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc. Sed massa quam, auctor in eros quis, porttitor tincidunt orci. Nulla convallis id sapien ornare viverra. Cras nec est lacinia ligula porta tincidunt. Nam a est eget ligula pellentesque posuere. Maecenas quis enim ac risus accumsan scelerisque. Aliquam vitae libero sapien. Etiam convallis, metus nec suscipit condimentum, quam massa congue velit, sit amet sollicitudin nisi tortor a lectus. Cras a arcu enim. Suspendisse hendrerit euismod est ac gravida. Donec vitae elit tristique, suscipit eros at, aliquam augue. In ac faucibus dui. Sed tempor lacus tristique elit sagittis, vitae tempor massa convallis. + +## [The middle](#the-middle) + +Proin quis velit et eros auctor laoreet. Aenean eget nibh odio. Suspendisse mollis enim pretium, fermentum urna vitae, egestas purus. Donec convallis tincidunt purus, scelerisque fermentum eros sagittis vel. Aliquam ac aliquet risus, tempus iaculis est. Fusce molestie mauris non interdum hendrerit. Curabitur ullamcorper, eros vitae interdum volutpat, lacus magna lacinia turpis, at accumsan dui tortor vel lectus. Aenean risus massa, semper non lectus rutrum, facilisis imperdiet mi. Praesent sed quam quis purus auctor ornare et sed augue. Vestibulum non quam quis ligula luctus placerat sed sit amet erat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Fusce auctor, sem eu volutpat dignissim, turpis nibh malesuada arcu, in consequat elit mauris quis sem. Nam tristique sit amet enim vel accumsan. Sed id nibh commodo, dictum sem id, semper quam. + +## The end + +Donec ex lectus, tempus non lacinia quis, pretium non ipsum. Praesent est nunc, rutrum vel tellus eu, tristique laoreet purus. In rutrum orci sit amet ex ornare, sit amet finibus lacus laoreet. Etiam ac facilisis purus, eget porttitor odio. Suspendisse tempus dolor nec risus sodales posuere. Proin dui dui, mollis a consectetur molestie, lobortis vitae tellus. Vivamus at purus sed urna sollicitudin mattis. Mauris lacinia libero in lobortis pulvinar. Nullam sit amet condimentum justo. Donec orci justo, pharetra ut dolor non, interdum finibus orci. Proin vitae ante a dui sodales commodo ac id elit. Nunc vel accumsan nunc, sit amet congue nunc. Aliquam in lacinia velit. Integer lobortis luctus eros, in fermentum metus aliquet a. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. + diff --git a/_sass/list.scss b/_sass/list.scss new file mode 100644 index 000000000..49900df1d --- /dev/null +++ b/_sass/list.scss @@ -0,0 +1,56 @@ +ul.horizontal-list { + display: flex; + //justify-content: space-between; + margin-top: 0em; + margin-left: -40px; + flex-wrap: wrap; + + li { + display:inline; + margin-right: 1em; + } + + li a { + text-decoration: none; + font-weight: normal + } + +} + +.card { + padding: 1em; + border: 1px var(--text) solid; + width: 10em; + height: 10em; + text-align: center; + font-size: 1em; + align-items: center; + background-color: var(--bg-secondary); + margin-bottom: 0.8em; + + .header { + color: var(--links); + } + + .body { + font-size: 0.8em; + } + + hr { + margin: 0.5em 0; + } + +} + +/* Responsive cards - one column layout on small screens */ +@media screen and (max-width: 600px) { + ul.horizontal-list li.card { + width: 100%; + display: block; + margin-bottom: 1em; + margin-left: 1em; + a, .header { + font-size: 1em; + } + } +} diff --git a/_sass/moonwalk.scss b/_sass/moonwalk.scss new file mode 100644 index 000000000..e9e859dcd --- /dev/null +++ b/_sass/moonwalk.scss @@ -0,0 +1,132 @@ +html { + --bg: #fff; + --bg-secondary: #f8f9fa; + --headings: #000; + --text: #333; + --links: blue; + --highlight: #ffecb2; // light yellow +} +@mixin dark-appearance { + html, body { + --bg: #1f242A; + --bg-secondary: #323945; + --headings: #3D9970; + --text: #adb5bd; + --links: #91a7ff; + --highlight: #ffd8a8; + --highlight: #ffd43b; + }; +} +html[data-theme="dark"] { @include dark-appearance; } + +@media (prefers-color-scheme: dark) { + body[data-theme="auto"] { @include dark-appearance; } +} + +html { height: 100%; } + +body { + font-family: monospace; + font-size: 1rem; + line-height: 1.5; + margin: 0; + min-height: 100%; +} + +h2, h3, h4, h5 { margin-top: 1.5em; } + +hr { margin: 1em 0; } + +p { margin: 1em 0; } + +li { margin: 0.4em 0; } + +.w { + max-width: 640px; + margin: 0 auto; + padding: 4em 2em; +} + +table, th, td { + width: 100%; + border: thin solid black; + border-collapse: collapse; + padding: 0.4em; +} + +div.highlighter-rouge code, code.highlighter-rouge { + display: block; + overflow-x: auto; + padding: 1em; +} + +blockquote { + font-style: italic; + border: thin solid black; + padding: 1em; + + p { margin: 0; } +} + +img { + max-width: 100%; + display: block; + margin: 0 auto; +} + +html, body { + background-color: var(--bg); + color: var(--text); +} +h1, h2, h3, h4, h5, h6 { + color: var(--headings); +} +p, strong, b, em, span, small, li, hr, table, code, figcaption { + color: var(--text); +} +code, blockquote { + background-color: var(--bg-secondary); + border: 1px var(--text) solid; +} +a { + color: var(--links); +} +*:target { background-color: var(--bg-secondary); } + +html.transition, +html.transition *, +html.transition *:before, +html.transition *:after { + transition: all 250ms !important; + transition-delay: 0 !important; +} + +.theme-toggle { + color: var(--text); + background-color: transparent; + padding: 4px; + cursor: pointer; + margin: 1em; + position: fixed; + right: 0; + top: 0; + border: 2px transparent solid; + outline: none; +} + +.theme-toggle:hover { + color: var(--links); + outline: none; +} +.theme-toggle:focus { + outline: none; +} +.dashed { + border-top: 1px var(--text) dashed; + margin: 0.5em 0; +} +mark { + padding: 0.4em; + background-color: var(--highlight); + font-size: 0.8em; +} diff --git a/_screenshots/lighthouse-report.png b/_screenshots/lighthouse-report.png new file mode 100644 index 000000000..bfec3d13b Binary files /dev/null and b/_screenshots/lighthouse-report.png differ diff --git a/_screenshots/moonwalk.png b/_screenshots/moonwalk.png new file mode 100644 index 000000000..f5fe2d945 Binary files /dev/null and b/_screenshots/moonwalk.png differ diff --git a/about.md b/about.md new file mode 100644 index 000000000..dafcbe23f --- /dev/null +++ b/about.md @@ -0,0 +1,8 @@ +--- +layout: post +title: About +--- + +This is an example page! + +Actually, it has the same layout of a post... \ No newline at end of file diff --git a/assets/css/main.scss b/assets/css/main.scss new file mode 100644 index 000000000..627c2f624 --- /dev/null +++ b/assets/css/main.scss @@ -0,0 +1,5 @@ +--- +--- + +@import "moonwalk"; +@import "list"; diff --git a/blog.html b/blog.html new file mode 100644 index 000000000..bec36805b --- /dev/null +++ b/blog.html @@ -0,0 +1,3 @@ +--- +layout: blog +--- diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 000000000..c07df76f6 Binary files /dev/null and b/favicon.ico differ diff --git a/images/.gitkeep b/images/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/index.md b/index.md new file mode 100644 index 000000000..bf0c84b7c --- /dev/null +++ b/index.md @@ -0,0 +1,3 @@ +--- +layout: home +--- \ No newline at end of file diff --git a/logo.png b/logo.png new file mode 100644 index 000000000..a3587de61 Binary files /dev/null and b/logo.png differ diff --git a/moonwalk.gemspec b/moonwalk.gemspec new file mode 100644 index 000000000..01b74cab2 --- /dev/null +++ b/moonwalk.gemspec @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +Gem::Specification.new do |spec| + spec.name = "moonwalk" + spec.version = "0.0.1" + spec.authors = ["Abhinav Saxena"] + spec.email = ["abhinav061@gmail.com"] + + spec.summary = "A fast and minimalist Jekyll theme with clean dark mode." + spec.homepage = "https://github.com/abhinavs/apic-simple-blog" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README|_config\.yml)!i) } + + spec.add_runtime_dependency "jekyll", "~> 3.8.7" + spec.add_runtime_dependency "jekyll-feed", "~> 0.13.0" + spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.6.1" +end diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..e69de29bb