Sections display in sorted of the configuration
The content in index.html is now sorted in _config.yml pages_list order. * Close PanosSakkos/personal-jekyll-theme#40 issue * Moved latest-posts to latest-post.html for conflict with blog.html * Changed the ID in sections for page.section-type * Subtracted 50 in offset Scrollspy
This commit is contained in:
parent
3f0ca12dd4
commit
d7203acf3a
7 changed files with 13 additions and 26 deletions
|
|
@ -118,7 +118,7 @@ social:
|
||||||
|
|
||||||
pages_list:
|
pages_list:
|
||||||
About: 'about'
|
About: 'about'
|
||||||
Blog: 'blog'
|
Blog: 'latest-post'
|
||||||
Career: 'career'
|
Career: 'career'
|
||||||
Contact: 'contact'
|
Contact: 'contact'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<!-- About Start -->
|
<!-- About Start -->
|
||||||
|
|
||||||
<section id="{{ page.title }}" class="container content-section text-center">
|
<section id="{{ page.section-type }}" class="container content-section text-center">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10 col-lg-offset-1">
|
<div class="col-lg-10 col-lg-offset-1">
|
||||||
{{ page.content | markdownify }}
|
{{ page.content | markdownify }}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<!-- Career Start -->
|
<!-- Career Start -->
|
||||||
|
|
||||||
<section id="{{ page.title }}" class="container content-section text-center">
|
<section id="{{ page.section-type }}" class="container content-section text-center">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10 col-lg-offset-1">
|
<div class="col-lg-10 col-lg-offset-1">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<!-- Contact Start -->
|
<!-- Contact Start -->
|
||||||
|
|
||||||
<section id="{{ page.title }}" class="container content-section text-center">
|
<section id="{{ page.section-type }}" class="container content-section text-center">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10 col-lg-offset-1">
|
<div class="col-lg-10 col-lg-offset-1">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<!-- Latest Post Preview Start -->
|
<!-- Latest Post Preview Start -->
|
||||||
|
|
||||||
<section id="{{ page.title }}" class="container content-section text-center">
|
<section id="{{ page.section-type }}" class="container content-section text-center">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-10 col-lg-offset-1">
|
<div class="col-lg-10 col-lg-offset-1">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,32 +6,18 @@
|
||||||
|
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
|
||||||
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top" data-offset="100">
|
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top" data-offset="50">
|
||||||
|
|
||||||
{% include navigation.html %}
|
{% include navigation.html %}
|
||||||
|
|
||||||
{% include header.html %}
|
{% include header.html %}
|
||||||
|
|
||||||
{% for page in site.pages %}
|
{% for p in site.pages_list %}
|
||||||
|
{% for page in site.pages %}
|
||||||
{% if page.section-type == "about" %}
|
{% if p[1] == page.section-type%}
|
||||||
|
{% include {{ page.path }} %}
|
||||||
{% include about.html %}
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% elsif page.section-type == "latest-post" %}
|
|
||||||
|
|
||||||
{% include latest-post.html %}
|
|
||||||
|
|
||||||
{% elsif page.section-type == "career" %}
|
|
||||||
|
|
||||||
{% include career.html %}
|
|
||||||
|
|
||||||
{% elsif page.section-type == "contact" %}
|
|
||||||
|
|
||||||
{% include contact.html %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% include footer.html %}
|
{% include footer.html %}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
section-type: latest-post
|
section-type: latest-post
|
||||||
|
title: Blog
|
||||||
---
|
---
|
||||||
## Blog
|
## Blog
|
||||||
Loading…
Add table
Add a link
Reference in a new issue