Repository: huangyz0918/moving Branch: main Commit: 5a489e2273c6 Files: 29 Total size: 54.2 KB Directory structure: gitextract_u1s11lwh/ ├── .github/ │ └── workflows/ │ └── deploy.yml ├── .gitignore ├── Gemfile ├── LICENSE.txt ├── README.md ├── _config.yml ├── _includes/ │ ├── footer.html │ ├── google-analytics.html │ ├── head.html │ └── social.html ├── _layouts/ │ ├── about.html │ ├── default.html │ ├── home.html │ └── post.html ├── _posts/ │ ├── 2016-01-06-welcome-to-jekyll.md │ ├── 2016-02-06-post-content-styles.md │ ├── 2016-03-19-super-short-article.md │ ├── 2016-04-23-super-long-article.md │ ├── 2016-05-01-code-highlight-tests.md │ ├── 2019-06-23-language-tests.md │ └── 2020-04-15-math-test.md ├── _sass/ │ ├── moving/ │ │ ├── _base.scss │ │ └── _layout.scss │ └── moving.scss ├── about.md ├── assets/ │ └── css/ │ ├── agate.css │ └── main.scss ├── index.md └── moving.gemspec ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/workflows/deploy.yml ================================================ # 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 # documentation. # Sample workflow for building and deploying a Jekyll site to GitHub Pages name: deploy on: # Runs on pushes targeting the default branch push: branches: ["main"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" cancel-in-progress: false jobs: # Build job build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Setup Ruby uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 with: 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@v3 - 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@v2 # Deployment job deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2 ================================================ FILE: .gitignore ================================================ *.gem .bundle .jekyll-cache .sass-cache _site Gemfile.lock .DS_Store ================================================ FILE: Gemfile ================================================ # frozen_string_literal: true source "https://rubygems.org" gemspec gem 'wdm', '>= 0.1.0' if Gem.win_platform? ================================================ FILE: LICENSE.txt ================================================ The MIT License (MIT) Copyright (c) 2019 huangyz0918 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. ================================================ FILE: README.md ================================================ # moving [](https://badge.fury.io/rb/moving)  Moving is a clean and minimalist theme for [Jekyll](https://jekyllrb.com/), focusing on pure and efficient writing. [[view demo]](https://huangyz.name/moving/)  If you enjoy this theme, you can buy me a coffee : ) [](https://www.paypal.me/huangyz0918) ## Installation ### New Blog If you want to create a new blog using moving. You can follow these steps after setting up the [Jekyll](https://jekyllrb.com) environments: Clone this repository: ```bash git clone https://github.com/huangyz0918/moving.git ``` Move into that directory: ```bash cd moving/ ``` Install required gems using `bundle`: ```bash bundle install ``` Run the blog in localhost ```bash jekyll serve ``` Once you successfully run the moving blog, you can modify the theme and add posts by yourself, have fun! ### Add Moving to an Existing Blog Add this line to your Jekyll site's `Gemfile`: ```ruby gem "moving" ``` And add this line to your Jekyll site's `_config.yml`: ```yaml theme: moving ``` And then execute: $ bundle Or install it yourself as: $ gem install moving ### Deploy to Github Pages :warning: If you want to publish your site in [Github Pages](https://pages.github.com/). Change `theme: xxx` in `_config.yml` to `remote_theme: huangyz0918/moving` then push to your github repo (this is important, or you will get an error from github pages that not support the moving theme). If you want to test your site locally, you can change that to `theme: moving` and build again. Here is an [example](https://github.com/huangyz0918/personal-page-blog) for Github Pages. ## Usage You can modify the `_config.yml` to custom your blog. An example is if you want to change the back button's text in each post, you can change the `back_to`. ```yaml title: Moving # The title of the blog author: Your Name # Your name email: your-email@domain.com # your email shown in the footer url: https://huangyz.name/moving/ # this is your site's root address. description: > # this means to ignore newlines until "show_excerpts:" A clean and minimalist theme for Jekyll. favicon: "./favicon.ico" # set the favicon of the site show_excerpts: false # set to true to show excerpts on the homepage # Moving date format # refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this moving: avatar_url: "https://i.loli.net/2019/08/26/JzCLhDWPEybZr2T.jpg" # avatar in about page about_you: a short description about you. # short description about you in about page date_format: "%b %d" # date format of posts in home page back_to: "Home" # In the post page, you have a back button above the title, you can custom the text by yourself. # Build settings theme: moving # note, please use huangyz0918/moving if you want to publish to Github Pages. ``` ## Contributing Bug reports and pull requests are welcome on GitHub at [here](https://github.com/huangyz0918/moving). 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 `moving.gemspec` accordingly. ## License The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). ================================================ FILE: _config.yml ================================================ title: Moving # The title of the blog author: Your Name # Your name email: your-email@domain.com # your email shown in the footer url: https://huangyz.name/moving/ # this is your site's root address. description: > # this means to ignore newlines until "show_excerpts:" A clean and minimalist theme for Jekyll. favicon: "./favicon.ico" # set the favicon of the site show_excerpts: false # set to true to show excerpts on the homepage # Moving date format # refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this moving: avatar_url: "https://i.loli.net/2019/08/26/JzCLhDWPEybZr2T.jpg" # avatar in about page about_you: a short description about you. # short description about you in about page date_format: "%b %d" # date format of posts in home page back_to: "Home" # In the post page, you have a back button above the title, you can custom the text by yourself. # generate social links in about page. social_links: # twitter: github: huangyz0918 rss: RSS # dribbble: facebook: huangyz0918 # flickr: # instagram: linkedin: yizheng-huang # pinterest: # youtube: # youtube_channel: # youtube_channel_name: # telegram: # googleplus: # microdotblog: # reddit: # Mastodon instances # mastodon: # - username: # instance: # - username: # instance: # Build settings theme: moving # note, please use huangyz0918/moving if you want to publish to Github Pages. plugins: - jekyll-feed - jekyll-seo-tag ================================================ FILE: _includes/footer.html ================================================ ================================================ FILE: _includes/google-analytics.html ================================================ ================================================ FILE: _includes/head.html ================================================
{%- seo title=false -%} {%- feed_meta -%} {%- if jekyll.environment == 'production' and site.google_analytics -%} {%- include google-analytics.html -%} {%- endif -%} ================================================ FILE: _includes/social.html ================================================ {%- assign social = site.moving.social_links -%} ================================================ FILE: _layouts/about.html ================================================ --- layout: default ---{{ site.moving.about_you | escape }}
{%- endif -%} {%- include social.html -%}{{ site.title }}
{{- site.description | escape -}}
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 (h5) 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!! (h6) 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 ### Images  ### Styles _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._ --- 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.** ================================================ FILE: _posts/2016-03-19-super-short-article.md ================================================ --- layout: post title: "Short Article" categories: misc --- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ================================================ FILE: _posts/2016-04-23-super-long-article.md ================================================ --- layout: post title: "Long Article" categories: misc --- 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. ================================================ FILE: _posts/2016-05-01-code-highlight-tests.md ================================================ --- layout: post title: "Code Highlight Tests" categories: misc --- ## Test for C ```c #define UNICODE #includeTesting page
``` ## Test for CSS ```css /* Monokai style - ported by Luigi Maselli - http://grigio.org */ .hljs { display: block; overflow-x: auto; padding: 0.5em; background: #272822; color: #ddd; } .hljs-tag, .hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-strong, .hljs-name { color: #f92672; } .hljs-code { color: #66d9ef; } .hljs-class .hljs-title { color: white; } ``` ================================================ FILE: _posts/2019-06-23-language-tests.md ================================================ --- layout: post title: "Language Tests" categories: misc --- ### 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) ================================================ FILE: _posts/2020-04-15-math-test.md ================================================ --- layout: post title: "Math Tests" categories: misc --- $$ R_{\mu \nu} - {1 \over 2}g_{\mu \nu}\,R + g_{\mu \nu} \Lambda = {8 \pi G \over c^4} T_{\mu \nu} $$ The equation $$(x_i \cdot x_j)^2$$ is called kernel function and is often written as $$k(x_i, x_j)$$. $$ \arg\max_\alpha \sum_j \alpha_j - \frac{1}{2} \sum_{j,k} \alpha_j, \alpha_k y_j y_k (x_j \cdot x_k) $$ $$ f(X) = \frac{1}{(2\pi)^{\frac{n}{2} |\Sigma|^{\frac{1}{2}}}} e^{ - \frac{1}{2} (X - \mu)^T \Sigma^{-1} (X - \mu)} $$ $$ \mu_i = \sum_{j=1}^N \frac{p_{ij} x}{n_i} \\ \Sigma_i = \sum_{j=1}^N \frac{p_{ij} (x_j - \mu_i) (x_j - \mu_i)^T}{n_i}\\ w_i = \frac{n_i}{N} $$ $$ S_i^{(t)} = \big \{ x_p : \big \| x_p - \mu^{(t)}_i \big \|^2 \le \big \| x_p - \mu^{(t)}_j \big \|^2 \ \forall j, 1 \le j \le k \big\} $$ ================================================ FILE: _sass/moving/_base.scss ================================================ /** * Reset some basic elements */ body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { margin: 0; padding: 0; } /** * Basic styling */ body { font: $base-font-weight #{$small-font-size}/#{$small-line-height} $base-font-family; color: $text-color; background-color: $background-color; -webkit-text-size-adjust: 100%; -webkit-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern" 1; -o-font-feature-settings: "kern" 1; font-feature-settings: "kern" 1; font-kerning: normal; display: flex; min-height: 100vh; flex-direction: column; padding: 0 2%; @media screen and (min-width: $on-medium) { padding: 0 5%; font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family; } } /** * Set `margin-bottom` to maintain vertical rhythm */ h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure, %vertical-rhythm { margin-bottom: $spacing-unit / 2; } /** * `main` element */ main { display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */ } /** * Divider */ hr { margin-top: 20px; margin-bottom: 20px; border: 0; height: 1px; background: -webkit-linear-gradient( left, transparent, rgba(0, 0, 0, 0.5), transparent ); background: linear-gradient( left, transparent, rgba(0, 0, 0, 0.5), transparent ); } /** * Images */ img { margin-bottom: 5px; margin-top: 5px; padding: 2px 2px; border-radius: 3px; background-color: lighten($grey-color-light, 3%); max-width: 100%; vertical-align: middle; } /** * Figures */ figure > img { display: block; } figcaption { font-size: $small-font-size; } /** * Lists */ ul, ol { margin-left: $spacing-unit; } li { > ul, > ol { margin-bottom: 0; } } /** * Headings */ h1, h2, h3, h4, h5, h6 { margin-top: 2rem; font-weight: $base-font-weight; } /** * Links */ a { color: $brand-color; text-decoration: none; &:hover { text-decoration: underline; } } /** * Blockquotes */ blockquote { color: $grey-color; border-left: 4px solid $grey-color-light; padding-left: $spacing-unit / 2; @include relative-font-size(1); letter-spacing: -1px; @media (max-width: 600px) { @include relative-font-size(0.8); } > :last-child { margin-bottom: 0; } } /** * Code formatting */ pre, code { @include relative-font-size(0.9); border: 1px solid darken($grey-color-light, 3%); border-radius: 3px; background-color: lighten($grey-color-light, 3%); } code { padding: 1px 1px; } pre { padding: 2px 2px; overflow-x: auto; > code { border: 0; padding-right: 0; padding-left: 0; } } /** * Wrapper */ .wrapper { max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit})); max-width: calc(#{$content-width} - (#{$spacing-unit})); margin-right: auto; margin-left: auto; padding-right: $spacing-unit / 2; padding-left: $spacing-unit / 2; @extend %clearfix; @media screen and (min-width: $on-large) { max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2)); max-width: calc(#{$content-width} - (#{$spacing-unit} * 2)); padding-right: $spacing-unit; padding-left: $spacing-unit; } } /** * Clearfix */ %clearfix:after { content: ""; display: table; clear: both; } /** * Icons */ .orange { color: $orange-color; } .grey { color: $grey-color; } .svg-icon { width: 16px; height: 16px; display: inline-block; fill: currentColor; padding: 5px 3px 2px 5px; vertical-align: text-bottom; } /** * Tables */ table { margin-bottom: $spacing-unit; width: 100%; text-align: $table-text-align; color: lighten($text-color, 18%); border-collapse: collapse; border: 1px solid $grey-color-light; tr { &:nth-child(even) { background-color: lighten($grey-color-light, 6%); } } th, td { padding: ($spacing-unit / 3) ($spacing-unit / 2); } th { background-color: lighten($grey-color-light, 3%); border: 1px solid darken($grey-color-light, 4%); border-bottom-color: darken($grey-color-light, 12%); } td { border: 1px solid $grey-color-light; } } nav { width: 100%; li { display: inline; padding-top: 20px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; } } /* home: post list */ .post-list ul { margin-left: 0; } .post-list ul li { display: flex; } .post-meta { min-width: 80px; font-size: 21.6px; } ================================================ FILE: _sass/moving/_layout.scss ================================================ /** * Site header */ .site-header { border-top: 5px solid $grey-color-dark; border-bottom: 1px solid $grey-color-light; min-height: $spacing-unit * 1.865; line-height: $base-line-height * $base-font-size * 2.25; // Positioning context for the mobile navigation icon position: relative; } .site-nav { position: absolute; top: 9px; right: $spacing-unit / 2; background-color: $background-color; border: 1px solid $grey-color-light; border-radius: 5px; text-align: right; .nav-trigger { display: none; } .menu-icon { float: right; width: 36px; height: 26px; line-height: 0; padding-top: 10px; text-align: center; > svg path { fill: $grey-color-dark; } } label[for="nav-trigger"] { display: block; float: right; width: 36px; height: 36px; z-index: 2; cursor: pointer; } input ~ .trigger { clear: both; display: none; } input:checked ~ .trigger { display: block; padding-bottom: 5px; } .page-link { color: $text-color; line-height: $base-line-height; display: block; padding: 5px 10px; // Gaps between nav items, but not on the last one &:not(:last-child) { margin-right: 0; } margin-left: 20px; } @media screen and (min-width: $on-medium) { position: static; float: right; border: none; background-color: inherit; label[for="nav-trigger"] { display: none; } .menu-icon { display: none; } input ~ .trigger { display: block; } .page-link { display: inline; padding: 0; &:not(:last-child) { margin-right: 20px; } margin-left: auto; } } } /** * Site footer */ .site-footer { padding: $spacing-unit / 1.5 0; } .footer-heading { @include relative-font-size(1.125); margin-bottom: $spacing-unit / 2; } .p-name { @media (max-width: 500px) { @include relative-font-size(0.9); } } .u-email { @media (max-width: 500px) { @include relative-font-size(0.9); } } .contact-list, .social-media-list { list-style: none; margin-left: 0; } /** * Page content */ .page-content { padding: $spacing-unit 0; flex: 1 0 auto; } .page-heading { @include relative-font-size(2); } .home-title { margin-top: -10px; } .home-heading { font-weight: 1000; color: lighten($text-color, 15%); @media (max-width: 500px) { margin-top: 20px; @include relative-font-size(1.7); } @include relative-font-size(2.2); } .home-sub-heading { margin-top: -0.6rem; color: lighten($text-color, 25%); @media (max-width: 500px) { @include relative-font-size(0.8); } @include relative-font-size(1); } .post-list { margin-top: 2.5rem; margin-left: 0; list-style: none; li { margin-bottom: $spacing-unit / 12; } } .post-year { margin-top: 2rem; margin-bottom: 0.25rem; font-weight: 700; color: lighten($text-color, 15%); @media (max-width: 500px) { @include relative-font-size(1.2); } @include relative-font-size(1.5); } .post-meta { display: inline-block; min-width: 60px; @media (max-width: 500px) { @include relative-font-size(0.8); } @include relative-font-size(1); color: lighten($text-color, 25%); } .post-link-layout { margin-left: 10%; display: inline; @media (max-width: 500px) { @include relative-font-size(1); } @include relative-font-size(1.2); } .black-link { color: $text-color; text-decoration: none; &:hover { color: $text-color; text-decoration: underline; } } .post-back { margin-bottom: 20px; color: lighten($text-color, 25%); } /** * Posts */ .post-header { margin-bottom: $spacing-unit; } .post-title, .post-content h1 { @include relative-font-size(2.2); line-height: 1.3; font-weight: 1000; margin-top: -0.5rem; @media (max-width: 500px) { @include relative-font-size(1.8); } @media screen and (min-width: $on-large) { @include relative-font-size(2.2); } } .post-content { margin-top: 3.2rem; margin-bottom: $spacing-unit; h2 { @include relative-font-size(1.75); @media screen and (min-width: $on-large) { @include relative-font-size(2); } } h3 { @include relative-font-size(1.375); @media screen and (min-width: $on-large) { @include relative-font-size(1.625); } } h4 { @include relative-font-size(1.125); @media screen and (min-width: $on-large) { @include relative-font-size(1.25); } } } .social-media-list { margin-top: -1rem; display: flex; @include relative-font-size(1); li { float: left; a { padding-right: $spacing-unit / 5; } } } /** * Grid helpers */ @media screen and (min-width: $on-large) { .one-half { width: -webkit-calc(50% - (#{$spacing-unit} / 2)); width: calc(50% - (#{$spacing-unit} / 2)); } } /** * About Page */ .about-page { display: inline-block; .about-header { display: flex; flex-direction: row; flex-wrap: wrap; .about-avatar { padding: 1px; border: 1px solid $grey-color-light; width: 10rem; height: 10rem; margin: 0 2rem 0 0; } .about-info { align-self: center; .about-your-name { display: flex; flex-direction: row; margin-top: 1rem; @include relative-font-size(1.5); } .about-description { margin-top: -0.6rem; @include relative-font-size(1); color: lighten($text-color, 25%); } } } .about-content { margin-top: 2rem; } } ================================================ FILE: _sass/moving.scss ================================================ @charset "utf-8"; // Define defaults for each variable. $base-font-family: "Bitter", 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', "Bitter", sans-serif; $base-font-size: 18px !default; $base-font-weight: 400 !default; $small-font-size: $base-font-size * 0.85 !default; $base-line-height: 1.8 !default; $small-line-height: 1.6 !default; $spacing-unit: 30px !default; $text-color: #111 !default; $background-color: #fdfdfd !default; $brand-color: #2a7ae2 !default; $grey-color: #828282 !default; $grey-color-light: lighten($grey-color, 40%) !default; $grey-color-dark: darken($grey-color, 25%) !default; $orange-color: #f66a0a !default; $table-text-align: left !default; // Width of the content area $content-width: 800px !default; $on-palm: 600px !default; $on-laptop: 800px !default; $on-medium: $on-palm !default; $on-large: $on-laptop !default; @mixin media-query($device) { @media screen and (max-width: $device) { @content; } } @mixin relative-font-size($ratio) { font-size: $base-font-size * $ratio; } // Import partials. @import "moving/base", "moving/layout"; ================================================ FILE: about.md ================================================ --- layout: about --- These are controlled by `about.md` under the root directory. If you want a more diverse self-introduction, you can insert the markdown content you want here. ### What's New - One paper got accepted in xxx 2019. - I'm going to join xxx as a xxx 2019 Fall. ================================================ FILE: assets/css/agate.css ================================================ /*! * Agate by Taufik Nurrohman