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:
|
||||
About: 'about'
|
||||
Blog: 'blog'
|
||||
Blog: 'latest-post'
|
||||
Career: 'career'
|
||||
Contact: 'contact'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<!-- 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="col-lg-10 col-lg-offset-1">
|
||||
{{ page.content | markdownify }}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<!-- 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="col-lg-10 col-lg-offset-1">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<!-- 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="col-lg-10 col-lg-offset-1">
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
<!-- 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="col-lg-10 col-lg-offset-1">
|
||||
|
||||
|
|
|
|||
|
|
@ -6,32 +6,18 @@
|
|||
|
||||
{% 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 header.html %}
|
||||
|
||||
{% for p in site.pages_list %}
|
||||
{% for page in site.pages %}
|
||||
|
||||
{% if page.section-type == "about" %}
|
||||
|
||||
{% include about.html %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
{% if p[1] == page.section-type%}
|
||||
{% include {{ page.path }} %}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% include footer.html %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
section-type: latest-post
|
||||
title: Blog
|
||||
---
|
||||
## Blog
|
||||
Loading…
Add table
Add a link
Reference in a new issue