Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrhymes committed Mar 13, 2021
1 parent 4e67f97 commit 638b547
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The theme uses [Alpine.js](https://github.com/alpinejs/alpine) for its interacti

* [Installation](#installation)
* [Usage](#usage)
* [Lang](#lang)
* [Pages](#pages)
* [Page Hero](#page-hero)
* [Table Of Contents](#table-of-contents)
Expand Down Expand Up @@ -63,6 +64,10 @@ Or install it yourself as:
## Usage
### Lang
The html lang attribute is set to `en` by default but you can override this in the _config.yml file `lang: en`

### Pages

Create your pages as individual Markdown files and use `layout: page` for normal pages. Set the page's title and subtitle in the front matter and it will appear in the hero.
Expand Down
2 changes: 1 addition & 1 deletion _includes/vimeo.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<figure class="image is-16by9">
<iframe src="https://player.vimeo.com/video/{{ include.video }}?color=ff9933&title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe><script src="https://player.vimeo.com/api/player.js"></script>
<iframe src="https://player.vimeo.com/video/{{ include.video }}?color=ff9933&title=0&byline=0&portrait=0" class="has-ratio" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe><script src="https://player.vimeo.com/api/player.js"></script>
</figure>
14 changes: 7 additions & 7 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!DOCTYPE html>
{% if page.menubar or page.menubar_toc %}
{% assign has_left_sidebar = true %}
{% assign has_left_sidebar = true %}
{% endif %}

{% if page.show_sidebar and has_left_sidebar %}
{% assign content_width = 'is-4' %}
{% assign content_width = 'is-4' %}
{% elsif page.show_sidebar or has_left_sidebar %}
{% assign content_width = 'is-8' %}
{% assign content_width = 'is-8' %}
{% else %}
{% assign content_width = 'is-12' %}
{% assign content_width = 'is-12' %}
{% endif %}

<!DOCTYPE html>
<html
lang="{{ site.lang | default: 'en' }}"{% if site.fixed_navbar %}
class="has-navbar-fixed-{{ site.fixed_navbar }}"{% endif %}>
lang="{{ site.lang | default: 'en' }}"
{% if site.fixed_navbar %}class="has-navbar-fixed-{{ site.fixed_navbar }}"{% endif %}>
{% include head.html %}
<body>
{% include header.html %}
Expand Down

0 comments on commit 638b547

Please sign in to comment.