Repository: jsanz/gh-pages-minima-starter Branch: master Commit: ffe3ac0cbe20 Files: 21 Total size: 16.1 KB Directory structure: gitextract_kf24lx0h/ ├── .gitignore ├── Dockerfile ├── Gemfile ├── LICENSE ├── README.md ├── _config.yml ├── _includes/ │ └── footer.html ├── _pages/ │ ├── 404.md │ ├── about.md │ ├── archive.md │ └── frontpage.md ├── _posts/ │ ├── 2020-03-18-my-first-post.md │ ├── 2020-03-22-get-code.md │ ├── 2020-03-24-edit-content.md │ ├── 2020-03-25-github-edit.md │ ├── 2020-04-15-posts.md │ ├── 2020-04-17-local-env.md │ ├── 2020-04-19-links.md │ └── 2020-04-20-html.md ├── assets/ │ └── main.scss └── docker-compose.yml ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ _site/ .sass-cache/ .jekyll-cache/ .jekyll-metadata .vscode **/*.swp env ================================================ FILE: Dockerfile ================================================ # Create a Jekyll container from a Ruby Alpine image # At a minimum, use Ruby 2.5 or later FROM ruby:2.7-alpine3.15 WORKDIR /srv/jekyll # Add Jekyll dependencies to Alpine RUN apk update RUN apk add --no-cache build-base gcc cmake git COPY ./Gemfile* /srv/jekyll # Update the Ruby bundler and install Jekyll RUN gem update bundler && bundle install ================================================ FILE: Gemfile ================================================ source "https://rubygems.org" gem 'github-pages', group: :jekyll_plugins gem "webrick", "~> 1.8" ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2020 Jorge Sanz 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 ================================================ # gh-pages-minima-starter This is a template and some instructions for running Github Pages with the [`minima` theme][minima]. This repo has what I consider the minimum pieces for a personal blog using [Jekyll][jk] and [Github Pages][gh-site]: * Frontpage that includes your last blog posts: `_pages/frontpage.md` * Archive for all your posts: `_pages/archive.md` * About page: `_pages/about.md` * Minimum 404 page: `_pages/404.md` * Minimum metadata in the `_config.yml` * Example CSS change inside `assets/main.scss` * Custom footer template `_includes/footer.html` Check out the excellent [`minima` theme][minima] documentation for further details and customization and the [official docs][gh] for more details on how Github Pages work. For more details on how to set it up locally, create content, use Github interface, etc. feel free to visit this [website post][dev] or the source code here. Do you have questions? feel free to [open an issue](https://github.com/jsanz/gh-pages-minima-starter/issues/new/choose) or [contact me](https://jorgesanz.net/contact). Enjoy!! [gh-site]: https://pages.github.com/ [jk]: https://jekyllrb.com/ [minima]: https://github.com/jekyll/minima/tree/2.5-stable [gh]: https://help.github.com/en/github/working-with-github-pages [gh-settings]: https://help.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site [dev]: https://jsanz.github.io/gh-pages-minima-starter/2020/04/17/local-env.html ================================================ FILE: _config.yml ================================================ title: My blog description: My very nice blog author: "Jorge Sanz" theme: minima base_url: /gh-pages-minima-starter repository: jsanz/gh-pages-minima-starter # Minima social links github_username: jsanz linkedin_username: jsanz rss: rss # Minima: show excerpts in the frontpage show_excerpts: true minima: date_format: "%Y-%m-%d" # Minima: custom header links header_pages: - _pages/frontpage.md - _pages/about.md - _pages/archive.md include: - _pages exclude: - .gitignore - docker-compose.yml - Gemfile - Gemfile.lock - LICENSE - README.md ================================================ FILE: _includes/footer.html ================================================ ================================================ FILE: _pages/404.md ================================================ --- permalink: /404 layout: page title: Ooops! --- That url does not exist, sorry!! ================================================ FILE: _pages/about.md ================================================ --- permalink: /about layout: page title: About me --- More details about me on this page with links to my social media profiles and so on.  ================================================ FILE: _pages/archive.md ================================================ --- permalink: /archive layout: page title: Blog archive ---
For more details about how this example site works checkout [the github project](https://github.com/jsanz/gh-pages-minima-starter).
Have a great day!!
[gh-site]: https://pages.github.com/
[minima]: https://github.com/jekyll/minima/tree/2.5-stable
[jk]: https://jekyllrb.com/
[gh]: https://help.github.com/en/github/working-with-github-pages
[issue]: https://github.com/jsanz/gh-pages-minima-starter/issues/new/choose
[contact]: https://jorgesanz.net/contact/
================================================
FILE: _posts/2020-03-18-my-first-post.md
================================================
---
title: "Tutorial I: my first post"
date: 2020-03-18
layout: post
---
This is **my very first post**!! I can write
* unnumbered
* fancy
* lists
But also
1. numbered
1. ones
1. easily
Images

And so on...
================================================
FILE: _posts/2020-03-22-get-code.md
================================================
---
title: "Tutorial II: Take the code!"
date: 2020-03-22
layout: post
---
How to use this template? Well the easiest way may be to hit the **"Use this template"** green button on the [Github repository](https://github.com/jsanz/gh-pages-minima-starter) page to copy the repository structure into your own account. You can have your website **without setting up a local environment** (but [you can do it]({{ site.baseurl }}{% post_url 2020-04-17-local-env %}) if you are a bit tech savvy).
After creating the project, the first thing I would do is to change the project name at the `Settings` tab. The name of the project will became part of the website main address. So if for example you name your repo as `myblog`, your website will be available at `https://yourusername.github.io/myblog`. There is a special case, if you name your repo as `yourusername.github.io` then the website will be published at `https://yourusername.github.io` which may be a good idea for a personal website!
Next thing to do is to customize the main settings on the `_config.yml` file: website title, description, base URL (remove this setting it if you are deploying to your GitHub user website), and your details. If you don't want to show excerpts of your posts in the front page you can disable that checking removing that entry on adding a `#` at the beginning of that line. You don't need to change anything else.
After the configuration is ready you can enable the website publishing on the same `Settings` page a bit further down. Remember to set up the `master` branch as the source of your documents. Once you save your settings wait for a few minutes and your site is ready!!
Any time you change anything in your repository you do an operation called _pushing a commit_. On every push the website is rebuilt. You can see the details of that process in the `Environment` section that is accessible from the repository front-page.

================================================
FILE: _posts/2020-03-24-edit-content.md
================================================
---
title: "Tutorial III: editing your content"
date: 2020-03-24
layout: post
---
From the [last post]({{ site.base_url }}{% link _posts/2020-03-22-get-code.md %}), your website is published with your details but now how to edit the frontpage, remove the example blog posts or create your own. Let's dive in to that.
First thing to know is that [Github Pages](https://pages.github.com/) by default accepts rendering content in HTML and [Markdown](https://daringfireball.net/projects/markdown/syntax). I **strongly** recommend using Markdown because it's very simple and out of your way when you write, since the formatting rules are very simple. If you are going to write a long piece, you may want to use an external editor and then upload or paste your content into github. There are many text editors that support Markdown but if I have to suggest one that works well for writing I'd go for [typora](https://typora.io/) because it's supporting Linux, Windows, and also MacOS (in beta).

Another example could be to change text color.
Another example could be to change text color.