diff --git a/_config.yml b/_config.yml index 314bd6e49..587f9e088 100644 --- a/_config.yml +++ b/_config.yml @@ -18,6 +18,7 @@ theme_config: back_home_text: ".." # customize text for homepage link in post layout date_format: "%Y-%m-%d" # customize how date is formatted show_description: false # show blog description in home page + show_index_content_in_top: false # show content of index.md above menu sass: style: :compressed diff --git a/_layouts/home.html b/_layouts/home.html index 5e08510fe..e216a3f3f 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -8,6 +8,12 @@

{{ site.title }}

{%-endif-%} +{%-if site.theme_config.show_index_content_in_top-%} + {{ content }} +{%-endif-%} + {%-include menu_item.html collection=site.data.menu.entries-%} -{{ content }} \ No newline at end of file +{%-unless site.theme_config.show_index_content_in_top-%} + {{ content }} +{%-endunless-%}