Skip to content

tadpole-share/tadpole-share.github.io

Repository files navigation

Changing this website

To change the menu structure and contents

Edit the _config.yml file to change all the settings to reflect your site. To edit the file, click on it and then click on the pencil icon (watch the video tutorial above if you're confused). The settings in the file are fairly self-explanatory and I added comments inside the file to help you further. Any line that begins with a pound sign (#) is a comment, and the rest of the lines are actual settings.

To change the menu, find the code block that starts with "# List of links in the navigation bar" and adjust the settings accordingly.

After you save your changes to the config file (by clicking on Commit changes), it takes a little while to update online. It should be ready in a minute or two at https://tadpole-share.github.io. Every time you make a change to any file and commit that change, the website will get rebuilt.

To change the content

To change the content, open the files "aboutme.md" and "index.md" in the root directory and make changes. Saving these files and committing the changes will result in the content getting updated online. Again, it should be ready in a minute or two at https://tadpole-share.github.io. Every time you make a change to any file and commit that change, the website will get rebuilt.

If needed, here is a good resource to learn markdown.

Last important thing: YAML front matter ("parameters" for a page)

In order to have your new pages use this template and not just be plain pages, you need to add YAML front matter to the top of each page. This is where you'll give each page some parameters, such as a title and subtitle. If you don't want to use any parameters on your new page (this also means having no title), then use the empty YAML front matter:

---
---

If you want to use any parameters, write them between the two lines. For example, you can have this at the top of a page:

---
title: Contact me
subtitle: Here you'll find all the ways to get in touch with me
---

You can look at the top of aboutme.md or index.html as more examples.

Important takeaway: ALWAYS add the YAML front matter, which is two lines with three dashes, to EVERY page. If you have any parameters, they go between the two lines.     If you don't include YAML then your file will not use the template.

YAML front matter parameters

These are the main parameters you can place inside a page's YAML front matter that Beautiful Jekyll supports.

Parameter Description
title Page or blog post title
subtitle Short description of page or blog post that goes under the title
tags List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: [personal, self help, finance]
bigimg Include a large full-width image at the top of the page. You can either give the path to a single image, or provide a list of images to cycle through (see my personal website as an example).
comments If you want do add comments to a specific page, use comments: true. Comments are automatically enabled on blog posts; to turn comments off for a specific post, use comments: false. Comments only work if you enable at least one provider(diqus, staticman, just-comments) in _config.yml file.
show-avatar If you have an avatar configured in the _config.yml but you want to turn it off on a specific page, use show-avatar: false. If you want to turn it off by default, locate the line show-avatar: true in the file _config.yml and change the true to false; then you can selectively turn it on in specific pages using show-avatar: true.
image If you want to add a personalized image to your blog post that will show up next to the post's excerpt and on the post itself, use image: /path/to/img.
share-img If you want to specify an image to use when sharing the page on Facebook or Twitter, then provide the image's full URL here.
social-share If you don't want to show buttons to share a blog post on social media, use social-share: false (this feature is turned on by default).
use-site-title If you want to use the site title rather than page title as HTML document title (ie. browser tab title), use use-site-title: true. When set, the document title will take the format Site Title - Site Description (eg. My website - A virtual proof that name is awesome!). By default, it will use Page Title if it exists, or Site Title otherwise.
layout What type of page this is (default is post for blog posts and page for other pages. You can use minimal if you don't want a header and footer)
js List of local JavaScript files to include in the page (eg. /js/mypage.js)
ext-js List of external JavaScript files to include in the page (eg. //cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js). External JavaScript files that support Subresource Integrity (SRI) can be specified using the href and sri parameters eg.
href: "//code.jquery.com/jquery-3.1.1.min.js"
sri: "sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
css List of local CSS files to include in the page
ext-css List of external CSS files to include in the page. External CSS files using SRI (see ext-js parameter) are also supported.
googlefonts List of Google fonts to include in the page (eg. ["Monoton", "Lobster"])
gh-repo   If you want to show GitHub buttons at the top of a post, this sets the GitHub repo name (eg. daattali/beautiful-jekyll). You must also use the gh-badge parameter to specify what buttons to show.
gh-badge Select which GitHub buttons to display, available options are: [star, watch, fork, follow]. You must also use the gh-repo parameter to specify the GitHub repo.

Advanced: Local development using Docker

Beautiful Jekyll is meant to be so simple to use that you can do it all within the browser. However, if you'd like to develop locally on your own machine, that's possible too if you're comfortable with command line. Follow these simple steps set that up with Docker:

  1. Make sure you have Docker installed.

  2. Clone your repository locally.

    git clone https://github.com/<your_username>/<your_username>.github.io.git
  3. Run the following shell commands to build the docker image and start the container for the first time:

    cd <repository_folder>
    docker build -t beautiful-jekyll "$PWD"
    docker run -d -p 4000:4000 --name beautiful-jekyll -v "$PWD":/srv/jekyll beautiful-jekyll

Now that Docker is set up, you do not need to run the above steps again. You can now view your website at http://localhost:4000/. You can start the container again in the future with:

docker start beautiful-jekyll

And you can stop the server with:

docker stop beautiful-jekyll

Whenever you make any changes to _config.yml, you must stop and re-start the server for the new config settings to take effect.

Beautiful Jekyll

This website was created using the Beautiful Jekyll template, created by Dean Attali If you want to create your own website based on this template, we recommend visiting The Beautiful Jekyll GitHub repository.