Skip to content

amirer21/amirer21.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server start

bundle exec jekyll clean

bundle exec jekyll serve

bundle exec jekyll serve --trace

connect

localhost:4000

프로필 설정

_config.yml 파일

sitemap.xml

favicon 추가

  • 빌드에 문제는 없지만, 없다면 다음과 같은 에러가 발생한다.
favicon.ico 404 (not found)
  • 소스 코드 추가 경로 : /_include/head.html
  • 소스 코드
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="{{ site.asset_url }}/favicon.ico"/>

Script 추가

파일

/_inculde/haed.html 또는 /_layouts/default.html

구글 애스센스 - ads.txt 상태 : 찾을 수 없음

img

  • 해결

파일 경로 : root경로에 /ads.txt 파일로 위치(Gemfile과 같은 위치)

적용 확인 : https://[블로그 주소].github.io/ads.txt

amirer21.github.io/ads.txt

comments 기능 추가하기

Gitblog(Jekyll) 에 댓글 기능을 추가해보자. Github에서 utteranc를 설치해야된다. 그리고 repository는 기본적으로 "public"으로 설정되어있어야한다. 아래 순서에 따라서 설정을 하면 적용된다.

순서

(1) Github에서 utteranc 설치하기

(2) utterance client java scirpt 가져오기

  • 연결할 repository 설정 img

  • 블로그 포스트와 GitHub 이슈 매핑 설정 img

  • Theme 설정 및 스크립트 코드 생성 img

(3) posts.html 설정하기

<script src="https://utteranc.es/client.js"
     repo="amirer21/amirer21.github.io"
     issue-term="pathname"
     label="comment"
     theme="github-dark"
     crossorigin="anonymous"
     async>
</script>

(4) _config.yml 설정하기

comments:  
provider               : "utterances" 
utterances:
 #repo                 : "amirer21/amirer21.github.io"
 theme                : "github-dark" # "github-light" (default), "github-dark"
 issue_term           
 : "pathname" # "pathname" (default)
 ```

(5) utterances.json 설정하기

```json
{
 "origins": ["https://amirer21.github.io/"]
}

(5) 배포해서 확인하기


테마 변경(참고)

_config.yml

minimal_mistakes_skin    : "air"

post.html

<script src="https://utteranc.es/client.js"
        repo="amirer21/amirer21.github.io"
        issue-term="pathname"
        label="comment"
        theme="github-air"
        crossorigin="anonymous"
        async>
</script>

_config.yml

minimal_mistakes_skin    : "air"

Math, Mermaid 라이브러리 추가

head.html

defaul.html


폰트(글자체), 폰트 크기 변경 방법 (2024.09.14)

폰트 변경

폰트 불러오기

/home/hong/amirer21.github.io/_includes/head/custom.html

폰트 설정

/assets/css/main.scss

폰트 크기 변경

  • 2px씩 줄임 /_sass/minimal-mistakes/_reset.scss

설치 방법

1. Ruby 및 관련 도구 설치

1.1. Ruby 설치

  1. RubyInstaller를 통해 Windows용 Ruby를 설치합니다.
  2. 설치 중 "MSYS2 and MINGW development toolchain" 옵션을 선택하여 설치합니다. 이는 이후 gem 설치와 빌드에 필요한 도구들을 포함합니다.

1.2. Bundler 설치

Ruby 설치가 완료되면, 터미널 또는 명령 프롬프트를 열고 다음 명령어로 bundler를 설치합니다:

gem install bundler

2. Jekyll 프로젝트 설정

2.1. Jekyll 프로젝트 생성

Jekyll 프로젝트를 생성하려면 다음 명령어를 실행합니다:

jekyll new my-blog
cd my-blog

2.2. Gemfile 설정

Gemfile은 프로젝트의 의존성을 관리합니다. Gemfile을 다음과 같이 설정합니다:

source "https://rubygems.org"
gemspec

gem 'jekyll-admin', group: :jekyll_plugins
gem 'jekyll-sitemap'

gem 'rack'
gem 'webrick', '>= 1.7.0'

gem 'wdm', '>= 0.1.0' if Gem.win_platform?

3. 의존성 설치 및 서버 실행

3.1. Gemfile.lock 파일 삭제 (필요 시)

만약 의존성 충돌이나 문제가 의심된다면, Gemfile.lock 파일을 삭제합니다:

rm Gemfile.lock

3.2. 의존성 설치

bundle install 명령어를 실행하여 Gemfile에 명시된 모든 의존성을 설치합니다:

bundle install

3.3. Jekyll 서버 실행

Jekyll 서버를 실행하여 로컬에서 사이트를 확인합니다:

bundle exec jekyll serve

4. 문제 해결

4.1. Rack::Handler 관련 오류 해결

rackwebrick이 제대로 설치되지 않았거나 충돌이 발생할 경우, 다음 단계를 통해 해결할 수 있습니다:

  1. rackwebrick을 명시적으로 재설치:

    gem uninstall rack webrick
    gem install rack webrick
  2. bundle install을 다시 실행하여 모든 의존성을 설치합니다.

  3. jekyll-admin을 비활성화하여 문제가 jekyll-admin에서 발생하는지 확인합니다. 필요시 Gemfile에서 jekyll-admin을 주석 처리합니다:

    # gem 'jekyll-admin', group: :jekyll_plugins
  4. --trace 옵션을 사용하여 Jekyll을 실행하고 추가적인 디버깅 정보를 얻습니다:

    bundle exec jekyll serve --trace

5. 추가 팁

  • Gemfile.lock을 삭제하고 gem들을 다시 설치하는 방법은 자주 유용합니다.
  • bundle update 명령어를 사용하여 모든 gem을 최신 버전으로 업데이트할 수 있습니다.
  • Ruby와 Jekyll의 호환성을 확인하여 최신 버전의 Ruby와 Jekyll이 호환되는지 확인하세요.

LICENSE Jekyll Ruby gem Tip Me via PayPal Donate to this project using Buy Me A Coffee

Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building personal sites, blogs, and portfolios. As the name implies, styling is purposely minimalistic to be enhanced and customized by you 😄.

✨ See what's new in the CHANGELOG.

If you enjoy this theme, please consider sponsoring:

"Buy Me A Coffee" Support via PayPal

Note: The theme uses the jekyll-include-cache plugin which will need to be installed in your Gemfile and added to the plugins array of _config.yml. Otherwise you'll encounter Unknown tag 'include_cached' errors at build.

Minimal Mistakes live preview

layout examples

Notable features

  • Bundled as a "theme gem" for easier installation/upgrading.
  • Compatible with GitHub Pages.
  • Support for Jekyll's built-in Sass/SCSS preprocessor.
  • Nine different skins (color variations).
  • Several responsive layout options (single, archive index, search, splash, and paginated home page).
  • Optimized for search engines with support for Twitter Cards and Open Graph data.
  • Optional header images, custom sidebars, table of contents, galleries, related posts, breadcrumb links, navigation lists, and more.
  • Commenting support (powered by Disqus, Facebook, Google+, Discourse, static-based via Staticman, and utterances).
  • Google Analytics support.
  • UI localized text in English (default), Arabic (عربي), Brazilian Portuguese (Português brasileiro), Catalan, Chinese, Danish, Dutch, Finnish, French (Français), German (Deutsch), Greek, Hebrew, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), and Vietnamese.

Skins (color variations)

This theme comes in nine different skins (in addition to the default one).

air contrast dark
air skin contrast skin dark skin
dirt mint sunrise
dirt skin mint skin sunrise skin
aqua neon plum
aqua skin neon skin plum skin

Demo pages

Name Description
Post with Header Image A post with a large header image.
HTML Tags and Formatting Post A variety of common markup showing how the theme styles them.
Syntax Highlighting Post Post displaying highlighted code.
Post with a Gallery A post showing several images wrapped in <figure> elements.
Sample Collection Page Single page from a collection.
Categories Archive Posts grouped by category.
Tags Archive Posts grouped by tag.

Additional sample posts are available under posts archive on the demo site. Source files for these (and the entire demo site) can be found in /docs.

Installation

There are three ways to install: as a gem-based theme, as a remote theme (GitHub Pages compatible), or forking/directly copying all of the theme files into your project.

Gem-based method

With Gem-based themes, directories such as the assets, _layouts, _includes, and _sass are stored in the theme’s gem, hidden from your immediate view. Yet all of the necessary directories will be read and processed during Jekyll’s build process.

This allows for easier installation and updating as you don't have to manage any of the theme files. To install:

  1. Add the following to your Gemfile:

    gem "minimal-mistakes-jekyll"
  2. Fetch and update bundled gems by running the following Bundler command:

    bundle
  3. Set the theme in your project's Jekyll _config.yml file:

    theme: minimal-mistakes-jekyll

To update the theme run bundle update.

Remote theme method

Remote themes are similar to Gem-based themes, but do not require Gemfile changes or whitelisting making them ideal for sites hosted with GitHub Pages.

To install:

  1. Create/replace the contents of your Gemfile with the following:

    source "https://rubygems.org"
    
    gem "github-pages", group: :jekyll_plugins
    gem "jekyll-include-cache", group: :jekyll_plugins
  2. Add jekyll-include-cache to the plugins array of your _config.yml.

  3. Fetch and update bundled gems by running the following Bundler command:

    bundle
  4. Add remote_theme: "mmistakes/[email protected]" to your _config.yml file. Remove any other theme: or remote_theme: entry.

Looking for an example? Use the Minimal Mistakes remote theme starter for the quickest method of getting a GitHub Pages hosted site up and running. Generate a new repository from the starter, replace sample content with your own, and configure as needed.

Usage

For detailed instructions on how to configure, customize, add/migrate content, and more read the theme's documentation.


Contributing

Found a typo in the documentation or interested in fixing a bug? Then by all means submit an issue or pull request. If this is your first pull request, it may be helpful to read up on the GitHub Flow first.

For help with using the theme or general Jekyll support questions, please use the Jekyll Talk forums.

Pull Requests

When submitting a pull request:

  1. Clone the repo.
  2. Create a branch off of master and give it a meaningful name (e.g. my-awesome-new-feature).
  3. Open a pull request on GitHub and describe the feature or fix.

Theme documentation and demo pages can be found in the /docs if submitting improvements, typo corrections, etc.

Development

To set up your environment to develop this theme, run bundle install.

To test the theme, run bundle exec rake preview and open your browser at http://localhost:4000/test/. This starts a Jekyll server using content in the test/ directory. As modifications are made to the theme and test site, it will regenerate and you should see the changes in the browser after a refresh.


Credits

Creator

Michael Rose

Icons + Demo Images:

Other:


License

The MIT License (MIT)

Copyright (c) 2013-2020 Michael Rose and contributors

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.

Minimal Mistakes incorporates icons from The Noun Project creators Garrett Knoll, Arthur Shlain, and tracy tam. Icons are distributed under Creative Commons Attribution 3.0 United States (CC BY 3.0 US).

Minimal Mistakes incorporates Font Awesome, Copyright (c) 2017 Dave Gandy. Font Awesome is distributed under the terms of the SIL OFL 1.1 and MIT License.

Minimal Mistakes incorporates photographs from Unsplash.

Minimal Mistakes incorporates Susy, Copyright (c) 2017, Miriam Eric Suzanne. Susy is distributed under the terms of the BSD 3-clause "New" or "Revised" License.

Minimal Mistakes incorporates Breakpoint. Breakpoint is distributed under the terms of the MIT/GPL Licenses.

Minimal Mistakes incorporates FitVids.js, Copyright (c) 2013 Dave Rubert and Chris Coyier. FitVids is distributed under the terms of the WTFPL License.

Minimal Mistakes incorporates Magnific Popup, Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com. Magnific Popup is distributed under the terms of the MIT License.

Minimal Mistakes incorporates Smooth Scroll, Copyright (c) 2019 Chris Ferdinandi. Smooth Scroll is distributed under the terms of the MIT License.

Minimal Mistakes incorporates Gumshoejs, Copyright (c) 2019 Chris Ferdinandi. Smooth Scroll is distributed under the terms of the MIT License.

Minimal Mistakes incorporates jQuery throttle / debounce, Copyright (c) 2010 "Cowboy" Ben Alman. jQuery throttle / debounce is distributed under the terms of the MIT License.

Minimal Mistakes incorporates GreedyNav.js, Copyright (c) 2015 Luke Jackson. GreedyNav.js is distributed under the terms of the MIT License.

Minimal Mistakes incorporates Jekyll Group-By-Array, Copyright (c) 2015 Max White [email protected]. Jekyll Group-By-Array is distributed under the terms of the MIT License.

Minimal Mistakes incorporates @allejo's Pure Liquid Jekyll Table of Contents, Copyright (c) 2017 Vladimir Jimenez. Pure Liquid Jekyll Table of Contents is distributed under the terms of the MIT License.

Minimal Mistakes incorporates Lunr, Copyright (c) 2018 Oliver Nightingale. Lunr is distributed under the terms of the MIT License.