updating header links

This commit is contained in:
Pixelastic 2017-12-12 16:00:18 +01:00
parent dc69b0ae28
commit f7d8dea0c6
8 changed files with 87 additions and 58 deletions

View File

@ -47,7 +47,7 @@
},
"project": {
"view": "links",
"label": "Community Project Boilerplate",
"label": "Algolia for Jekyll",
"logo": "",
"caret": "",
"url": "https://community.algolia.com/jekyll-algolia/",
@ -56,12 +56,16 @@
},
"sideMenu": [
{
"name": "About",
"url": "about.html"
"name": "Getting started",
"url": "getting-started.html"
},
{
"name": "Support",
"url": "support.html"
"name": "Documentation",
"url": "documentation.html"
},
{
"name": "Examples",
"url": "examples.html"
},
{
"name": "Github",
@ -71,12 +75,16 @@
],
"mobileMenu": [
{
"name": "About",
"url": "about.html"
"name": "Getting started",
"url": "getting-started.html"
},
{
"name": "Support",
"url": "support.html"
"name": "Docs",
"url": "documentation.html"
},
{
"name": "Examples",
"url": "examples.html"
},
{
"name": "Github",

View File

@ -0,0 +1,8 @@
---
title: Getting started with jekyll-algolia
layout: content-with-menu.pug
---
# Getting started
Hello

View File

@ -5,4 +5,4 @@ layout: single-column.pug
# Homepage
Hello you
Hello you!

View File

@ -1 +1,34 @@
div !{header}
- var long_desc = "Jekyll plugin to automatically index your content on Algolia."
- var project = "Algolia for Jekyll"
- var image = "https://res.cloudinary.com/hilnmyskv/image/upload/v1502375309/InstantSearch-React-OG_zbf1tb.png"
- var url = "https://community.algolia.com/jekyll-algolia/"
- var project_desc = project + " - " + description
- var short_desc = "Search your Jekyll content with Algolia"
base(href=publicPath)
meta(content='IE=edge', http-equiv='X-UA-Compatible')
meta(charset='utf-8')
meta(content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no', name='viewport')
meta(name='ROBOTS', content='NOINDEX, NOFOLLOW')
link(rel='icon', href="assets/images/favicon.png")
meta(content='IE=edge,chrome=1', http-equiv='X-UA-Compatible')
meta(content=long_desc, name='description')
meta(content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0', name='viewport')
// Twitter card
meta(content='summary_large_image', name='twitter:card')
meta(content=url, name='twitter:site')
meta(content='Algolia', name='twitter:creator')
meta(content=project, name='twitter:title')
meta(content=short_desc, name='twitter:description')
meta(content=image, name='twitter:image')
// OG meta
meta(content=url, property='og:url')
meta(content=project, property='og:title')
meta(content=image, property='og:image')
meta(content='website', property='og:type')
meta(content=short_desc, property='og:description')
meta(content=project, property='og:site_name')
title #{project} | #{short_desc}
link(rel="stylesheet", href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css")
link(rel='stylesheet', href="stylesheets/index.css")

View File

@ -1,34 +1,14 @@
- var long_desc = "Long desc."
- var project = "Community Project Boilerplate"
- var image = "https://res.cloudinary.com/hilnmyskv/image/upload/v1502375309/InstantSearch-React-OG_zbf1tb.png"
- var url = "https://community.algolia.com/jekyll-algolia/"
- var project_desc = project + " - " + description
- var short_desc = "⚡ Short desc"
doctype html
html(lang="en")
head
include ./header.pug
base(href=publicPath)
meta(content='IE=edge', http-equiv='X-UA-Compatible')
meta(charset='utf-8')
meta(content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no', name='viewport')
meta(name='ROBOTS', content='NOINDEX, NOFOLLOW')
link(rel='icon', href="assets/images/favicon.png")
meta(content='IE=edge,chrome=1', http-equiv='X-UA-Compatible')
meta(content=long_desc, name='description')
meta(content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0', name='viewport')
// / Twitter card
meta(content='summary_large_image', name='twitter:card')
meta(content=url, name='twitter:site')
meta(content='Algolia', name='twitter:creator')
meta(content=project, name='twitter:title')
meta(content=short_desc, name='twitter:description')
meta(content=image, name='twitter:image')
// / OG meta
meta(content=url, property='og:url')
meta(content=project, property='og:title')
meta(content=image, property='og:image')
meta(content='website', property='og:type')
meta(content=short_desc, property='og:description')
meta(content=project, property='og:site_name')
body
div !{header}
block body
title #{project} | #{short_desc}
link(rel="stylesheet", href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css")
link(rel='stylesheet', href="stylesheets/index.css")
include ./footer.pug
script(src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js")
script(src=webpack.assets['js/common.js'])
script(src=webpack.assets['js/main.js'])

View File

@ -0,0 +1,10 @@
extends ./common/meta.pug
block body
.bg-red.h5 test!!!
// block content
// !=contents
// .bg-red
// h2=title

View File

@ -1,14 +1,4 @@
doctype html
html(lang="en")
head
include ./common/meta.pug
body
include ./common/header.pug
//- include ./common/hero.pug
div
block content
.content!=contents
//- include ./common/footer.pug
script(src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js")
script(src=webpack.assets['js/common.js'])
script(src=webpack.assets['js/main.js'])
extends ./common/meta.pug
block body
.content!=contents

View File

@ -1,7 +1,7 @@
@charset 'utf-8'
@import 'node_modules/algolia-frontend-components/dist/_communityHeader'
@import 'partials/bootstrap'
// @import 'partials/bootstrap'
@import 'node_modules/algolia-aerial/src/stylesheet/aerial'
@import 'modules/base'