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

Added blog pages #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ desktop.ini
Thumbs.db
.sass-cache
*.cfg
node_modules
node_modules
package.json
Binary file added .sass-cache/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions content/review-response-8.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: 'Review Response 8'
content_type: html
---
<p><span style="color: #ff6600;"><strong>Store Response:&nbsp;</strong></span></p>
<p style="padding-left: 30px;">Hi there,&nbsp;</p>
<p style="padding-left: 30px;">Sorry to hear you had a bad experience with the Ionic Band.&nbsp;We're sending you a replacement&nbsp;:)</p>
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
<<<<<<< HEAD
"name": "lscloud-theme-ventro",
"version": "1.0.0",
"description": "A theme for LemonStand 2",
"main": "theme.yaml",
=======
"name": "Ventro",
"version": "1.0.0",
"description": "Ventro is a modern responsive theme with clean lines, and minimal color. It is full-width, allowing you to use large hero images to express your value proposition and highlight your latest product. The homepage also has space for three featured categories, with a focus on imagery for visual appeal. The product pages continue with the modern layout with product images on the left, a description on the right, and then a section below for further details or product specifications.",
Expand All @@ -15,14 +21,19 @@
"full": "https://raw.githubusercontent.com/lemonstand/lscloud-theme-ventro/master/resources/screenshots/full-size.png"
}
},
>>>>>>> 323673364813ac849fc3de1bbd80e44aefee256e
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lemonstand/lscloud-theme-ventro.git"
},
<<<<<<< HEAD
"author": "Daniel Park",
=======
"author": "LemonStand <[email protected]> (http://docs.lemonstand.com)",
>>>>>>> 323673364813ac849fc3de1bbd80e44aefee256e
"license": "MIT",
"bugs": {
"url": "https://github.com/lemonstand/lscloud-theme-ventro/issues"
Expand All @@ -34,11 +45,15 @@
"gulp-notify": "^2.2.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.2.0"
<<<<<<< HEAD
}
=======
},
"keywords": [
"1-page-checkout",
"hero-image",
"responsive",
"electronics"
]
>>>>>>> 323673364813ac849fc3de1bbd80e44aefee256e
}
Binary file added pages/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions pages/blog-categories/code-breadcrumbs.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<ul class="breadcrumb list-inline">
<li><a href="/">Home</a></li>
<li><a href="/archives/blog">Blog</a></li>
<li>{{ category }}</li>
</ul>
1 change: 1 addition & 0 deletions pages/blog-categories/code-setup.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% global active_page = 'blog' %}
53 changes: 53 additions & 0 deletions pages/blog-categories/page-blog-categories.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
action: 'cmscontent:archive'
description: 'Blog Categories'
template: default
protocol: all
published: true
name: 'Blog Categories'
url: '/archives/:type/:category'
---
<section class="section-products-grid" id="products-grid-sidebar">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-3">
<div class="sidebar">
<div class="accordion-widget category-accordions">
<h2>Categories</h2>
{{ partial('blog-categories') }}
</div>
</div>
</div>
<div class="col-xs-12 col-md-9">
<div class="row">
<div class="col-xs-12 col-md-6">
<h1>{{ category }}</h1>
</div>
</div>

{% if archives | length > 0 %}
{% paginate archives by 5 %}
{% for post in pagination.items %}
<div>
<h2><a href="/blog/{{ post.guid }}">{{ post.title }}</a></h2>
<div>{{ post.excerpt | unescape }}</div>
<div><a href="/blog/{{ post.guid }}">Read More</a></div>
</div>
<hr/>
{% endfor %}
<div class="paging-holder">
{% navigation %}
</div>
{% endpaginate %}
{% else %}
<article>
<header>
<h4>Not found</h4>
<p>No {{ type }} posts found in category: {{ category }} {{ categoryID }}</p>
</header>
</article>
{% endif %}
</div>
</div>
</div>
</section>
5 changes: 5 additions & 0 deletions pages/blog-post/code-breadcrumbs.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<ul class="breadcrumb list-inline">
<li><a href="/">Home</a></li>
<li><a href="/archives/blog">Blog</a></li>
<li>{{ slug }}</li>
</ul>
54 changes: 53 additions & 1 deletion pages/blog-post/page-blog-post.htm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,57 @@
protocol: all
published: true
name: 'Blog Post'
<<<<<<< HEAD
url: '/blog/:slug'
---
{% if featured_image %}
<section class="section-home-banner">
<div class="container">
<img class="lazy" src="{{ featured_image.thumbnail(1000, 'auto')|default('http://placehold.it/1000x365') }}" width="1000" alt="{{ featured_image.alt }}"/>
</div>
</section>
{% endif %}

<section class="section-blog-post-page">
<div class="container">
<div class="row">
<div class="single-blog-post-holder">
<div class="col-xs-12 col-sm-12 blog-holder">
<!-- BLOG -->
<div class="row">
<div class="col-xs-12 col-sm-6">
<h1>{{ post.title }}</h1>
</div>
<div class="col-xs-12 published-date">
<p><em>Published {{ post.published_on | date("F j, Y") }} In {{ post.type }}</em></p>
</div>
</div>
<div id="blog-content">
{{ post.body | unescape }}
</div>
<!-- BIO -->
<div class="bio-container">
{% if profile_image %}
<img class="img-circle" src="{{ profile_image.thumbnail(252, 'auto')|default('http://placehold.it/100x100') }}" style="height: 100px; width: 100px;" alt="{{ profile_image.alt }}"/>
{% endif %}
<strong>{{ post.author_name }}</strong>
<ul class="social-links">
{% for link in post.user.getSocialProfiles() %}
<li class="{{ link.name }}">
<a href="{{ link.link }}"><i class="icon icon-{{ link.name }}"></i><span>{{ link.name }}</span></a>
</li>
{% endfor %}
</ul>
<div class="author-bio">
{{ post.user.user_bio|unescape }}
</div>
</div>
</div>
</div>
</div>
</div>
</section>
=======
url: /blog/:slug
---
<div class="row blog-posts">
Expand All @@ -24,4 +75,5 @@
{{ post.user.user_bio|unescape }}
</div>
</div>
</div>
</div>
>>>>>>> 323673364813ac849fc3de1bbd80e44aefee256e
56 changes: 36 additions & 20 deletions pages/blog/page-blog.htm
Original file line number Diff line number Diff line change
@@ -1,30 +1,46 @@
---
action: 'cmscontent:archive'
description: 'blog template'
template: default
protocol: all
published: true
name: Blog
url: /blog
url: '/archives/:type'
---
<div class="row">
<div class="content twelve columns">
{% set publishedPosts = 0 %}
{% for post in archives %}
{% if post.status == "published" %}
<section class="section-products-grid" id="products-grid-sidebar">
<div class="container">
<div class="row">
{% if archives | length > 0 or publishedPosts > 0 %}
{% paginate archives by 5 %}
{% set publishedPosts = 0 %}
<div class="col-xs-12 col-md-3">
<div class="sidebar">
<div class="accordion-widget category-accordions">
<h2>Categories</h2>
{{ partial('blog-categories') }}
</div>
</div>
</div>
<div class="col-xs-12 col-md-9">
{% for post in archives %}
{% if post.status == "published" %}
{% set publishedPosts = publishedPosts + 1 %}
{% endif %}
<div class="blog-posts">
<h2><a href="blog/{{ post.guid }}">{{ post.title }}</a></h2>
{% endif %}
<div>
<h2><a href="/blog/{{ post.guid }}">{{ post.title }}</a></h2>
<div>{{ post.excerpt | unescape }}</div>
<div><a href="blog/{{ post.guid }}">Read More</a></div>
</div>
<hr/>
{% endfor %}

{% if archives | length == 0 or publishedPosts == 0 %}
<div class="blog-posts">
<h2>No posts found</h2>
</div>
{% endif %}
<div><a href="/blog/{{ post.guid }}">Read More</a></div>
</div>
<hr/>
{% endfor %}
<div class="paging-holder">
{% navigation %}
</div>
</div>
{% endpaginate %}
{% else %}
<h2>No posts found</h2>
{% endif %}
</div>
</div>
</div>
</section>
3 changes: 1 addition & 2 deletions pages/contact/page-contact.htm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
name: Contact
url: /contact
---

<div class="container-fluid about-head">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -34,6 +33,7 @@ <h3>Need to send a message?</h3>
<input type="hidden" name="redirect" value="{{ site_url('/') }}"/>
<input type="submit" class="btn-default btn" value="Submit"/>
<input type="text" name="hp" value="" style="display: none"/>

</div>
{{ close_form() }}
</div>
Expand All @@ -45,4 +45,3 @@ <h3>Contact Us here</h3>
</div>
</div>
</div>

32 changes: 16 additions & 16 deletions pages/product/code-breadcrumbs.htm
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% set category = product ? product.categories[0] : null %}

<div class="container-fluid product-breadcrumb text-center">
<h4>
<a href="/">Home</a>
<span>/</span>
{% if category %}
{% for parent in category.listAllParents() %}
<a href="/category/{{ parent.fullUrlName }}">{{ parent.name }}</a>
<span>/</span>
{% endfor %}
<a href="/category/{{ category.fullUrlName }}">{{ category.name }}</a>
<span>/</span>
{% endif %}
<a href="/product/{{ product.url_name }}">{{ product.name }}</a>
</h4>
{% set category = product ? product.categories[0] : null %}
<div class="container-fluid product-breadcrumb text-center">
<h4>
<a href="/">Home</a>
<span>/</span>
{% if category %}
{% for parent in category.listAllParents() %}
<a href="/category/{{ parent.fullUrlName }}">{{ parent.name }}</a>
<span>/</span>
{% endfor %}
<a href="/category/{{ category.fullUrlName }}">{{ category.name }}</a>
<span>/</span>
{% endif %}
<a href="/product/{{ product.url_name }}">{{ product.name }}</a>
</h4>
</div>
6 changes: 1 addition & 5 deletions pages/product/page-product.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
name: Product
url: '/product/:urlName'
---

{{ open_form({'class': 'custom', 'onsubmit': 'return false'}) }}
{% if product %}
<div class="container-fluid" id="product-page">
Expand All @@ -16,9 +15,6 @@
<h2>We are sorry, the requested product was not found.</h2>
{% endif %}
{{ close_form() }}

{{ partial('shop-product-review-form') }}
{{ partial('shop-product-review') }}




Loading