Skip to content

Commit

Permalink
Merge pull request #52 from oAGoulart/updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
oAGoulart authored Jun 2, 2020
2 parents e252ee9 + b6cd021 commit 412dd27
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 53 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.2.8] - 2020-06-2

### Added

- Put troubleshooting into documentation

### Changed

- Contact layout now don't have a pre-defined contact form

## [0.2.6] - 2020-05-27

### Changed
Expand Down Expand Up @@ -51,7 +61,8 @@ All notable changes to this project will be documented in this file.
- Unnecessary files from Jekyll build/serve


[unreleased]: https://github.com/oAGoulart/vitrina/compare/v0.2.6...HEAD
[unreleased]: https://github.com/oAGoulart/vitrina/compare/v0.2.8...HEAD
[0.2.8]: https://github.com/oAGoulart/vitrina/releases/tag/v0.2.8
[0.2.6]: https://github.com/oAGoulart/vitrina/releases/tag/v0.2.6
[0.2.5]: https://github.com/oAGoulart/vitrina/releases/tag/v0.2.5
[0.2.4]: https://github.com/oAGoulart/vitrina/releases/tag/v0.2.4
Expand Down
94 changes: 94 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This theme was made with the purpose of being able to generate a site just by ed
- [Resume page layout](#resume-page-layout)
- [Structure content](#structure-content)
- [Links](#links)
+ [Troubleshooting](#troubleshooting)
+ [Contributions](#contributions)

# Usage
Expand Down Expand Up @@ -399,6 +400,99 @@ The links `_data/links.json` are used to generate contact information for the co
]
```

# Troubleshooting

These are some known issues that you may encouter:

**Using this theme with GitHub Pages**
---

> GitHub Pages have strict rules for which Jekyll plugins can be used
> with that being said [they do permit the use of any Jekyll themes publicly hosted on GitHub](https://github.blog/2017-11-29-use-any-theme-with-github-pages/)
> to use this theme with GitHub pages add the `remote_theme` config to your `_config.json` with the `oAGoulart/vitrina` value
```yaml
remote_theme: oAGoulart/vitrina
theme: vitrina
```
**Customizing this theme with SCSS**
---
> to change the theme looks you need to create a file called `assets/css/styles.scss`
> then use the template below to add your own styles

```scss
---
---
@charset "utf-8";
// this is the default values for color and font
@import "customize.scss";
// ... you can change those and put here your own ...
// an example would be changing the primary color:
// $primary: white;
// that would make all elements that use that color white.
// you could also use variables:
// $primary: $white;
// these are third party libraries
@import "_bulma.scss";
@import "_fork_awesome.scss";
// these are the actual theme styles for the elements
@import "elements.scss";
@import "code.scss";
```

**ForkAwesome icons font not found**
---

> this issue is caused if you do not have the `fork-awesome` node package located under `node_modules/fork-awesome`
> to fix this you should add `fork-awesome` as a dependency and install it using Yarn
> also you can download and extract it inside that folder if you prefer

```json
"dependencies": {
"fork-awesome": "^1.1.7"
}
```

**No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository.**
---

> this is caused if you don't have a **GitHub** repository setup
> it is necessary when using `github-pages` gem

```rb
gem 'github-pages', group: :jekyll_plugins
```

**Unknown tag 'seo' included in /_layouts/default.html**
---

> this issue is caused when the plugin `jekyll-seo-tag` is not specified at `_config.json`

```yaml
plugins:
- jekyll-seo-tag
```

**Blank page even when using layouts**
---

> generally caused by the lack of the `_data` folder and its files
> also, the contact layout does not have a pre-defined contact form, take a look at `contact.md` for an example

```
.
├── _data
│ ├── general.json
│ ├── home.json
│ ├── links.json
│ ├── resume.json
```
---
# Contributions
Expand Down
52 changes: 2 additions & 50 deletions _layouts/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
layout: default
---

{{ content }}

<div class="contacts">
<h1 class="title is-size-1 has-text-centered has-text-primary">{{ page.title }}</h1>
<div class="section section-card">
Expand All @@ -26,54 +24,8 @@ <h1 class="is-size-3 has-text-centered">Links</h1>
</p> {% comment %} links {% endcomment %}
</div>
<div class="column has-text-dark">
<h1 class="is-size-2">Get in touch!</h1>
<p>Use the form below to send me a message.</p>
<form name="contact">
<div class="field">
<label class="label">Name</label>
<div class="control">
<input class="input" type="text" name="name" placeholder="e.g. Vitrina" required>
</div>
</div>
<div class="field">
<label class="label">Email</label>
<div class="control has-icons-left">
<input class="input" type="email" name="email" placeholder="e.g. vitrina@example.com" required>
<span class="icon is-small is-left">
<i class="fa fa-envelope"></i>
</span>
</div>
</div>
<div class="field">
<label class="label">Subject</label>
<div class="control">
<input class="input" type="text" name="subject" placeholder="Message subject..." required>
</div>
</div>
<div class="field">
<label class="label">Message</label>
<div class="control">
<textarea class="textarea" name="message" placeholder="Message contents..." required></textarea>
</div>
</div>
<div class="field">
<div class="control">
<label class="checkbox">
<input type="checkbox" name="terms" required>
I agree to the <a href="#">terms and conditions</a>
</label>
</div>
</div>
<div class="field is-grouped">
<div class="control">
<input type="submit" class="button is-primary" value="Submit">
</div>
<div class="control">
<input type="reset" class="button is-link is-light" value="Cancel">
</div>
</div>
</div>
</form>
{{ content }}
</div>
</div>
</div>
</div>
Expand Down
48 changes: 48 additions & 0 deletions contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,51 @@
layout: contact
title: Contact
---

<h1 class="is-size-2">Get in touch!</h1>
<p>Use the form below to send me a message.</p>
<form name="contact">
<div class="field">
<label class="label">Name</label>
<div class="control">
<input class="input" type="text" name="name" placeholder="e.g. Vitrina" required>
</div>
</div>
<div class="field">
<label class="label">Email</label>
<div class="control has-icons-left">
<input class="input" type="email" name="email" placeholder="e.g. vitrina@example.com" required>
<span class="icon is-small is-left">
<i class="fa fa-envelope"></i>
</span>
</div>
</div>
<div class="field">
<label class="label">Subject</label>
<div class="control">
<input class="input" type="text" name="subject" placeholder="Message subject..." required>
</div>
</div>
<div class="field">
<label class="label">Message</label>
<div class="control">
<textarea class="textarea" name="message" placeholder="Message contents..." required></textarea>
</div>
</div>
<div class="field">
<div class="control">
<label class="checkbox">
<input type="checkbox" name="terms" required>
I agree to the <a href="#">terms and conditions</a>
</label>
</div>
</div>
<div class="field is-grouped">
<div class="control">
<input type="submit" class="button is-primary" value="Submit">
</div>
<div class="control">
<input type="reset" class="button is-link is-light" value="Cancel">
</div>
</div>
</form>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitrina",
"version": "0.2.6",
"version": "0.2.8",
"description": "A general purpose, configurable, Jekyll theme",
"main": "index.html",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion vitrina.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = 'vitrina'
s.version = '0.2.6'
s.version = '0.2.8'
s.authors = ['Augusto Goulart']
s.email = ['josegoulart.aluno@unipampa.edu.br']

Expand Down

0 comments on commit 412dd27

Please sign in to comment.