Edit your Site
This site is built using Bootstrap. If you want to make extensive changes, I recommend you take the HTML/CSS course and the Bootstrap course on Codecademy. It’s REALLY easy if you have even basic knowledge of HTML/CSS and/or Bootstrap.
What do you want to do?
- Update page content
- Upload comic pages
- Change the page background or fonts
- Change the header background or fonts
- Change my comic’s title and description
- Update social media info or add social media icons
- Add Google Analytics
I want to update content to the info pages!
The theme comes with two info pages: About and Extras. You can edit the content by opening the markdown files
called about.md
or extras.md
Markdown files are text files that are meant to be converted to HTML. You'll need to write your content using Markdown syntax so it will properly convert to HTML. [Read about Markdown Syntax](https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf). Don't worry, Markdown is really easy to write in. In fact, the whole point of it is that it's easier to write than HTML.
For example, if you want to make a bullet list, format it like so:
My Cats
- Loki
- Meeko
- Parking Lot Cat
It will look like this:
My Cats
- Loki
- Meeko
- Parking Lot Cat
If you want to add a link, format it like so:
[I want to learn more code!](https://www.codecademy.com/)
It will look like this: I want to learn more code!
I want to upload pages!
This is pretty cool. All you need to do is drop your image file into the images folder, then
- Name your image file after the page number. For example: 003 (Keeping your names and numbering consistent will make it easier for you to update in the future.)
- Drop your new page into the images folder.
- Go into the _posts folder and create a new Markdown file.
- Paste the following content, only replace the {page number} with the actual page number. It’s faster if you duplicate an existing page and just update the page numbers wherever they appear.
---
layout: comic
title: "1"
date: 2017-04-23 11:42:56 -0700
categories: page
---
![](/pages/001.png)
That’s it! Rebuild your site and it’ll appear along with the rest of your pages. It will also appear in your Archives page.
If you’ve already pushed your site to live on Github Pages, you can just add the image file and the markdown file to your repository.
Change the page's background or the page's fonts
This will require you to edit the CSS file. It’s not necessary, but I recommend you learn a tiny bit about CSS syntax.
- Open your directory and open the css folder. Then, open comic.css.
- Ctrl+F “HEADER” to quickly find the header styles.
- To change the header background, replace the background URL.
- To change the header fonts, update the font family for jumbotron h1 and jumbotron p.
- Make sure each line still ends with a semicolon! Then, save your work and update the file in your repository.
I want to change the header's background or the header's fonts!
This will require you to edit the CSS file. It’s not necessary, but I recommend you learn a tiny bit about CSS syntax.
Next, update your CSS file to tell your website when to use this font.
- Open your directory and open the css folder. Then, open comic.css.
- Ctrl+F “HEADER” to quickly find the header styles.
- To change the header background, replace the backgrould URL.
- To change the header fonts, update the font family for jumbotron h1 and jumbotron p.
- Make sure each line still ends with a semicolon! Then, save your work and update the file in your repository.
If you're changing fonts, you'll need to embed the font by linking to it in the \
section of your site. This makes sure the website knows where to find the information it needs to display the font.- Get the link for your tag. I recommend using Google Fonts. They have a lot of great fonts and it's easy to embed them into your site. Learn how to use Google Fonts
- Open your directory and open the layouts folder. Then, open default.html.
- Ctrl+F “Fonts”, then paste your link in under where it says "Google Fonts".
- Save your work and update the file in your repository.
Note: You can do a lot more if you know a bit of CSS. Consider learning some!
I want to change my comic’s title and description!
- Open your directory and open the config.yml file.
- Change the values for title and description. While you’re here, you can also change the text that will appear on the browser tab!
- Save your changes, then rebuild your site using
jekyll serve
. Note: Anytime you make changes to the config.yml file, you’ll need to rebuild your site.
Update social media info or add social media icons.
Add social media
This theme comes with a small HTML snippet that includes icons for Tumblr and Twitter.
To add these icons:
- Copy the text below.
{/% include socialmedia.html %}
-
Paste it into the markup file where you want it to go. This snippet of code tells Jekyll to pull in the bit of HTML code inside a file called socialmedia in the folder called _includes.
-
IMPORTANT: Remove the slash from the first bracket.
Update social media info
Open the config.yml file and update these fields with your Tumblr or Twitter URLs.
twitter_username:
tumblr_username:
If you want to add other social media accounts other than Tumblr or Twitter, you’ll need to add button code to the HTML code for the social media icons.
-
First, go to Font Awesome and search for the brand icon you want to use. Click on the icon and get the
<i>
tag. For example, the<i>
tag for Etsy is<i class="fa fa-paypal" aria-hidden="true"></i>
. Note: If Font Awesome doesn’t have the icon you want, you’ll need to just make your own. -
Go to your directory and open the _includes folder. Then, open the socialmedia file or the authorsocialmedia.
-
Paste in the following code, but with the
<i>
tag you got from Font Awesome.<a href=" "> <i class="fa fa-etsy fa-3x" aria-hidden="true"></i> </a>
In the tag, enter the URL for the button.
I want to add Google Analytics!
To use Google Analytics to monitor traffic to your site, you’ll need to get a Javascript tracking snippet and put it in your website.
- Make a Google Analytics account.
- Get the Javascript tracking snippet.
- Go to your directory and open the
_layouts
folder. Then, open yourdefault.html
file. Find where it says<!--Google Analytics-->
and paste your Javascript tracking snippet underneath.