cleaned up fake data file, convereted index template to twig
parent
8e5eaf4e34
commit
acf2f6e86c
@ -1,22 +0,0 @@
|
||||
extends frame
|
||||
|
||||
block main-content
|
||||
section
|
||||
.page-title
|
||||
span Archive
|
||||
article
|
||||
.page
|
||||
- var index = 0;
|
||||
- for ( index; index < archives.length; index++)
|
||||
.archive-item
|
||||
span.year= archives[index].year
|
||||
- var i = 0;
|
||||
- for (i; i < archives[index].year_data.length; i++)
|
||||
- var data = archives[index].year_data[i];
|
||||
.archive-month
|
||||
span.month= data.full_month
|
||||
- var x = 0;
|
||||
- for (x; x < data.pages.length; x++)
|
||||
-var page = data.pages[x];
|
||||
a(href='/'+archives[index].year+"/"+data.month+"/"+page.metadata.slug)= page.metadata.title
|
||||
br
|
@ -1,36 +0,0 @@
|
||||
doctype html
|
||||
html(xmlns='http://www.w3.org/1999/xhtml', lang='en', xml:lang="en")
|
||||
head
|
||||
title= title
|
||||
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
||||
meta(name="keywords" content=keywords)
|
||||
meta(name="description" content=description)
|
||||
meta(http-equiv="content-type", content="text/html; charset=utf-8")
|
||||
meta(property="og:image" content=image)
|
||||
meta(name="twitter:image" content=image)
|
||||
link(rel='stylesheet', href='/assets/css/base.css', type='text/css')
|
||||
body
|
||||
style.
|
||||
header { background: url(!{default_bg}); background-size: cover; }
|
||||
header
|
||||
nav
|
||||
.left
|
||||
a.logo-link(href='/')
|
||||
img#logo(src='/assets/images/global/the-logo.svg')
|
||||
.right
|
||||
if menu
|
||||
- var index = 0;
|
||||
- for ( index; index < menu.length; index++)
|
||||
a.menu-link(href="/"+menu[index].path+"/"+menu[index].slug)= menu[index].slug
|
||||
br
|
||||
|
||||
|
||||
//span= welcome_message
|
||||
.container#main-content
|
||||
block main-content
|
||||
footer
|
||||
.inner
|
||||
a(href='/archives') Archives
|
||||
br
|
||||
| © 2020 Fipamo by PV
|
||||
script(src='/assets/scripts/start.min.js' type="text/javascript")
|
@ -1,27 +0,0 @@
|
||||
extends frame
|
||||
|
||||
block main-content
|
||||
article
|
||||
.index
|
||||
h2= title
|
||||
p !{content}
|
||||
section
|
||||
.index-lists
|
||||
.recent
|
||||
span Recent
|
||||
br
|
||||
- if(recent_posts)
|
||||
- var index = 0;
|
||||
- for ( index; index < recent_posts.length; index++)
|
||||
a(href="/"+recent_posts[index].path+"/"+recent_posts[index].slug)= recent_posts[index].title
|
||||
br
|
||||
- if(featured_posts)
|
||||
.featured
|
||||
span Featured
|
||||
br
|
||||
- var index = 0;
|
||||
- for ( index; index < featured_posts.length; index++)
|
||||
a(href="/"+featured_posts[index].metadata.path+"/"+featured_posts[index].metadata.slug)= featured_posts[index].metadata.title
|
||||
br
|
||||
|
||||
|
@ -0,0 +1,33 @@
|
||||
{% extends "theme-fipamo-default/fipamo-default/frame.twig" %}
|
||||
|
||||
{% block title %}
|
||||
{{ title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block mainContent %}
|
||||
<article>
|
||||
<div class="index">
|
||||
<h2>{{title}}</h2>
|
||||
<p>{{ content }}</p>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
<section>
|
||||
<div class="index-lists">
|
||||
<div class="recent">
|
||||
<span>RECENT</span><br />
|
||||
{% for item in recent %}
|
||||
<a href="{{ "/"~item.path~"/"~item.slug~".html" }}"> {{item.title}} </a><br />
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
<div class="featured">
|
||||
<span>FEATURED</span><br />
|
||||
{% for item in featured %}
|
||||
<a href="{{ "/"~item.path~"/"~item.slug~".html" }}"> {{item.title}} </a><br />
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue