Skip to content

Commit

Permalink
Fix site.baseurl for Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ngquerol committed May 29, 2020
1 parent 731de66 commit 97b36af
Show file tree
Hide file tree
Showing 10 changed files with 372 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: ngquerol
author: Nicolas Gaulard-Querol
description: "Nicolas Gaulard-Querol's personal website."
email: nicolas.gquerol@gmail.com
baseurl: "/"
baseurl: ""
timezone: Europe/Paris
exclude:
- Gemfile
Expand Down
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<nav class="site-navigation">
<div class="nav-page {% if page.url == '/' %}nav-current{% endif %}">
<span class="icon-about"></span>
<a href="{{ site.baseurl }}">About</a>
<a href="{{ '/' | relativeurl }}">About</a>
</div>
{% assign nav_pages = site.pages | where: "group", "navigation" | sort: "title" %}
{% for node in nav_pages %}
Expand Down
7 changes: 7 additions & 0 deletions _posts/2015-01-04-first-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: post
title: First post!
image: /img/hello_world.jpeg
---

This is my first post, how exciting!
6 changes: 6 additions & 0 deletions _posts/2015-01-15-pirates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: post
title: Pirates arrrr
---

Piracy is typically an act of robbery or criminal violence at sea. The term can include acts committed on land, in the air, or in other major bodies of water or on a shore. It does not normally include crimes committed against persons traveling on the same vessel as the perpetrator (e.g. one passenger stealing from others on the same vessel). The term has been used throughout history to refer to raids across land borders by non-state agents.
11 changes: 11 additions & 0 deletions _posts/2015-01-19-soccer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: post
title: Soccer
subtitle: Best sport ever!
---

From Wikipedia:

Association football, more commonly known as football or soccer,[2] is a sport played between two teams of eleven players with a spherical ball. It is played by 250 million players in over 200 countries, making it the world's most popular sport.[3][4][5][6] The game is played on a rectangular field with a goal at each end. The object of the game is to score by getting the ball into the opposing goal.

The goalkeepers are the only players allowed to touch the ball with their hands or arms while it is in play and then only in their penalty area. Outfield players mostly use their feet to strike or pass the ball, but may use their head or torso to strike the ball instead. The team that scores the most goals by the end of the match wins. If the score is level at the end of the game, either a draw is declared or the game goes into extra time and/or a penalty shootout depending on the format of the competition. The Laws of the Game were originally codified in England by The Football Association in 1863. Association football is governed internationally by the International Federation of Association Football (FIFA; French: Fédération Internationale de Football Association) which organises a World Cup every four years.[7]
6 changes: 6 additions & 0 deletions _posts/2015-01-27-dear-diary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: post
title: Dear diary
---

What is it with that Mary girl? Dragging me to school every day. As if I had a choice. What you don't hear in those nursery rhymes is that she starves me if I don't go to school with her; it's the only way I can stay alive! I'm thinking about being adopted by Little Bo Peep, sure I may get lost, but anything is better than being with Mary and those little brats at school (shudder, shudder).
42 changes: 42 additions & 0 deletions _posts/2015-02-13-hamlet-monologue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
layout: post
title: To be
subtitle: ... or not to be?
tags: [books, shakespeare, test]
---

To be, or not to be--that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles
And by opposing end them. To die, to sleep--
No more--and by a sleep to say we end
The heartache, and the thousand natural shocks
That flesh is heir to. 'Tis a consummation
Devoutly to be wished. To die, to sleep--
To sleep--perchance to dream: ay, there's the rub,
For in that sleep of death what dreams may come
When we have shuffled off this mortal coil,
Must give us pause. There's the respect
That makes calamity of so long life.
For who would bear the whips and scorns of time,
Th' oppressor's wrong, the proud man's contumely
The pangs of despised love, the law's delay,
The insolence of office, and the spurns
That patient merit of th' unworthy takes,
When he himself might his quietus make
With a bare bodkin? Who would fardels bear,
To grunt and sweat under a weary life,
But that the dread of something after death,
The undiscovered country, from whose bourn
No traveller returns, puzzles the will,
And makes us rather bear those ills we have
Than fly to others that we know not of?
Thus conscience does make cowards of us all,
And thus the native hue of resolution
Is sicklied o'er with the pale cast of thought,
And enterprise of great pitch and moment
With this regard their currents turn awry
And lose the name of action. -- Soft you now,
The fair Ophelia! -- Nymph, in thy orisons
Be all my sins remembered.
15 changes: 15 additions & 0 deletions _posts/2015-02-26-flake-it-till-you-make-it.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
title: Flake it till you make it
subtitle: Excerpt from Soulshaping by Jeff Brown
bigimg: /img/path.jpg
tags: [books, test]
---

Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake?

The truth is that no one else can definitively know the path we are here to walk. It’s tempting to listen—many of us long for the omnipotent other—but unless they are genuine psychic intuitives, they can’t know. All others can know is their own truth, and if they’ve actually done the work to excavate it, they will have the good sense to know that they cannot genuinely know anyone else’s. Only soul knows the path it is here to walk. Since you are the only one living in your temple, only you can know its scriptures and interpretive structure.

At the heart of the struggle are two very different ideas of success—survival-driven and soul-driven. For survivalists, success is security, pragmatism, power over others. Success is the absence of material suffering, the nourishing of the soul be damned. It is an odd and ironic thing that most of the material power in our world often resides in the hands of younger souls. Still working in the egoic and material realms, they love the sensations of power and focus most of their energy on accumulation. Older souls tend not to be as materially driven. They have already played the worldly game in previous lives and they search for more subtle shades of meaning in this one—authentication rather than accumulation. They are often ignored by the culture at large, although they really are the truest warriors.

A soulful notion of success rests on the actualization of our innate image. Success is simply the completion of a soul step, however unsightly it may be. We have finished what we started when the lesson is learned. What a fear-based culture calls a wonderful opportunity may be fruitless and misguided for the soul. Staying in a passionless relationship may satisfy our need for comfort, but it may stifle the soul. Becoming a famous lawyer is only worthwhile if the soul demands it. It is an essential failure if you are called to be a monastic this time around. If you need to explore and abandon ten careers in order to stretch your soul toward its innate image, then so be it. Flake it till you make it.
186 changes: 186 additions & 0 deletions _posts/2015-02-28-test-markdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
---
layout: post
title: Test markdown
tags: [test]
---

1. TOC
{:toc}

# h1 Heading 😎
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading


## Horizontal Rules

___

---

***


## Emphasis

__This is bold text__

_This is italic text_

~~Strikethrough~~


## Blockquotes

> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.

## Lists

Unordered

+ Create a list by starting a line with `+`, `-`, or `*`
+ Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
* Ac tristique libero volutpat at
+ Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
+ Very easy!

Ordered

1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa
1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
4. You can use sequential numbers...
5. ...or keep all the numbers as `1.`

Start numbering with offset:

57. foo
1. bar


## Code

Inline `code`

Indented code

``` c
// Some comments
line 1 of code
line 2 of code
line 3 of code
```

Block code "fences"

```
Sample text here...
```

Syntax highlighting

``` js
var foo = function (bar) {
return bar++;
};

console.log(foo(5));
```


## Tables

Here are some tables for good measure:

| Foo | Category | Option | Description |
| ---- | --------- | ------ | ----------- |
| bar | one | data | path to data files to supply the data that will be passed into templates. |
| baz | two | engine | engine to be used for processing templates. |
| quux | three | ext | extension to be used for dest files. |

| Option | Description |
| ------:| :----------:|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |

| Category | Option | Description |
| ---------:| ------:| ------------|
| one | data | path to data files to supply the data that will be passed into templates. |
| two | engine | engine to be used for processing templates. Handlebars is the default. |
| three | ext | extension to be used for dest files. |


## Links

[link text](http://dev.nodeca.com)

[link with title](http://nodeca.github.io/pica/demo/ "title text!")

Autoconverted link https://github.com/nodeca/pica (enable linkify to see)


## Images

![Minion](https://octodex.github.com/images/minion.png)
![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")

Like links, Images also have a footnote style syntax

![Alt text][id]

With a reference later in the document defining the URL location:

[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"


## [Footnotes](https://github.com/markdown-it/markdown-it-footnote)

Footnote 1 link[^first].

Footnote 2 link[^second].

Duplicated footnote reference[^second].

[^first]: Footnote **can have markup**

and multiple paragraphs.

[^second]: Footnote text.


## [Definition lists](https://github.com/markdown-it/markdown-it-deflist)

Term 1

: Definition 1
with lazy continuation.

Term 2 with *inline markup*

: Definition 2

{ some code, part of Definition 2 }

Third paragraph of definition 2.


## [Abbreviations](https://github.com/markdown-it/markdown-it-abbr)

This is HTML abbreviation example.

It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.

*[HTML]: Hyper Text Markup Language
97 changes: 97 additions & 0 deletions _posts/2015-12-06-an-example-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
title: An example blog post - Jekyll-Read Theme
tags: [example, test]
layout: post
---

1. TOC
{:toc}

## Description

A jekyll theme built on top of default jekyll theme and inspired by [Read
WordPress theme](http://themes.pixelwars.org/read-wp/).

To visit a file without any kind of conversion and without
automatically choosing a major mode, use <kbd>M-x find-file-literally</kbd>.

Recursive acronyms are other examples of recursive humor. PHP, for example,
stands for "PHP Hypertext Preprocessor", WINE stands for "WINE Is Not an
Emulator" GNU stands for "GNU's not Unix", and SPARQL denotes the "SPARQL
Protocol and RDF Query Language".

> The secret to creativity is knowing how to hide your sources.
> And something else eventually. I don't know.
> <footer>Albert Einstein, <cite>Some Time Ago</cite></footer>
Another joke is that "To understand recursion, you must understand recursion."
An alternative form is the following, from Andrew Plotkin: "If you already know
what recursion is, just remember the answer. Otherwise, find someone who is
standing closer to Douglas Hofstadter than you are; then ask him or her what
recursion is."

``` scheme
;; This is a code sample, highlighted by Rouge.
(define (read-input input-file)
(let ((content (call-with-input-file input-file get-string-all)))
(list->vector
(map string->number
(string-tokenize (substring content 0 (- (string-length content) 1))
(char-set-complement (char-set #\,)))))))
```

### Nonsense

Recursion is sometimes used humorously in computer science, programming,
philosophy, or mathematics textbooks, generally by giving a circular definition
or self-reference, in which the putative recursive step does not get closer to a
base case, but instead leads to an infinite regress. It is not unusual for such
books to include a joke entry in their glossary along the lines of:

### More nonsense

In mathematical logic, the Peano axioms (or Peano postulates or Dedekind–Peano
axioms), are axioms for the natural numbers presented in the 19th century by the
German mathematician Richard Dedekind and by the Italian mathematician Giuseppe
Peano. The Peano Axioms define the natural numbers referring to a recursive
successor function and addition and multiplication as recursive functions.

![foo](https://pixabay.com/static/uploads/photo/2015/12/01/20/28/green-1072828_960_720.jpg)

* foo
* bar
* baz
* quux
* one
* two
* three
* four
* five

## Features

* Responsive Layout
* Sitemap
* Atom feed
* Mailchimp Newsletter subscription
* Disqus Commenting
* Google Analytics
* Scheme.org Formatting
* Featured image for posts
* Minimal configuration

## Installing

* Download `zip` from the latest [release](https://github.com/brijeshb42/Jekyll-Read/releases).
* Change values in `_config.yml` as required. This file is commented wherever required.
* Create a file named `CNAME` and your domain (example.com) as its only line if you have your own domain.
* Change the value of the `url` variable to your blog's URL (eg: `http://githubusername.github.io`).
* Uncomment and add a value to `disqus` variable if you want to have disqus commenting enabled.
* Uncomment and add values to `ga_id` and `ga_domain` to add Google Analytics.
* Add a Mailchimp Newsletter form submission URL to `mailchimp` to add a newsletter subscription form.
* There's a file `projects.yml` in `_data` directory by default. You can add `title` and `url` values to it to add a **Project** submenu in the top navigation. Delete this file to remove the submenu.
* Replace `favicon.ico`, `favicon.png` and `sharer.png` with your own images.
* Create new posts in the `_posts` directory. If a `cover` variable is present in the front matter as shown in the `2015-12-06-an-example-post` file, it will be used as a cover image for that post. Its value should be absolute URL to the image.
* Now install `jekyll` and `jekyll-paginate` gems to test the site locally.
* Run `jekyll serve -w` in the theme's directory to run the server and goto [http://127.0.0.1:4000](http://127.0.0.1:4000) to check the changes.
* If everything works well, push your changes to github.

0 comments on commit 97b36af

Please sign in to comment.