diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-21 05:04:45 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-21 05:04:45 +0300 |
commit | 37d6dc2cc28a26306651ba1a9251fa1a8161633e (patch) | |
tree | 3c1a07191c742d813df46596da79681d732efc34 | |
parent | fix links & code style (diff) | |
download | blog-37d6dc2cc28a26306651ba1a9251fa1a8161633e.tar.gz blog-37d6dc2cc28a26306651ba1a9251fa1a8161633e.zip |
put most of my personal info to _config.yml
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 5 | ||||
-rw-r--r-- | README.md | 29 | ||||
-rw-r--r-- | _config.yml | 31 | ||||
-rw-r--r-- | _config_dev.yml | 3 | ||||
-rw-r--r-- | _includes/footer.html | 2 | ||||
-rw-r--r-- | _includes/header.html | 2 | ||||
-rw-r--r-- | _includes/navbar.html | 2 | ||||
-rw-r--r-- | _includes/sidebar.html | 4 | ||||
-rw-r--r-- | _posts/2015-07-03-std-call-once-bug-in-visual-studio-2012-2013.md | 16 |
10 files changed, 60 insertions, 35 deletions
@@ -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 @@ -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 @@ <div style="display: table; width: 100%;"> <div style="display: table-row;"> <div style="display: table-cell;"> - <div class="text-center text-muted"><small>This project is licensed under the terms of the MIT License. See <a href="https://github.com/egor-tensin/cpp-notes/tree/gh-pages#license">License</a> for details.</small></div> + <div class="text-center text-muted"><small>This project is licensed under the terms of the MIT License. See <a href="{{ site.github.repository_url }}#license">License</a> for details.</small></div> </div> </div> <div style="display: table-row;"> 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 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>{{ page.title }} - C++ notes - Egor Tensin</title> + <title>{{ page.title }} - C++ notes - {{ site.personal_info.name }}</title> {% 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 @@ <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a class="navbar-brand" href="/">Egor Tensin</a> + <a class="navbar-brand" href="/">{{ site.personal_info.name }}</a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> diff --git a/_includes/sidebar.html b/_includes/sidebar.html index cc4e87a..d00fc7a 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,8 +1,8 @@ <h4>About the project</h4> <p>Personal C++ notes. Feel free to contribute or contact me.</p> <div class="list-group reasonable-width"> - <a class="list-group-item" href="//github.com/egor-tensin/cpp-notes"><span class="glyphicon glyphicon-home"></span> GitHub repository</a> - <a class="list-group-item" href="mailto:Egor.Tensin@gmail.com"><span class="glyphicon glyphicon-envelope"></span> Egor.Tensin@gmail.com</a> + <a class="list-group-item" href="{{ site.github.repository_url }}"><span class="glyphicon glyphicon-home"></span> GitHub repository</a> + <a class="list-group-item" href="mailto:{{ site.personal_info.email }}"><span class="glyphicon glyphicon-envelope"></span> {{ site.personal_info.email }}</a> </div> <h4>Latest posts</h4> {% if site.posts.size == 0 %} diff --git a/_posts/2015-07-03-std-call-once-bug-in-visual-studio-2012-2013.md b/_posts/2015-07-03-std-call-once-bug-in-visual-studio-2012-2013.md index 2b11d54..accafd4 100644 --- a/_posts/2015-07-03-std-call-once-bug-in-visual-studio-2012-2013.md +++ b/_posts/2015-07-03-std-call-once-bug-in-visual-studio-2012-2013.md @@ -16,9 +16,10 @@ This post, including code samples, is licenced under the terms of the MIT License. See [LICENSE.txt] for details. -[LICENSE.txt]: https://github.com/egor-tensin/cpp-notes/blob/gh-pages/LICENSE.txt +[LICENSE.txt]: {{ site.github.repository_url }}/blob/gh-pages/LICENSE.txt -## Introduction +Introduction +------------ I've recently come across a nasty standard library bug in the implementation shipped with Microsoft Visual Studio 2012/2013. @@ -38,7 +39,8 @@ misbehaviours. [Connect page]: https://connect.microsoft.com/VisualStudio [Stephan T. Lavavej]: http://nuwen.net/stl.html -## C++11 and singletons +C++11 and singletons +-------------------- Anyway, the story begins with me trying to implement the singleton pattern using C++11 facilities like this: @@ -140,7 +142,8 @@ needed.</p> [N2660]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2660.htm -## The bug +The Bug +------- Unfortunately, matters became a bit more complicated when I tried to have two singleton classes. @@ -280,9 +283,10 @@ simple example above to misbehave. The [complete code] sample to demonstrate the misbehaviour described above can be found in the blog's repository. -[complete code]: https://github.com/egor-tensin/cpp-notes/tree/gh-pages/src/posts/std_call_once_bug_in_visual_studio_2012_2013 +[complete code]: {{ site.github.repository_url }}/tree/gh-pages/src/posts/std_call_once_bug_in_visual_studio_2012_2013 -## Resolution +Resolution +---------- So, since I couldn't submit the bug via Visual Studio's [Connect page], I wrote to Mr. Lavavej directly, not hoping for an answer. |