From eed3015939aca2714c4c374ab2d7260b9ec0adcc Mon Sep 17 00:00:00 2001 From: Vishakh Abhayan Date: Mon, 20 May 2024 04:00:18 +0530 Subject: [PATCH 1/2] feat:base code --- .github/workflows/jekyll.yml | 22 +- .gitignore | 7 +- 404.html | 25 -- Gemfile | 16 +- Gemfile.lock | 112 ----- LICENSE.txt | 21 + README.md | 201 ++++++++- _config.yml | 64 +-- _data/navigation.yml | 8 + _data/social.yml | 9 + _includes/archive-by-tagories.html | 71 ++++ _includes/archive-by-years.html | 32 ++ _includes/back-to-top.html | 6 + _includes/custom-head.html | 6 + _includes/disqus.html | 17 + _includes/footer.html | 39 ++ _includes/google-analytics.html | 9 + _includes/head.html | 13 + _includes/header.html | 20 + _includes/mathjax.html | 2 + _layouts/archive.html | 15 + _layouts/default.html | 23 ++ _layouts/home.html | 44 ++ _layouts/page.html | 8 + _layouts/post.html | 86 ++++ ...s-post-demonstrates-post-content-styles.md | 115 ++++++ _posts/2021-02-17-options.md | 61 +++ _posts/2021-02-18-example-content.md | 163 ++++++++ _posts/2021-02-21-what-s-jekyll.md | 13 + _posts/2023-05-12-my-new-post.markdown | 15 - _posts/2024-05-12-hello.markdown | 30 -- _posts/2024-05-12-my-new-test.markdown | 2 - _posts/2024-05-12-welcome-to-jekyll.markdown | 29 -- _sass/monophase/_base.scss | 123 ++++++ _sass/monophase/_highlight-dark.scss | 91 +++++ _sass/monophase/_highlight-light.scss | 217 ++++++++++ _sass/monophase/_layout.scss | 382 ++++++++++++++++++ _sass/monophase/_variables.scss | 54 +++ _sass/monophase/main.scss | 8 + about.markdown | 18 - about.md | 24 ++ assets/monophase/styles.scss | 3 + assets/normalize.css | 349 ++++++++++++++++ assets/open-color.css | 343 ++++++++++++++++ categories.md | 6 + index.html | 3 + index.markdown | 6 - monophase.gemspec | 20 + tags.md | 6 + years.md | 6 + 50 files changed, 2629 insertions(+), 334 deletions(-) delete mode 100644 404.html delete mode 100644 Gemfile.lock create mode 100644 LICENSE.txt create mode 100644 _data/navigation.yml create mode 100644 _data/social.yml create mode 100644 _includes/archive-by-tagories.html create mode 100644 _includes/archive-by-years.html create mode 100644 _includes/back-to-top.html create mode 100644 _includes/custom-head.html create mode 100644 _includes/disqus.html create mode 100644 _includes/footer.html create mode 100644 _includes/google-analytics.html create mode 100644 _includes/head.html create mode 100644 _includes/header.html create mode 100644 _includes/mathjax.html create mode 100644 _layouts/archive.html create mode 100644 _layouts/default.html create mode 100644 _layouts/home.html create mode 100644 _layouts/page.html create mode 100644 _layouts/post.html create mode 100644 _posts/2021-02-16-this-post-demonstrates-post-content-styles.md create mode 100644 _posts/2021-02-17-options.md create mode 100644 _posts/2021-02-18-example-content.md create mode 100644 _posts/2021-02-21-what-s-jekyll.md delete mode 100644 _posts/2023-05-12-my-new-post.markdown delete mode 100644 _posts/2024-05-12-hello.markdown delete mode 100644 _posts/2024-05-12-my-new-test.markdown delete mode 100644 _posts/2024-05-12-welcome-to-jekyll.markdown create mode 100644 _sass/monophase/_base.scss create mode 100644 _sass/monophase/_highlight-dark.scss create mode 100644 _sass/monophase/_highlight-light.scss create mode 100644 _sass/monophase/_layout.scss create mode 100644 _sass/monophase/_variables.scss create mode 100644 _sass/monophase/main.scss delete mode 100644 about.markdown create mode 100644 about.md create mode 100644 assets/monophase/styles.scss create mode 100644 assets/normalize.css create mode 100644 assets/open-color.css create mode 100644 categories.md create mode 100644 index.html delete mode 100644 index.markdown create mode 100644 monophase.gemspec create mode 100644 tags.md create mode 100644 years.md diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index f2a36c0..68520b5 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -1,4 +1,3 @@ ---- # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support @@ -37,30 +36,29 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 with: - ruby-version: "3.1" # Not needed with a .ruby-version file + ruby-version: '3.1' # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically cache-version: 0 # Increment this number if you need to re-download cached gems - name: Setup Pages id: pages uses: actions/configure-pages@v5 - - name: Build Jekyll site - run: | - bundle install - bundle exec jekyll build + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production - name: Upload artifact + # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v3 - + + # Deployment job deploy: environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url}} + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - diff --git a/.gitignore b/.gitignore index 475d71e..736d740 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ -events/_site +*.gem +.bundle +.jekyll-cache +.sass-cache +_site +Gemfile.lock diff --git a/404.html b/404.html deleted file mode 100644 index 086a5c9..0000000 --- a/404.html +++ /dev/null @@ -1,25 +0,0 @@ ---- -permalink: /404.html -layout: default ---- - - - -
-

404

- -

Page not found :(

-

The requested page could not be found.

-
diff --git a/Gemfile b/Gemfile index 1ed03a9..bb94df8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,14 +1,4 @@ -source "https://rubygems.org" -gem "jekyll", "~> 4.3.3" -gem "minima", "~> 2.5" -group :jekyll_plugins do - gem "jekyll-feed", "~> 0.12" -end - -platforms :mingw, :x64_mingw, :mswin, :jruby do - gem "tzinfo", ">= 1", "< 3" - gem "tzinfo-data" -end +# frozen_string_literal: true -gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] -gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby] +source "https://rubygems.org" +gemspec diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index eb97472..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,112 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - addressable (2.8.6) - public_suffix (>= 2.0.2, < 6.0) - colorator (1.1.0) - concurrent-ruby (1.2.3) - em-websocket (0.5.3) - eventmachine (>= 0.12.9) - http_parser.rb (~> 0) - eventmachine (1.2.7) - ffi (1.16.3) - forwardable-extended (2.6.0) - google-protobuf (4.26.1) - rake (>= 13) - google-protobuf (4.26.1-arm64-darwin) - rake (>= 13) - google-protobuf (4.26.1-x86_64-darwin) - rake (>= 13) - google-protobuf (4.26.1-x86_64-linux) - rake (>= 13) - http_parser.rb (0.8.0) - i18n (1.14.5) - concurrent-ruby (~> 1.0) - jekyll (4.3.3) - addressable (~> 2.4) - colorator (~> 1.0) - em-websocket (~> 0.5) - i18n (~> 1.0) - jekyll-sass-converter (>= 2.0, < 4.0) - jekyll-watch (~> 2.0) - kramdown (~> 2.3, >= 2.3.1) - kramdown-parser-gfm (~> 1.0) - liquid (~> 4.0) - mercenary (>= 0.3.6, < 0.5) - pathutil (~> 0.9) - rouge (>= 3.0, < 5.0) - safe_yaml (~> 1.0) - terminal-table (>= 1.8, < 4.0) - webrick (~> 1.7) - jekyll-feed (0.17.0) - jekyll (>= 3.7, < 5.0) - jekyll-sass-converter (3.0.0) - sass-embedded (~> 1.54) - jekyll-seo-tag (2.8.0) - jekyll (>= 3.8, < 5.0) - jekyll-watch (2.2.1) - listen (~> 3.0) - kramdown (2.4.0) - rexml - kramdown-parser-gfm (1.1.0) - kramdown (~> 2.0) - liquid (4.0.4) - listen (3.9.0) - rb-fsevent (~> 0.10, >= 0.10.3) - rb-inotify (~> 0.9, >= 0.9.10) - mercenary (0.4.0) - minima (2.5.1) - jekyll (>= 3.5, < 5.0) - jekyll-feed (~> 0.9) - jekyll-seo-tag (~> 2.1) - pathutil (0.16.2) - forwardable-extended (~> 2.6) - public_suffix (5.0.5) - rake (13.2.1) - rb-fsevent (0.11.2) - rb-inotify (0.10.1) - ffi (~> 1.0) - rexml (3.2.6) - rouge (4.2.1) - safe_yaml (1.0.5) - sass-embedded (1.77.1) - google-protobuf (>= 3.25, < 5.0) - rake (>= 13.0.0) - sass-embedded (1.77.1-aarch64-mingw-ucrt) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.1-arm64-darwin) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.1-x86-cygwin) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.1-x86-mingw-ucrt) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.1-x86_64-cygwin) - google-protobuf (>= 3.25, < 5.0) - sass-embedded (1.77.1-x86_64-darwin) - google-protobuf (>= 3.25, < 5.0) - terminal-table (3.0.2) - unicode-display_width (>= 1.1.1, < 3) - unicode-display_width (2.5.0) - webrick (1.8.1) - -PLATFORMS - aarch64-mingw-ucrt - arm64-darwin - ruby - x86-cygwin - x86-mingw-ucrt - x86_64-cygwin - x86_64-darwin - x86_64-linux - -DEPENDENCIES - http_parser.rb (~> 0.6.0) - jekyll (~> 4.3.3) - jekyll-feed (~> 0.12) - minima (~> 2.5) - tzinfo (>= 1, < 3) - tzinfo-data - wdm (~> 0.1.1) - -BUNDLED WITH - 2.5.10 diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..64b5533 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Songzi Vong + +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 index eabb606..926c6c5 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,195 @@ -# mucampus-events +# Monophase -This repository contains the source code files for adding campus events and learning circle events in the MuLearn repository. Kindly go through this repository and showcase your event in this repository. + + Jekyll Themes Shield + -## -Fork the repository +Monophase is *a one-column minimal responsive Jekyll blog theme*. +One of the purposes of Monophase is to be an alternative option to the default theme of Jekyll—[Minima](https://github.com/jekyll/minima). Monophase is still keeping minimal, but meanwhile, more beautiful and mellow, and doesn't lose some useful basic features, such as archive. -Open _posts folder --> Create new file +Check the *[live demo](https://zivlog.io/monophase/)*. -## Title Format +![Screenshot Light](screenshot-light.png) +![Screenshot Dark](screenshot-dark.png) + +## Highlight Features + +- [Normalize.css](https://github.com/necolas/normalize.css) +- [Open Color](https://github.com/yeun/open-color) +- [Font Awesome](https://fontawesome.com/) +- [Disqus](https://disqus.com/) +- [MathJax](https://www.mathjax.org/) +- [Google Analytics 4](https://support.google.com/analytics/answer/10089681?hl=en) +- [Jekyll Feed](https://github.com/jekyll/jekyll-feed/) +- [Jekyll Paginate](https://github.com/jekyll/jekyll-paginate) +- [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/) +- Related posts (time-based, because Jekyll) below each post +- Dark mode, via [`prefers-color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) +- Archive implemented by pure [Liquid](https://shopify.github.io/liquid/) + +## Table of Contents + +- [Installation](#installation) +- [Usage](#usage) + - [Global Configuration](#global-configuration) + - [Post Configuration](#post-configuration) + - [Homepage](#homepage) + - [Custom Head](#custom-head) + - [Navigation](#navigation) + - [Social Links](#social-links) + - [Alert Messages](#alert-messages) + - [Google Analytics 4](#google-analytics-4) + - [Archive](#archive) +- [Contributing](#contributing) +- [Development](#development) +- [License](#license) + +## Installation + +Add this line to your Jekyll site's `Gemfile`: + +```ruby +gem "monophase" ``` -yyyy-mm-date-heading.markdown + +And add this line to your Jekyll site's `_config.yml`: + +```yaml +theme: monophase ``` -### Enter event details +And then execute: + +```shell +bundle ``` -layout: post -title: "My New Post" [Replace with your heading] -date: 2023-05-12 12:00:00 -0500 [Replace with your date : Date format - yyy-mm-date] -categories: Campus Event [update- Choose Campus event or Learning Circle event] ---- -// Explain details of the event -# My New Post -This is the content of my new post. +Or install it yourself as: + +```shell +gem install monophase +``` + +You can also install the latest code via [`jekyll-remote-theme`](https://github.com/benbalter/jekyll-remote-theme): + +1. Add this line to your Jekyll site's `Gemfile`: + + ```ruby + gem "jekyll-remote-theme" + ``` + +2. Add these lines to your Jekyll site's `_config.yml`: + + ```ruby + plugins: + - jekyll-remote-theme + + remote_theme: zivhub/monophase@main + ``` + +## Usage + +### Global Configuration + +| Variable | Type | Default | Specification | +| -------- | ---- | ------- | ------------- | +| `title` | String | --- | The title of the website | +| `tagline` | String | --- | The tagline of the website | +| `lang` | String | `en` | The language of pages; The value can be overwritten by the `lang` variable on each page | +| `author.name` | String | --- | The name of the website author | +| `author.url` | String | --- | A URL of the website author | +| `tags_path` | String | --- | A path to the archive-by-tags page; It is used by tags on each post | +| `categories_path` | String | --- | A path to the archive-by-categories page; It is used by categories on each post | +| `disqus` | String | --- | Disqus short name | +| `google_analytics` | String | --- | Google Analytics 4 Measurement ID | + +### Post Configuration + +| Variable | Type | Default | Specification | +| -------- | ---- | ------- | ------------- | +| `description` | String | --- | A description of the current post | +| `last_modified_at` | String | --- | The date of the last modification you made on a post after its publishing | +| `author` | String or Array | --- | The author name(s) of the post | +| `comments` | Boolean | `true` | Does enable the Disqus comment system | +| `math` | Boolean | `false` | Does enable MathJax on this page | + +### Homepage + +You can create a homepage for your blog by setting `layout: home` in your `index.html`. + +### Custom Head -## Heading 2 +Monophase leaves a placeholder to allow defining custom head. All you need to do is putting data into `_includes/custom-head.html`, and they would be automatically included in ``. -- List item 1 -- List item 2 +### Navigation +The navigation bar of Monophase is configurable. You just need to specify titles and URLs in the file `_data/navigation.yml`, for example, + +```yml +- title: About + url: /about/ +- title: Archive + url: /archive/ +- title: Categories + url: /categories/ +``` + +### Social Links + +Monophase allows you to show social links on the website. All you need to do is creating a file `_data/social.yml`, for example, + +```yml +- title: Email + url: mailto:zivmsg@gmail.com + icon: fas fa-envelope +- title: Twitter + url: https://twitter.com/zivtwt + icon: fab fa-twitter +- title: GitHub + url: https://github.com/zivhub + icon: fab fa-github +``` + +### Alert Messages + +Monophase provides some predefined classes to specify different levels of **alert messages**. In order of tone from light to heavy, they are: `message-info`, `message-warning`, and `message-danger`. You may add it to single elements like a `

`, or to a parent if there are multiple elements to show. + +### Google Analytics 4 + +To enable [Google Analytics 4](https://support.google.com/analytics/answer/10089681?hl=en), you just need to set the [Measurement ID](https://support.google.com/analytics/answer/7372977?hl=en) in your `_config.yml`, for example, + +```yml +google_analytics: G-XXXXXXX +``` + +### Archive + +Monophase provides some built-in archive pages. It is implemented in pure Liquid. If you want to archive posts by years, you can create a page and put these code in it: + +```yml +--- +layout: archive +type: years +--- ``` -### Save Changes and Commit a Pull Request + +Similarly, if you want to archive posts by categories or tags, you can set the `type` property as `categories` or `tags`. + +## Contributing + +Bug reports and pull requests are welcome on GitHub at [https://github.com/zivhub/monophase](https://github.com/zivhub/monophase). 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 `monophase.gemspec` accordingly. + +## License + +The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). +# Jekyll_theme diff --git a/_config.yml b/_config.yml index 84f8a96..1ea01a1 100644 --- a/_config.yml +++ b/_config.yml @@ -1,55 +1,17 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely edit after that. If you find -# yourself editing this file very often, consider using Jekyll's data files -# feature for the data you need to update frequently. -# -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'bundle exec jekyll serve'. If you change this file, please restart the server process. -# -# If you need help with YAML syntax, here are some quick references for you: -# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml -# https://learnxinyminutes.com/docs/yaml/ -# -# Site settings -# These are used to personalize your new site. If you look in the HTML files, -# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. -# You can create any custom variable you would like, and they will be accessible -# in the templates via {{ site.myvariable }}. +title: μCampus +tagline: hjkedhasjdjhoasjdljsacjldnj +author: + name: Song-Zi Vong + url: https://twitter.com/AbhayanVishakh -title: Your awesome title -email: your-email@example.com -description: >- # this means to ignore newlines until "baseurl:" - 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. -baseurl: "/mucampus-events" # the subpath of your site, e.g. /blog -url: "" # the base hostname & protocol for your site, e.g. http://example.com -twitter_username: jekyllrb -github_username: gtech-mulearn - -# Build settings -theme: minima plugins: - jekyll-feed + - jekyll-paginate + - jekyll-seo-tag + +# Build Settings + +paginate: 2 -# Exclude from processing. -# The following items will not be processed, by default. -# Any item listed under the `exclude:` key here will be automatically added to -# the internal "default list". -# -# Excluded items can be processed by explicitly listing the directories or -# their entries' file path in the `include:` list. -# -# exclude: -# - .sass-cache/ -# - .jekyll-cache/ -# - gemfiles/ -# - Gemfile -# - Gemfile.lock -# - node_modules/ -# - vendor/bundle/ -# - vendor/cache/ -# - vendor/gems/ -# - vendor/ruby/ +tags_path: /tags/ +categories_path: /categories/ diff --git a/_data/navigation.yml b/_data/navigation.yml new file mode 100644 index 0000000..926e122 --- /dev/null +++ b/_data/navigation.yml @@ -0,0 +1,8 @@ +- title: About + url: /about/ +- title: Years + url: /years/ +- title: Categories + url: /categories/ +- title: Tags + url: /tags/ diff --git a/_data/social.yml b/_data/social.yml new file mode 100644 index 0000000..2b6e14e --- /dev/null +++ b/_data/social.yml @@ -0,0 +1,9 @@ +- title: Email + url: mailto:zivmsg@gmail.com + icon: fas fa-envelope +- title: Twitter + url: https://twitter.com/zivtwt + icon: fab fa-twitter +- title: GitHub + url: https://github.com/zivhub + icon: fab fa-github diff --git a/_includes/archive-by-tagories.html b/_includes/archive-by-tagories.html new file mode 100644 index 0000000..1d4fc40 --- /dev/null +++ b/_includes/archive-by-tagories.html @@ -0,0 +1,71 @@ +{%- if page.type == 'categories' -%} + {%- assign taxonomies = site.categories -%} +{%- elsif page.type == 'tags' -%} + {%- assign taxonomies = site.tags -%} +{%- else -%} + {%- assign taxonomies = none -%} +{%- endif -%} + +{%- assign max_count = 0 -%} +{%- for taxonomy in taxonomies -%} + {%- assign posts = taxonomy[1] -%} + {%- if posts.size > max_count -%} + {%- assign max_count = posts.size -%} + {%- endif -%} +{%- endfor -%} + +

+ +
+ +{%- for i in (1..max_count) reversed -%} + {%- for taxonomy in taxonomies -%} + {%- assign taxonomy_name = taxonomy[0] -%} + {%- assign slugified_taxonomy_name = taxonomy_name | slugify -%} + {%- assign posts = taxonomy[1] -%} + {%- if posts.size == i -%} +

+ {%- if page.type == 'tags' -%} + {{ slugified_taxonomy_name }} + {%- else -%} + {{ taxonomy_name }} + {%- endif -%} +

+ + Top ⇈ + {%- endif -%} + {%- endfor -%} +{%- endfor -%} + +{% include back-to-top.html %} diff --git a/_includes/archive-by-years.html b/_includes/archive-by-years.html new file mode 100644 index 0000000..d33c53a --- /dev/null +++ b/_includes/archive-by-years.html @@ -0,0 +1,32 @@ +{% assign taxonomies = site.posts | group_by_exp: "post", "post.date | date: '%Y'" %} + +
+ +
+ +{%- for taxonomy in taxonomies -%} +

{{ taxonomy.name }}

+ + Top ⇈ +{%- endfor -%} + +{% include back-to-top.html %} diff --git a/_includes/back-to-top.html b/_includes/back-to-top.html new file mode 100644 index 0000000..d6bfb3a --- /dev/null +++ b/_includes/back-to-top.html @@ -0,0 +1,6 @@ + diff --git a/_includes/custom-head.html b/_includes/custom-head.html new file mode 100644 index 0000000..8559a67 --- /dev/null +++ b/_includes/custom-head.html @@ -0,0 +1,6 @@ +{% comment %} + Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons: + + 1. Head over to https://realfavicongenerator.net/ to add your own favicons. + 2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet. +{% endcomment %} diff --git a/_includes/disqus.html b/_includes/disqus.html new file mode 100644 index 0000000..bc81056 --- /dev/null +++ b/_includes/disqus.html @@ -0,0 +1,17 @@ +
+ + diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..6b6c231 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,39 @@ + diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html new file mode 100644 index 0000000..ffcfacd --- /dev/null +++ b/_includes/google-analytics.html @@ -0,0 +1,9 @@ + + + diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..b2a8a75 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,13 @@ + + + + + + + {% feed_meta %} + {% seo %} + + + + {% include custom-head.html %} + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 0000000..8d6417e --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,20 @@ +
+
+ {{ site.title }} + {{ site.tagline }} +
+ + {% if site.data.navigation %} + + {% endif %} +
diff --git a/_includes/mathjax.html b/_includes/mathjax.html new file mode 100644 index 0000000..a5572f6 --- /dev/null +++ b/_includes/mathjax.html @@ -0,0 +1,2 @@ + + diff --git a/_layouts/archive.html b/_layouts/archive.html new file mode 100644 index 0000000..68b24c5 --- /dev/null +++ b/_layouts/archive.html @@ -0,0 +1,15 @@ +--- +layout: default +--- + +
+

{{ page.title }}

+ + {{ content }} + + {% if page.type == "years" %} + {% include archive-by-years.html %} + {% else %} + {% include archive-by-tagories.html %} + {% endif %} +
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..6ea67e6 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,23 @@ + + + {% include head.html %} + +
+ {% include header.html %} + +
+ {{ content }} +
+ + {% include footer.html %} +
+ + {% if page.math %} + {% include mathjax.html %} + {% endif %} + + {% if jekyll.environment == 'production' and site.google_analytics %} + {% include google-analytics.html %} + {% endif %} + + diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..87cda03 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,44 @@ +--- +layout: default +--- + +
+ {% assign posts = site.posts %} + {% if paginator %} + {% assign posts = paginator.posts %} + {% endif %} + {% for post in posts %} +
+

+ + {{ post.title }} + +

+ + + +

+ {% if post.description %} + {{ post.description | strip_html }} + {% else %} + {{ post.excerpt | strip_html }} + {% endif %} +

+
+ {% endfor %} +
+ +{% if paginator %} + +{% endif %} diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..960f767 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,8 @@ +--- +layout: default +--- + +
+

{{ page.title }}

+ {{ content }} +
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..d891774 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,86 @@ +--- +layout: default +--- + +
+

{{ page.title }}

+ + + {{ content }} + + {% if jekyll.environment == "production" and site.disqus and page.comments != false %} + {% include disqus.html %} + {% endif %} +
+ +{% if site.related_posts != empty %} + +{% endif %} diff --git a/_posts/2021-02-16-this-post-demonstrates-post-content-styles.md b/_posts/2021-02-16-this-post-demonstrates-post-content-styles.md new file mode 100644 index 0000000..be91503 --- /dev/null +++ b/_posts/2021-02-16-this-post-demonstrates-post-content-styles.md @@ -0,0 +1,115 @@ +--- +layout: post +title: "This Post Demonstrates Post Content Styles" +categories: Junk +author: +- Bart Simpson +- Nelson Mandela Muntz +meta: "Springfield" +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. + +## Some great heading (h2) + +Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. In arcu magna, aliquet vel pretium et, molestie et arcu. + +Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +## Another great heading (h2) + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. + +### Some great subheading (h3) + +Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. + +Phasellus et hendrerit mauris. Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. + +### Some great subheading (h3) + +Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +> This quote will *change* your life. It will reveal the secrets of the universe, and all the wonders of humanity. Don't misuse it. + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce bibendum neque eget nunc mattis eu sollicitudin enim tincidunt. + +### Some great subheading (h3) + +Vestibulum lacus tortor, ultricies id dignissim ac, bibendum in velit. Proin convallis mi ac felis pharetra aliquam. Curabitur dignissim accumsan rutrum. + +```html + + + + +

Hello, World!

+ + +``` + + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +#### You might want a sub-subheading (h4) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +#### But it's probably overkill (h4) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +##### Could be a smaller sub-heading, `pacman` (h5) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +###### Small yet significant sub-heading (h6) + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +### Oh hai, an unordered list!! + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +- First item, yo +- Second item, dawg +- Third item, what what?! +- Fourth item, fo sheezy my neezy + +### Oh hai, an ordered list!! + +In arcu magna, aliquet vel pretium et, molestie et arcu. Mauris lobortis nulla et felis ullamcorper bibendum. Phasellus et hendrerit mauris. + +1. First item, yo +2. Second item, dawg +3. Third item, what what?! +4. Fourth item, fo sheezy my neezy + + + +## Headings are cool! (h2) + +Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. Praesent varius interdum vehicula. Aenean risus libero, placerat at vestibulum eget, ultricies eu enim. Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +Praesent nulla tortor, malesuada adipiscing adipiscing sollicitudin, adipiscing eget est. + +Proin eget nibh a massa vestibulum pretium. Suspendisse eu nisl a ante aliquet bibendum quis a nunc. + +### Tables + +Title 1 | Title 2 | Title 3 | Title 4 +--------------------- | --------------------- | --------------------- | --------------------- +lorem | lorem ipsum | lorem ipsum dolor | lorem ipsum dolor sit +lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit +lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit +lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit | lorem ipsum dolor sit + + +Title 1 | Title 2 | Title 3 | Title 4 +--- | --- | --- | --- +lorem | lorem ipsum | lorem ipsum dolor | lorem ipsum dolor sit +lorem ipsum dolor sit amet | lorem ipsum dolor sit amet consectetur | lorem ipsum dolor sit amet | lorem ipsum dolor sit +lorem ipsum dolor | lorem ipsum | lorem | lorem ipsum +lorem ipsum dolor | lorem ipsum dolor sit | lorem ipsum dolor sit amet | lorem ipsum dolor sit amet consectetur diff --git a/_posts/2021-02-17-options.md b/_posts/2021-02-17-options.md new file mode 100644 index 0000000..df05b26 --- /dev/null +++ b/_posts/2021-02-17-options.md @@ -0,0 +1,61 @@ +--- +layout: post +title: Options +math: true +--- + +With Monophase as a baseline theme for Jekyll, there aren't many options available out of the box. Basic light and dark mode support is included. Colors are also provided for your own customization. + +- toc +{: toc } + +## Dark mode + +**Dark mode is enabled automatically** via CSS media query—you'll find the source code for this in the `_sass/monophase/_variables.scss` stylesheet. If you're familiar with CSS custom properties, you can also use this method to build your own color schemes. + +[Read more about using CSS dark mode](https://markdotto.com/2018/11/05/css-dark-mode/) via media queries like this: + +```scss +// Example media query to detect dark mode +@media (prefers-color-scheme: dark) { + // ... +} +``` + +## Creating themes + +If you want to make your own color schemes, modify the CSS variables in the `_sass/monophase/_variables.scss` stylesheet with a scoped data attribute or class name. + +For example, below we've created the beginnings of a blue theme: + +```scss +// Example blue theme +[data-theme="blue"] { + --body-bg: var(--blue); + --body-color: #fff; +} +``` + +Then, apply the theme by adding `data-theme="blue"` to the `` element. + +## Google Analytics 4 + +To enable [Google Analytics 4](https://support.google.com/analytics/answer/10089681?hl=en), you just need to set the [Measurement ID](https://support.google.com/analytics/answer/7372977?hl=en) in your `_config.yml`, for example, + +```yml +google_analytics: G-XXXXXXX +``` + +## Math + +Specify `math: true` on the page where you want to enable MathJax. For example, + +```latex +f(a) = \frac{1}{2\pi i}\oint_{\gamma}\frac{f(z)}{z-a}\mathrm{d}z +``` + +will be rendered as + +$$ +f(a) = \frac{1}{2\pi i}\oint_{\gamma}\frac{f(z)}{z-a}\mathrm{d}z +$$ diff --git a/_posts/2021-02-18-example-content.md b/_posts/2021-02-18-example-content.md new file mode 100644 index 0000000..261dae0 --- /dev/null +++ b/_posts/2021-02-18-example-content.md @@ -0,0 +1,163 @@ +--- +layout: post +title: Example Content +author: Mark Otto, Song-Zi Vong +categories: [Example] +tags: [jekyll, html, css] +--- + +**Howdy!** This is an example blog post that shows several types of HTML content supported in this theme. +{: .message-info } + +Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. *Aenean eu leo quam.* Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum. + +> Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit. + +Etiam porta **sem malesuada magna** mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur. + +## Inline HTML elements + +HTML defines a long list of available inline tags, a complete list of which can be found on the [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/HTML/Element). + +- **To bold text**, use ``. +- *To italicize text*, use ``. +- To highlight, use ``. +- Abbreviations, like HTML should use ``, with an optional `title` attribute for the full phrase. +- Citations, like — Mark Otto, should use ``. +- Deleted text should use `` and inserted text should use ``. +- Superscript text uses `` and subscript text uses ``. + +Most of these elements are styled by browsers with few modifications on our part. + +## Footnotes + +Footnotes are supported as part of the Markdown syntax. Here's one in action. Clicking this number[^fn-sample_footnote] will lead you to a footnote. The syntax looks like: + +{% highlight text %} +Clicking this number[^fn-sample_footnote] +{% endhighlight %} + +Each footnote needs the `^fn-` prefix and a unique ID to be referenced for the footnoted content. The syntax for that list looks something like this: + +{% highlight text %} +[^fn-sample_footnote]: Handy! Now click the return link to go back. +{% endhighlight %} + +You can place the footnoted content wherever you like. Markdown parsers should properly place it at the bottom of the post. + +## Heading + +Vivamus sagittis lacus vel augue rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. + +### Code + +Inline code is available with the `` element. Snippets of multiple lines of code are supported through Rouge. Longer lines will automatically scroll horizontally when needed. You may also use code fencing (triple backticks) for rendering code. + +{% highlight js %} +// Example can be run directly in your JavaScript console + +// Create a function that takes two arguments and returns the sum of those arguments +var adder = new Function("a", "b", "return a + b"); + +// Call the function +adder(2, 6); +// > 8 +{% endhighlight %} + +You may also optionally show code snippets with line numbers. Add `linenos` to the Rouge tags. + +{% highlight js linenos %} +// Example can be run directly in your JavaScript console + +// Create a function that takes two arguments and returns the sum of those arguments +var adder = new Function("a", "b", "return a + b"); + +// Call the function +adder(2, 6); +// > 8 +{% endhighlight %} + +Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa. + +### Lists + +Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. + +- Praesent commodo cursus magna, vel scelerisque nisl consectetur et. +- Donec id elit non mi porta gravida at eget metus. +- Nulla vitae elit libero, a pharetra augue. + +Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue. + +1. Vestibulum id ligula porta felis euismod semper. +2. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. +3. Maecenas sed diam eget risus varius blandit sit amet non magna. + +Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis. + +
+
HyperText Markup Language (HTML)
+
The language used to describe and define the content of a Web page
+ +
Cascading Style Sheets (CSS)
+
Used to describe the appearance of Web content
+ +
JavaScript (JS)
+
The programming language used to build advanced Web sites and applications
+
+ +Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nullam quis risus eget urna mollis ornare vel eu leo. + +### Images + +Quisque consequat sapien eget quam rhoncus, sit amet laoreet diam tempus. Aliquam aliquam metus erat, a pulvinar turpis suscipit at. + +![placeholder](http://placehold.it/800x400 "Large example image") +![placeholder](http://placehold.it/400x200 "Medium example image") +![placeholder](http://placehold.it/200x200 "Small example image") + +### Tables + +Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameUpvotesDownvotes
Totals2123
Alice1011
Bob43
Charlie79
+ +Nullam id dolor id nibh ultricies vehicula ut id elit. Sed posuere consectetur est at lobortis. Nullam quis risus eget urna mollis ornare vel eu leo. + +----- + +Want to see something else added? Open an issue. + +[^fn-sample_footnote]: Handy! Now click the return link to go back. diff --git a/_posts/2021-02-21-what-s-jekyll.md b/_posts/2021-02-21-what-s-jekyll.md new file mode 100644 index 0000000..02b2c42 --- /dev/null +++ b/_posts/2021-02-21-what-s-jekyll.md @@ -0,0 +1,13 @@ +--- +layout: post +title: What's Jekyll? +author: jekyllrb.com +categories: [Example] +tags: [jekyll] +--- + +[Jekyll](https://jekyllrb.com) is a static site generator, an open-source tool for creating simple yet powerful websites of all shapes and sizes. From [the project's readme](https://github.com/jekyll/jekyll/blob/master/README.markdown): + +> Jekyll is a simple, blog aware, static site generator. It takes a template directory [...] and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog right here from GitHub. + +It's an immensely useful tool. Find out more by [visiting the project on GitHub](https://github.com/jekyll/jekyll). diff --git a/_posts/2023-05-12-my-new-post.markdown b/_posts/2023-05-12-my-new-post.markdown deleted file mode 100644 index be3f130..0000000 --- a/_posts/2023-05-12-my-new-post.markdown +++ /dev/null @@ -1,15 +0,0 @@ ---- -layout: post -title: "My New Post" -date: 2023-05-12 12:00:00 -0500 -categories: jekyll update ---- - -# My New Post - -This is the content of my new post. - -## Heading 2 - -- List item 1 -- List item 2 diff --git a/_posts/2024-05-12-hello.markdown b/_posts/2024-05-12-hello.markdown deleted file mode 100644 index bdaf2f1..0000000 --- a/_posts/2024-05-12-hello.markdown +++ /dev/null @@ -1,30 +0,0 @@ - ---- -layout: post -title: "Welcome to Jekyll!" -date: 2024-05-12 09:47:17 +0530 -categories: jekyll update ---- -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -Jekyll requires blog post files to be named according to the following format: - -`YEAR-MONTH-DAY-title.MARKUP` - -Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Jekyll also offers powerful support for code snippets: - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -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/_posts/2024-05-12-my-new-test.markdown b/_posts/2024-05-12-my-new-test.markdown deleted file mode 100644 index 2975e9c..0000000 --- a/_posts/2024-05-12-my-new-test.markdown +++ /dev/null @@ -1,2 +0,0 @@ -Hello World -How are you diff --git a/_posts/2024-05-12-welcome-to-jekyll.markdown b/_posts/2024-05-12-welcome-to-jekyll.markdown deleted file mode 100644 index d79d181..0000000 --- a/_posts/2024-05-12-welcome-to-jekyll.markdown +++ /dev/null @@ -1,29 +0,0 @@ ---- -layout: post -title: "Welcome to Jekyll!" -date: 2024-05-12 09:47:17 +0530 -categories: jekyll update ---- -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -Jekyll requires blog post files to be named according to the following format: - -`YEAR-MONTH-DAY-title.MARKUP` - -Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Jekyll also offers powerful support for code snippets: - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -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/monophase/_base.scss b/_sass/monophase/_base.scss new file mode 100644 index 0000000..05834a3 --- /dev/null +++ b/_sass/monophase/_base.scss @@ -0,0 +1,123 @@ +* { + box-sizing: border-box; +} + +body { + color: var(--body-color); + background-color: var(--body-bg-color); + font-family: var(--body-font-family); + font-size: var(--body-font-size); + line-height: var(--body-line-height); +} + +a { + color: var(--link-color); + text-decoration: none; + + &:hover, + &:focus { + color: var(--link-hover-color); + text-decoration: underline; + } +} + +p { + margin-top: 0; + margin-bottom: var(--spacer); +} + +ul, ol, dl { + margin-top: 0; + margin-bottom: var(--spacer); +} + +blockquote { + padding: 0 var(--spacer); + margin: 0 0 var(--spacer) 0; + border-left: .25em solid var(--border-color); + opacity: .65; +} + +figure { + margin: 0; +} + +img { + display: block; + max-width: 100%; + margin-top: 0; + margin-bottom: var(--spacer); + border-radius: var(--border-radius); +} + +code, +pre { + font-family: var(--code-font-family); +} + +code { + padding: .1em .25em; + background-color: var(--code-bg-color); + border-radius: var(--border-radius); +} + +pre { + display: block; + overflow: auto; + padding: var(--spacer); + margin: var(--spacer) 0; + + code { + padding: 0; + background-color: inherit; + } +} + +table { + margin-top: 0; + margin-bottom: var(--spacer); + width: 100%; + border: 0 solid var(--border-color); + border-collapse: collapse; +} + +td, +th { + padding: .25em .5em; + border-color: inherit; + border-style: solid; + border-width: 0; + border-bottom-width: 1px; +} + +th { + text-align: left; +} + +thead th { + border-bottom-color: currentColor; +} + +mark { + padding: .15em; + border-radius: var(--border-radius); + color: var(--body-bg-color); + background-color: var(--info-color); +} + +hr { + position: relative; + margin: var(--spacer-2) 0; + border: 0; + border-top: 1px solid var(--border-color); +} + +abbr { + font-weight: bold; + text-transform: uppercase; + + &[title] { + cursor: help; + border-bottom: 1px dotted var(--border-color); + } +} diff --git a/_sass/monophase/_highlight-dark.scss b/_sass/monophase/_highlight-dark.scss new file mode 100644 index 0000000..1f4ec91 --- /dev/null +++ b/_sass/monophase/_highlight-dark.scss @@ -0,0 +1,91 @@ +/** + * rougify style gruvbox + */ + +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight, .highlight .w { + color: #fbf1c7; + background-color: #282828; +} +.highlight .err { + color: #fb4934; + background-color: #282828; + font-weight: bold; +} +.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs { + color: #928374; + font-style: italic; +} +.highlight .cp { + color: #8ec07c; +} +.highlight .nt { + color: #fb4934; +} +.highlight .o, .highlight .ow { + color: #fbf1c7; +} +.highlight .p, .highlight .pi { + color: #fbf1c7; +} +.highlight .gi { + color: #b8bb26; + background-color: #282828; +} +.highlight .gd { + color: #fb4934; + background-color: #282828; +} +.highlight .gh { + color: #b8bb26; + font-weight: bold; +} +.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv { + color: #fb4934; +} +.highlight .kc { + color: #d3869b; +} +.highlight .kt { + color: #fabd2f; +} +.highlight .kd { + color: #fe8019; +} +.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 { + color: #b8bb26; + font-style: italic; +} +.highlight .si { + color: #b8bb26; + font-style: italic; +} +.highlight .sr { + color: #b8bb26; + font-style: italic; +} +.highlight .sa { + color: #fb4934; +} +.highlight .se { + color: #fe8019; +} +.highlight .nn { + color: #8ec07c; +} +.highlight .nc { + color: #8ec07c; +} +.highlight .no { + color: #d3869b; +} +.highlight .na { + color: #b8bb26; +} +.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx { + color: #d3869b; +} +.highlight .ss { + color: #83a598; +} diff --git a/_sass/monophase/_highlight-light.scss b/_sass/monophase/_highlight-light.scss new file mode 100644 index 0000000..2bca7ae --- /dev/null +++ b/_sass/monophase/_highlight-light.scss @@ -0,0 +1,217 @@ +/** + * rougify style github + */ + +.highlight table td { padding: 5px; } +.highlight table pre { margin: 0; } +.highlight .cm { + color: #999988; + font-style: italic; +} +.highlight .cp { + color: #999999; + font-weight: bold; +} +.highlight .c1 { + color: #999988; + font-style: italic; +} +.highlight .cs { + color: #999999; + font-weight: bold; + font-style: italic; +} +.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf { + color: #999988; + font-style: italic; +} +.highlight .err { + color: #a61717; + background-color: #e3d2d2; +} +.highlight .gd { + color: #000000; + background-color: #ffdddd; +} +.highlight .ge { + color: #000000; + font-style: italic; +} +.highlight .gr { + color: #aa0000; +} +.highlight .gh { + color: #999999; +} +.highlight .gi { + color: #000000; + background-color: #ddffdd; +} +.highlight .go { + color: #888888; +} +.highlight .gp { + color: #555555; +} +.highlight .gs { + font-weight: bold; +} +.highlight .gu { + color: #aaaaaa; +} +.highlight .gt { + color: #aa0000; +} +.highlight .kc { + color: #000000; + font-weight: bold; +} +.highlight .kd { + color: #000000; + font-weight: bold; +} +.highlight .kn { + color: #000000; + font-weight: bold; +} +.highlight .kp { + color: #000000; + font-weight: bold; +} +.highlight .kr { + color: #000000; + font-weight: bold; +} +.highlight .kt { + color: #445588; + font-weight: bold; +} +.highlight .k, .highlight .kv { + color: #000000; + font-weight: bold; +} +.highlight .mf { + color: #009999; +} +.highlight .mh { + color: #009999; +} +.highlight .il { + color: #009999; +} +.highlight .mi { + color: #009999; +} +.highlight .mo { + color: #009999; +} +.highlight .m, .highlight .mb, .highlight .mx { + color: #009999; +} +.highlight .sa { + color: #000000; + font-weight: bold; +} +.highlight .sb { + color: #d14; +} +.highlight .sc { + color: #d14; +} +.highlight .sd { + color: #d14; +} +.highlight .s2 { + color: #d14; +} +.highlight .se { + color: #d14; +} +.highlight .sh { + color: #d14; +} +.highlight .si { + color: #d14; +} +.highlight .sx { + color: #d14; +} +.highlight .sr { + color: #009926; +} +.highlight .s1 { + color: #d14; +} +.highlight .ss { + color: #990073; +} +.highlight .s, .highlight .dl { + color: #d14; +} +.highlight .na { + color: #008080; +} +.highlight .bp { + color: #999999; +} +.highlight .nb { + color: #0086B3; +} +.highlight .nc { + color: #445588; + font-weight: bold; +} +.highlight .no { + color: #008080; +} +.highlight .nd { + color: #3c5d5d; + font-weight: bold; +} +.highlight .ni { + color: #800080; +} +.highlight .ne { + color: #990000; + font-weight: bold; +} +.highlight .nf, .highlight .fm { + color: #990000; + font-weight: bold; +} +.highlight .nl { + color: #990000; + font-weight: bold; +} +.highlight .nn { + color: #555555; +} +.highlight .nt { + color: #000080; +} +.highlight .vc { + color: #008080; +} +.highlight .vg { + color: #008080; +} +.highlight .vi { + color: #008080; +} +.highlight .nv, .highlight .vm { + color: #008080; +} +.highlight .ow { + color: #000000; + font-weight: bold; +} +.highlight .o { + color: #000000; + font-weight: bold; +} +.highlight .w { + color: #bbbbbb; +} +.highlight { + background-color: #f8f8f8; +} diff --git a/_sass/monophase/_layout.scss b/_sass/monophase/_layout.scss new file mode 100644 index 0000000..d9f0e5f --- /dev/null +++ b/_sass/monophase/_layout.scss @@ -0,0 +1,382 @@ +.container { + max-width: $md-screen; + padding-left: var(--spacer); + padding-right: var(--spacer); + margin-left: auto; + margin-right: auto; +} + +@media screen and (min-width: $md-screen) { + .container { + padding-left: var(--spacer-2); + padding-right: var(--spacer-2); + } +} + +/** + * Header + */ + +.masthead { + padding-top: var(--spacer); + padding-bottom: var(--spacer); + margin-bottom: var(--spacer-3); +} + +.masthead-title { + font-size: 1.3em; + font-weight: bold; + + a { + color: inherit; + text-decoration: none; + } + + .tagline { + opacity: .5; + } +} + +.nav-list { + padding: 0; + margin: var(--spacer) 0 0 0; + border-top: 1px solid var(--border-color); + border-bottom: 1px solid var(--border-color); + list-style: none; + + li { + display: inline-block; + margin: 0 .4em; + } + + a { + color: inherit; + + &:hover, + &:focus { + text-decoration: line-through; + } + } + + a.current { + text-decoration: line-through; + } +} + +/** + * Post + */ + +.posts { + .post { + padding: var(--spacer); + margin-bottom: var(--spacer); + border: 1px solid var(--border-color); + border-radius: var(--border-radius); + + .post-excerpt { + margin-bottom: 0; + } + } +} + +.page, +.post { + margin-bottom: var(--spacer-2); + + h1, h2, h3, h4, h5, h6 { + color: var(--heading-color); + } +} + +.page-title, +.post-title { + margin-top: 0; + + a { + color: inherit; + } +} + +.post-meta { + display: block; + margin-top: -.5em; + margin-bottom: var(--spacer); + opacity: .65; + font-size: .85em; +} + +.post-categories, +.post-tags { + display: inline-block; + list-style: none; + padding: 0; + margin: 0; + + li { + display: inline-block; + + &:not(:last-child) { + margin-right: .4em; + } + } +} + +.post-category { + border-bottom: 2px dotted var(--border-color); +} + +a.post-category { + color: inherit; + + &:hover, + &:focus { + border-bottom-style: solid; + border-color: var(--body-color); + text-decoration: none; + } +} + +.post-tag { + padding: .1em .5em; + border: 1px solid var(--border-color); + border-radius: var(--border-radius); + background-color: rgba(var(--link-color-rgb), .3); +} + +a.post-tag { + color: inherit; + + &:hover, + &:focus { + background-color: rgba(var(--link-color-rgb), .6); + text-decoration: none; + } +} + +// Footnote number within body text +a[href^="#fn:"], +// Back to footnote link +a[href^="#fnref:"] { + display: inline-block; + margin-left: .1em; + font-weight: bold; +} +// List of footnotes +.footnotes { + margin-top: var(--spacer-2); + font-size: 85%; +} + +.related { + padding-top: var(--spacer-2); + padding-bottom: var(--spacer-2); + margin-bottom: var(--spacer-2); + border-top: 1px solid var(--border-color); + border-bottom: 1px solid var(--border-color); +} + +.related-title { + margin-top: 0; +} + +.related-posts { + padding-left: 0; + list-style: none; + + small { + opacity: .5; + } +} + +/** + * Code + */ + +.highlight { + border-radius: var(--border-radius); + background-color: var(--code-bg-color); +} + +.rouge-table { + margin: 0; + font-size: 100%; + + &, + td, + th { + border: 0; + padding: 0; + } + + pre { + padding: 0; + margin: 0; + } + + .gutter { + vertical-align: top; + user-select: none; + opacity: .25; + padding-right: var(--spacer); + } +} + +/** + * Pagination + */ + +.pagination { + display: flex; + text-align: center; + margin-top: var(--spacer-2); +} + +.pagination-item { + float: left; + width: 50%; + padding: var(--spacer); + border: 1px solid var(--border-color); + + &:first-child { + border-right-width: 0; + border-top-left-radius: var(--border-radius); + border-bottom-left-radius: var(--border-radius); + } + &:last-child { + border-top-right-radius: var(--border-radius); + border-bottom-right-radius: var(--border-radius); + } +} + +a.pagination-item:hover { + background-color: var(--border-color); + text-decoration: none; +} + +/** + * Footer + */ + +.footer { + padding-top: var(--spacer); + padding-bottom: var(--spacer); + margin-top: var(--spacer-3); + + p { + margin: 0; + } +} + +.social-icons { + list-style: none; + padding: 0; + margin: var(--spacer) 0; + height: calc(var(--body-line-height) * var(--body-font-size)); +} +.social-icon-item { + float: left; + margin-right: var(--spacer); +} + +@media screen and (min-width: $md-screen) { + .footer { + display: flex; + } + .footer-column { + width: 100%; + } + .social-icons { + margin: 0; + } +} + +/** + * Message -- Show different levels of alert messages to users. + */ + +.message-info, +.message-warning, +.message-danger { + padding: var(--spacer); + border-radius: var(--border-radius); + color: var(--body-bg-color); +} + +.message-info { + background-color: var(--info-color); +} + +.message-warning { + background-color: var(--warning-color); +} + +.message-danger { + background-color: var(--danger-color); +} + +/** + * Archive + */ + +.taxonomies-wrapper { + margin-bottom: var(--spacer-2); +} + +.taxonomies { + list-style: none; + display: grid; + grid-column-gap: 2em; + grid-template-columns: repeat(2, 1fr); + margin: 0; + padding: 0; + font-weight: bold; + + .taxonomy { + display: flex; + padding: 0.25em 0; + justify-content: space-between; + text-decoration: none; + border-bottom: 1px solid; + margin-bottom: var(--spacer); + } +} + +.post-list-by-taxonomy { + time { + font-family: monospace; + } +} + +.back-to-top { + display: block; + font-size: 0.8em; + text-transform: uppercase; + text-align: right; + text-decoration: none; +} + +@media (min-width: $sm-screen) { + .taxonomies { + grid-template-columns: repeat(3, 1fr); + } +} + +/** + * Markdown TOC + */ + +#markdown-toc { + padding: var(--spacer-2) var(--spacer-3); + margin: var(--spacer-2) 0; + border: solid var(--border-color); + border-width: 1px 0; + + &::before { + display: block; + margin-left: calc(var(--spacer-3) * -1); + content: "Contents"; + font-size: 85%; + font-weight: 500; + } +} diff --git a/_sass/monophase/_variables.scss b/_sass/monophase/_variables.scss new file mode 100644 index 0000000..467578e --- /dev/null +++ b/_sass/monophase/_variables.scss @@ -0,0 +1,54 @@ +$sm-screen: 35.5rem; +$md-screen: 48rem; +$lg-screen: 64rem; +$xl-screen: 80rem; + +:root { + --spacer: 1rem; + --spacer-2: calc(var(--spacer) * 2); + --spacer-3: calc(var(--spacer) * 3); + + // https://github.com/necolas/normalize.css/issues/665 + --body-font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; + --body-font-size: 16px; + --body-line-height: 1.5; + + --border-radius: .5em; + + // https://qwtel.com/posts/software/the-monospaced-system-ui-css-font-stack/ + --code-font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace; + + /** + * Color + */ + --body-bg-color: var(--oc-white); + --body-color: var(--oc-gray-9); + --code-bg-color: var(--oc-gray-1); + --heading-color: var(--oc-black); + --border-color: var(--oc-gray-4); + --link-color: var(--oc-blue-9); + --link-color-rgb: var(--oc-blue-9-rgb); + --link-hover-color: var(--oc-blue-7); + --info-color: var(--oc-green-9); + --warning-color: var(--oc-yellow-9); + --danger-color: var(--oc-red-9); +} + +@media (prefers-color-scheme: dark) { + :root { + /** + * Color + */ + --body-bg-color: var(--oc-gray-9); + --body-color: var(--oc-gray-4); + --code-bg-color: var(--oc-gray-7); + --heading-color: var(--oc-white); + --border-color: var(--oc-gray-7); + --link-color: var(--oc-cyan-4); + --link-color-rgb: var(--oc-cyan-4-rgb); + --link-hover-color: var(--oc-cyan-6); + --info-color: var(--oc-green-1); + --warning-color: var(--oc-yellow-1); + --danger-color: var(--oc-red-1); + } +} diff --git a/_sass/monophase/main.scss b/_sass/monophase/main.scss new file mode 100644 index 0000000..477e74f --- /dev/null +++ b/_sass/monophase/main.scss @@ -0,0 +1,8 @@ +@import "variables"; +@import "base"; +@import "layout"; + +@import "highlight-light"; +@media (prefers-color-scheme: dark) { + @import "highlight-dark"; +} diff --git a/about.markdown b/about.markdown deleted file mode 100644 index 8b4e0b2..0000000 --- a/about.markdown +++ /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 diff --git a/about.md b/about.md new file mode 100644 index 0000000..d7fa382 --- /dev/null +++ b/about.md @@ -0,0 +1,24 @@ +--- +layout: page +title: About +permalink: /about/ +--- + +Hey there! This page is included as an example. Feel free to customize it for your own use upon downloading. Carry on! +{: .message-info } + +Monophase is *a one-column minimal responsive Jekyll blog theme*. + +Learn more and contribute on [GitHub](https://github.com/zivhub/monophase). + +## Setup + +Some fun facts about the setup of this project include: + +- Built for [Jekyll](https://jekyllrb.com) +- Developed on GitHub and hosted for free on [GitHub Pages](https://pages.github.com) +- Coded with [Visual Studio Code](https://code.visualstudio.com/), an amazing open source code editor + +Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/zivhub/monophase/issues/new) or [ask me on Twitter](https://twitter.com/zivtwt). + +Thanks for reading! diff --git a/assets/monophase/styles.scss b/assets/monophase/styles.scss new file mode 100644 index 0000000..1f8f1bb --- /dev/null +++ b/assets/monophase/styles.scss @@ -0,0 +1,3 @@ +--- +--- +@import "monophase/main"; diff --git a/assets/normalize.css b/assets/normalize.css new file mode 100644 index 0000000..192eb9c --- /dev/null +++ b/assets/normalize.css @@ -0,0 +1,349 @@ +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers. + */ + +body { + margin: 0; +} + +/** + * Render the `main` element consistently in IE. + */ + +main { + display: block; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Remove the gray background on active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove the border on images inside links in IE 10. + */ + +img { + border-style: none; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ + +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ + +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ + +/** + * Add the correct display in IE 10+. + */ + +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ + +[hidden] { + display: none; +} diff --git a/assets/open-color.css b/assets/open-color.css new file mode 100644 index 0000000..804f7e7 --- /dev/null +++ b/assets/open-color.css @@ -0,0 +1,343 @@ +/* + * + * 𝗖 𝗢 𝗟 𝗢 𝗥 + * v 1.7.0 + * + * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */ + +:root { + +/* General + * ─────────────────────────────────── */ + + --oc-white: #ffffff; + --oc-white-rgb: 255, 255, 255; + --oc-black: #000000; + --oc-black-rgb: 0, 0, 0; + + +/* Gray + * ─────────────────────────────────── */ + + --oc-gray-0: #f8f9fa; + --oc-gray-0-rgb: 248, 249, 250; + --oc-gray-1: #f1f3f5; + --oc-gray-1-rgb: 241, 243, 245; + --oc-gray-2: #e9ecef; + --oc-gray-2-rgb: 233, 236, 239; + --oc-gray-3: #dee2e6; + --oc-gray-3-rgb: 222, 226, 230; + --oc-gray-4: #ced4da; + --oc-gray-4-rgb: 206, 212, 218; + --oc-gray-5: #adb5bd; + --oc-gray-5-rgb: 173, 181, 189; + --oc-gray-6: #868e96; + --oc-gray-6-rgb: 134, 142, 150; + --oc-gray-7: #495057; + --oc-gray-7-rgb: 73, 80, 87; + --oc-gray-8: #343a40; + --oc-gray-8-rgb: 52, 58, 64; + --oc-gray-9: #212529; + --oc-gray-9-rgb: 33, 37, 41; + + +/* Red + * ─────────────────────────────────── */ + + --oc-red-0: #fff5f5; + --oc-red-0-rgb: 255, 245, 245; + --oc-red-1: #ffe3e3; + --oc-red-1-rgb: 255, 227, 227; + --oc-red-2: #ffc9c9; + --oc-red-2-rgb: 255, 201, 201; + --oc-red-3: #ffa8a8; + --oc-red-3-rgb: 255, 168, 168; + --oc-red-4: #ff8787; + --oc-red-4-rgb: 255, 135, 135; + --oc-red-5: #ff6b6b; + --oc-red-5-rgb: 255, 107, 107; + --oc-red-6: #fa5252; + --oc-red-6-rgb: 250, 82, 82; + --oc-red-7: #f03e3e; + --oc-red-7-rgb: 240, 62, 62; + --oc-red-8: #e03131; + --oc-red-8-rgb: 224, 49, 49; + --oc-red-9: #c92a2a; + --oc-red-9-rgb: 201, 42, 42; + + +/* Pink + * ─────────────────────────────────── */ + + --oc-pink-0: #fff0f6; + --oc-pink-0-rgb: 255, 240, 246; + --oc-pink-1: #ffdeeb; + --oc-pink-1-rgb: 255, 222, 235; + --oc-pink-2: #fcc2d7; + --oc-pink-2-rgb: 252, 194, 215; + --oc-pink-3: #faa2c1; + --oc-pink-3-rgb: 250, 162, 193; + --oc-pink-4: #f783ac; + --oc-pink-4-rgb: 247, 131, 172; + --oc-pink-5: #f06595; + --oc-pink-5-rgb: 240, 101, 149; + --oc-pink-6: #e64980; + --oc-pink-6-rgb: 230, 73, 128; + --oc-pink-7: #d6336c; + --oc-pink-7-rgb: 214, 51, 108; + --oc-pink-8: #c2255c; + --oc-pink-8-rgb: 194, 37, 92; + --oc-pink-9: #a61e4d; + --oc-pink-9-rgb: 166, 30, 77; + + +/* Grape + * ─────────────────────────────────── */ + + --oc-grape-0: #f8f0fc; + --oc-grape-0-rgb: 248, 240, 252; + --oc-grape-1: #f3d9fa; + --oc-grape-1-rgb: 243, 217, 250; + --oc-grape-2: #eebefa; + --oc-grape-2-rgb: 238, 190, 250; + --oc-grape-3: #e599f7; + --oc-grape-3-rgb: 229, 153, 247; + --oc-grape-4: #da77f2; + --oc-grape-4-rgb: 218, 119, 242; + --oc-grape-5: #cc5de8; + --oc-grape-5-rgb: 204, 93, 232; + --oc-grape-6: #be4bdb; + --oc-grape-6-rgb: 190, 75, 219; + --oc-grape-7: #ae3ec9; + --oc-grape-7-rgb: 174, 62, 201; + --oc-grape-8: #9c36b5; + --oc-grape-8-rgb: 156, 54, 181; + --oc-grape-9: #862e9c; + --oc-grape-9-rgb: 134, 46, 156; + + +/* Violet + * ─────────────────────────────────── */ + + --oc-violet-0: #f3f0ff; + --oc-violet-0-rgb: 243, 240, 255; + --oc-violet-1: #e5dbff; + --oc-violet-1-rgb: 229, 219, 255; + --oc-violet-2: #d0bfff; + --oc-violet-2-rgb: 208, 191, 255; + --oc-violet-3: #b197fc; + --oc-violet-3-rgb: 177, 151, 252; + --oc-violet-4: #9775fa; + --oc-violet-4-rgb: 151, 117, 250; + --oc-violet-5: #845ef7; + --oc-violet-5-rgb: 132, 94, 247; + --oc-violet-6: #7950f2; + --oc-violet-6-rgb: 121, 80, 242; + --oc-violet-7: #7048e8; + --oc-violet-7-rgb: 112, 72, 232; + --oc-violet-8: #6741d9; + --oc-violet-8-rgb: 103, 65, 217; + --oc-violet-9: #5f3dc4; + --oc-violet-9-rgb: 95, 61, 196; + + +/* Indigo + * ─────────────────────────────────── */ + + --oc-indigo-0: #edf2ff; + --oc-indigo-0-rgb: 237, 242, 255; + --oc-indigo-1: #dbe4ff; + --oc-indigo-1-rgb: 219, 228, 255; + --oc-indigo-2: #bac8ff; + --oc-indigo-2-rgb: 186, 200, 255; + --oc-indigo-3: #91a7ff; + --oc-indigo-3-rgb: 145, 167, 255; + --oc-indigo-4: #748ffc; + --oc-indigo-4-rgb: 116, 143, 252; + --oc-indigo-5: #5c7cfa; + --oc-indigo-5-rgb: 92, 124, 250; + --oc-indigo-6: #4c6ef5; + --oc-indigo-6-rgb: 76, 110, 245; + --oc-indigo-7: #4263eb; + --oc-indigo-7-rgb: 66, 99, 235; + --oc-indigo-8: #3b5bdb; + --oc-indigo-8-rgb: 59, 91, 219; + --oc-indigo-9: #364fc7; + --oc-indigo-9-rgb: 54, 79, 199; + + +/* Blue + * ─────────────────────────────────── */ + + --oc-blue-0: #e7f5ff; + --oc-blue-0-rgb: 231, 245, 255; + --oc-blue-1: #d0ebff; + --oc-blue-1-rgb: 208, 235, 255; + --oc-blue-2: #a5d8ff; + --oc-blue-2-rgb: 165, 216, 255; + --oc-blue-3: #74c0fc; + --oc-blue-3-rgb: 116, 192, 252; + --oc-blue-4: #4dabf7; + --oc-blue-4-rgb: 77, 171, 247; + --oc-blue-5: #339af0; + --oc-blue-5-rgb: 51, 154, 240; + --oc-blue-6: #228be6; + --oc-blue-6-rgb: 34, 139, 230; + --oc-blue-7: #1c7ed6; + --oc-blue-7-rgb: 28, 126, 214; + --oc-blue-8: #1971c2; + --oc-blue-8-rgb: 25, 113, 194; + --oc-blue-9: #1864ab; + --oc-blue-9-rgb: 24, 100, 171; + + +/* Cyan + * ─────────────────────────────────── */ + + --oc-cyan-0: #e3fafc; + --oc-cyan-0-rgb: 227, 250, 252; + --oc-cyan-1: #c5f6fa; + --oc-cyan-1-rgb: 197, 246, 250; + --oc-cyan-2: #99e9f2; + --oc-cyan-2-rgb: 153, 233, 242; + --oc-cyan-3: #66d9e8; + --oc-cyan-3-rgb: 102, 217, 232; + --oc-cyan-4: #3bc9db; + --oc-cyan-4-rgb: 59, 201, 219; + --oc-cyan-5: #22b8cf; + --oc-cyan-5-rgb: 34, 184, 207; + --oc-cyan-6: #15aabf; + --oc-cyan-6-rgb: 21, 170, 191; + --oc-cyan-7: #1098ad; + --oc-cyan-7-rgb: 16, 152, 173; + --oc-cyan-8: #0c8599; + --oc-cyan-8-rgb: 12, 133, 153; + --oc-cyan-9: #0b7285; + --oc-cyan-9-rgb: 11, 114, 133; + + +/* Teal + * ─────────────────────────────────── */ + + --oc-teal-0: #e6fcf5; + --oc-teal-0-rgb: 230, 252, 245; + --oc-teal-1: #c3fae8; + --oc-teal-1-rgb: 195, 250, 232; + --oc-teal-2: #96f2d7; + --oc-teal-2-rgb: 150, 242, 215; + --oc-teal-3: #63e6be; + --oc-teal-3-rgb: 99, 230, 190; + --oc-teal-4: #38d9a9; + --oc-teal-4-rgb: 56, 217, 169; + --oc-teal-5: #20c997; + --oc-teal-5-rgb: 32, 201, 151; + --oc-teal-6: #12b886; + --oc-teal-6-rgb: 18, 184, 134; + --oc-teal-7: #0ca678; + --oc-teal-7-rgb: 12, 166, 120; + --oc-teal-8: #099268; + --oc-teal-8-rgb: 9, 146, 104; + --oc-teal-9: #087f5b; + --oc-teal-9-rgb: 8, 127, 91; + + +/* Green + * ─────────────────────────────────── */ + + --oc-green-0: #ebfbee; + --oc-green-0-rgb: 235, 251, 238; + --oc-green-1: #d3f9d8; + --oc-green-1-rgb: 211, 249, 216; + --oc-green-2: #b2f2bb; + --oc-green-2-rgb: 178, 242, 187; + --oc-green-3: #8ce99a; + --oc-green-3-rgb: 140, 233, 154; + --oc-green-4: #69db7c; + --oc-green-4-rgb: 105, 219, 124; + --oc-green-5: #51cf66; + --oc-green-5-rgb: 81, 207, 102; + --oc-green-6: #40c057; + --oc-green-6-rgb: 64, 192, 87; + --oc-green-7: #37b24d; + --oc-green-7-rgb: 55, 178, 77; + --oc-green-8: #2f9e44; + --oc-green-8-rgb: 47, 158, 68; + --oc-green-9: #2b8a3e; + --oc-green-9-rgb: 43, 138, 62; + + +/* Lime + * ─────────────────────────────────── */ + + --oc-lime-0: #f4fce3; + --oc-lime-0-rgb: 244, 252, 227; + --oc-lime-1: #e9fac8; + --oc-lime-1-rgb: 233, 250, 200; + --oc-lime-2: #d8f5a2; + --oc-lime-2-rgb: 216, 245, 162; + --oc-lime-3: #c0eb75; + --oc-lime-3-rgb: 192, 235, 117; + --oc-lime-4: #a9e34b; + --oc-lime-4-rgb: 169, 227, 75; + --oc-lime-5: #94d82d; + --oc-lime-5-rgb: 148, 216, 45; + --oc-lime-6: #82c91e; + --oc-lime-6-rgb: 130, 201, 30; + --oc-lime-7: #74b816; + --oc-lime-7-rgb: 116, 184, 22; + --oc-lime-8: #66a80f; + --oc-lime-8-rgb: 102, 168, 15; + --oc-lime-9: #5c940d; + --oc-lime-9-rgb: 92, 148, 13; + + +/* Yellow + * ─────────────────────────────────── */ + + --oc-yellow-0: #fff9db; + --oc-yellow-0-rgb: 255, 249, 219; + --oc-yellow-1: #fff3bf; + --oc-yellow-1-rgb: 255, 243, 191; + --oc-yellow-2: #ffec99; + --oc-yellow-2-rgb: 255, 236, 153; + --oc-yellow-3: #ffe066; + --oc-yellow-3-rgb: 255, 224, 102; + --oc-yellow-4: #ffd43b; + --oc-yellow-4-rgb: 255, 212, 59; + --oc-yellow-5: #fcc419; + --oc-yellow-5-rgb: 252, 196, 25; + --oc-yellow-6: #fab005; + --oc-yellow-6-rgb: 250, 176, 5; + --oc-yellow-7: #f59f00; + --oc-yellow-7-rgb: 245, 159, 0; + --oc-yellow-8: #f08c00; + --oc-yellow-8-rgb: 240, 140, 0; + --oc-yellow-9: #e67700; + --oc-yellow-9-rgb: 230, 119, 0; + + +/* Orange + * ─────────────────────────────────── */ + + --oc-orange-0: #fff4e6; + --oc-orange-0-rgb: 255, 244, 230; + --oc-orange-1: #ffe8cc; + --oc-orange-1-rgb: 255, 232, 204; + --oc-orange-2: #ffd8a8; + --oc-orange-2-rgb: 255, 216, 168; + --oc-orange-3: #ffc078; + --oc-orange-3-rgb: 255, 192, 120; + --oc-orange-4: #ffa94d; + --oc-orange-4-rgb: 255, 169, 77; + --oc-orange-5: #ff922b; + --oc-orange-5-rgb: 255, 146, 43; + --oc-orange-6: #fd7e14; + --oc-orange-6-rgb: 253, 126, 20; + --oc-orange-7: #f76707; + --oc-orange-7-rgb: 247, 103, 7; + --oc-orange-8: #e8590c; + --oc-orange-8-rgb: 232, 89, 12; + --oc-orange-9: #d9480f; + --oc-orange-9-rgb: 217, 72, 15; + +} diff --git a/categories.md b/categories.md new file mode 100644 index 0000000..4853481 --- /dev/null +++ b/categories.md @@ -0,0 +1,6 @@ +--- +layout: archive +type: categories +title: Categories +permalink: /categories/ +--- diff --git a/index.html b/index.html new file mode 100644 index 0000000..e4d427d --- /dev/null +++ b/index.html @@ -0,0 +1,3 @@ +--- +layout: home +--- diff --git a/index.markdown b/index.markdown deleted file mode 100644 index 0671507..0000000 --- a/index.markdown +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Feel free to add content and custom Front Matter to this file. -# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults - -layout: home ---- diff --git a/monophase.gemspec b/monophase.gemspec new file mode 100644 index 0000000..8b3433d --- /dev/null +++ b/monophase.gemspec @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +Gem::Specification.new do |spec| + spec.name = "monophase" + spec.version = "0.1.0" + spec.authors = ["Songzi Vong"] + spec.email = ["zivmsg@gmail.com"] + + spec.summary = "A one-column minimal responsive Jekyll blog theme" + spec.homepage = "https://zivlog.io/monophase/" + 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.9" + spec.add_runtime_dependency "jekyll-feed", "~> 0.15" + spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" + spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.6" + spec.add_runtime_dependency "kramdown-parser-gfm", "~> 1.1" +end diff --git a/tags.md b/tags.md new file mode 100644 index 0000000..54fe38c --- /dev/null +++ b/tags.md @@ -0,0 +1,6 @@ +--- +layout: archive +type: tags +title: Tags +permalink: /tags/ +--- diff --git a/years.md b/years.md new file mode 100644 index 0000000..a3aff26 --- /dev/null +++ b/years.md @@ -0,0 +1,6 @@ +--- +layout: archive +type: years +title: Years +permalink: /years/ +--- From 3fae35a46eebbecc6ccf2aeff02700f67f1eab51 Mon Sep 17 00:00:00 2001 From: Vishakh Abhayan Date: Mon, 20 May 2024 04:02:55 +0530 Subject: [PATCH 2/2] feat:gh pages --- _config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 1ea01a1..035d9e5 100644 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,7 @@ -title: μCampus -tagline: hjkedhasjdjhoasjdljsacjldnj +title: μlearn +tagline: Campus Activites author: - name: Song-Zi Vong + name: Vishakh Abhayan url: https://twitter.com/AbhayanVishakh plugins: