From 37d6dc2cc28a26306651ba1a9251fa1a8161633e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 21 Jun 2016 05:04:45 +0300 Subject: put most of my personal info to _config.yml --- Gemfile | 1 + Gemfile.lock | 5 +++- README.md | 29 +++++++++++--------- _config.yml | 31 +++++++++++++++------- _config_dev.yml | 3 ++- _includes/footer.html | 2 +- _includes/header.html | 2 +- _includes/navbar.html | 2 +- _includes/sidebar.html | 4 +-- ...std-call-once-bug-in-visual-studio-2012-2013.md | 16 ++++++----- 10 files changed, 60 insertions(+), 35 deletions(-) diff --git a/Gemfile b/Gemfile index 84b3963..ebe28e9 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,4 @@ source 'https://rubygems.org' gem 'github-pages' +gem 'jekyll-github-metadata' gem 'wdm', '~> 0.1.0' if Gem.win_platform? diff --git a/Gemfile.lock b/Gemfile.lock index 1bfd6a6..19bd0e0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -69,6 +69,8 @@ GEM jekyll-feed (0.4.0) jekyll-gist (1.4.0) octokit (~> 4.2) + jekyll-github-metadata (1.11.1) + octokit (~> 4.0) jekyll-mentions (1.0.1) html-pipeline (~> 2.3) jekyll (~> 3.0) @@ -131,7 +133,8 @@ PLATFORMS DEPENDENCIES github-pages + jekyll-github-metadata wdm (~> 0.1.0) BUNDLED WITH - 1.11.2 + 1.12.5 diff --git a/README.md b/README.md index 88a6746..8b9e2fb 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ -# C++ notes +C++ notes +========= Personal C++ notes. Hosted using [GitHub Pages] at https://egor-tensin.github.io/cpp-notes/. [GitHub Pages]: https://pages.github.com -## Installation +Installation +------------ [Jekyll] is used to build a set of static HTML pages from a collection of templates and resources. @@ -25,7 +27,8 @@ in the project's root directory. [Jekyll]: https://jekyllrb.com/ [Bundler]: http://bundler.io/ -## Development +Development +----------- To run a local web server, execute @@ -46,23 +49,25 @@ from `_config.yml` during development. In particular, it * sets `minified_externals` to `false` so that the properly formatted versions - of external CSS stylesheets and JavaScript files are included instead of the - `min`ified versions, +of external CSS stylesheets and JavaScript files are included instead of the +`min`ified versions, * sets `include_comments` to `false` to exclude the Disqus comments section - from the posts, +from the posts, * sets `baseurl` to an empty string so that the website can be accessed from - local web server's root directory (i.e. from http://localhost:4000/ instead - of http://localhost:4000/cpp-notes/). +local web server's root directory (i.e. from http://localhost:4000/ instead of +http://localhost:4000/cpp-notes/). -## Accessing via file:// +Accessing via file:// +--------------------- Jekyll doesn't provide native support for generating a static website which can -be viewed without a web server. -One easy workaround might be to `wget` the website and convert the links: +be browsed without running an instance of Jekyll's web server. +One easy workaround is to `wget` the website and convert the links: wget --convert-links --recursive http://localhost:4000/ -## License +License +------- This project, including all of the files and their contents, is licensed under the terms of the MIT License. diff --git a/_config.yml b/_config.yml index 0bfcb54..f6794b5 100644 --- a/_config.yml +++ b/_config.yml @@ -1,16 +1,27 @@ -baseurl: /cpp-notes -gems: [jekyll-paginate] -paginate: 10 -include_comments: true -excerpt_separator: "" -bootstrap_version: 3.3.6 -jquery_version: 1.11.3 -html5shiv_version: 3.7.2 -respond_version: 1.4.2 -minified_externals: true +gems: + - jekyll-paginate + - jekyll-github-metadata + exclude: - Gemfile - Gemfile.lock - LICENSE.txt - serve.bat - README.md + +paginate: 10 + +excerpt_separator: "" +include_comments: true +minified_externals: true + +bootstrap_version: 3.3.6 +jquery_version: 1.11.3 +html5shiv_version: 3.7.2 +respond_version: 1.4.2 + +baseurl: /cpp-notes +repository: egor-tensin/cpp-notes +personal_info: + name: Egor Tensin + email: Egor.Tensin@gmail.com diff --git a/_config_dev.yml b/_config_dev.yml index 0015e2e..c6fad0e 100644 --- a/_config_dev.yml +++ b/_config_dev.yml @@ -1,3 +1,4 @@ -baseurl: "" include_comments: false minified_externals: false + +baseurl: "" diff --git a/_includes/footer.html b/_includes/footer.html index 27ff07a..f3cbb38 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -6,7 +6,7 @@
-
This project is licensed under the terms of the MIT License. See License for details.
+
This project is licensed under the terms of the MIT License. See License for details.
diff --git a/_includes/header.html b/_includes/header.html index 75b2b97..3794583 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -5,7 +5,7 @@ - {{ page.title }} - C++ notes - Egor Tensin + {{ page.title }} - C++ notes - {{ site.personal_info.name }} {% include bootstrap_css.html %} diff --git a/_includes/navbar.html b/_includes/navbar.html index d763c3e..af4a1c5 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -7,7 +7,7 @@ - Egor Tensin + {{ site.personal_info.name }}