Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support HTML lang tag #96

Merged
merged 2 commits into from
Mar 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Site Settings
lang: en
title: Bulma Clean Theme
tagline: Bulma Clean Theme
email: your-email@domain.com
Expand Down Expand Up @@ -76,4 +77,4 @@ collections:
output: true
layout: product
image: https://via.placeholder.com/800x600
show_sidebar: false
show_sidebar: false
17 changes: 9 additions & 8 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
{% assign has_left_sidebar = true %}
{% endif %}

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

<!DOCTYPE html>
<html {% if site.fixed_navbar %} class="has-navbar-fixed-{{ site.fixed_navbar }}" {% endif %}>
<html
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 Expand Up @@ -54,4 +56,3 @@
{%- include footer-scripts.html -%}
</body>
</html>