Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nsomar committed Dec 2, 2015
0 parents commit b0d0dbb
Show file tree
Hide file tree
Showing 32 changed files with 9,225 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public/
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2014 YOUR_NAME_HERE

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Github project landing page

Github landing page is a theme for [Hugo](http://gohugo.io) to create landing pages for github projects. This theme is based on [landing-page-hugo](https://github.com/crakjie/landing-page-hugo)

# Demo
A demo can be find here [Swiftline](http://swiftline.github.io)

# Screenshot
![screenshot](https://raw.githubusercontent.com/swiftline/github-project-landing-page/master/images/screenshot.png)

# Costumization
Check [config.toml](https://github.com/swiftline/github-project-landing-page/blob/master/config.toml) for available configuration.
Below is a description for each of them.

Project description appears after project name
```
description = "Amazing project."
```

`author_url` a link of the project author.
`project_url` link to project url
`project_documentation` link to project documentation

```
author_url = "http://nsomar.com"
project_url = "http://github.com/swiftline/swiftline"
project_documentation = "http://swiftline.github.io/docs"
```

`github_user_name` github author account name
`github_project_name` github project name
```
github_project_name = "swiftline"
github_user_name = "swiftline"
```

Theme colors
```
first_color="#f8f8f8"
first_border_color="#e7e7e7"
first_text_color="#333"
second_color="white"
second_text_color="#333"
header_color="#f8f8f8"
header_text_color="rgb(51, 51, 51)"
header_link_color="#777"
header_link_hover_color="rgb(51, 51, 51)"
```

1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
Description = ""
Keywords = []
Tags = []
Categories = []
+++
24 changes: 24 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
baseurl = "http://swiftline.github.io"
languageCode = "en-us"
title = "Swiftline"

[params]
description = "Amazing project."
author_url = "http://nsomar.com"
project_url = "http://github.com/swiftline/swiftline"
project_documentation = "http://swiftline.github.io/docs"
github_project_name = "swiftline"
github_user_name = "swiftline"

first_color="#f8f8f8"
first_border_color="#e7e7e7"
first_text_color="#333"

second_color="white"
second_text_color="#333"

header_color="#f8f8f8"
header_text_color="rgb(51, 51, 51)"

header_link_color="#777"
header_link_hover_color="rgb(51, 51, 51)"
65 changes: 65 additions & 0 deletions exampleSite/content/img/intro-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions exampleSite/content/post/first.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
+++
date = "2015-12-2T14:10:00+03:00"
draft = false
title = "First Post"
weight = 1
+++

First post
Where you talk about how to install your project

```
brew install amazing-tool
```
19 changes: 19 additions & 0 deletions exampleSite/content/post/second.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
+++
date = "2015-12-2T14:10:00+03:00"
draft = false
title = "Second Post"
weight = 2
+++

Second post
Usage maybe?

```
DoSomething()
```

And the output would be:

```
Something
```
13 changes: 13 additions & 0 deletions exampleSite/content/post/third.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
+++
date = "2015-12-2T14:10:00+03:00"
draft = false
title = "Third Post"
weight = 3
+++

Third post
Get help

- Ask questions here ....
- Read this doc file
- Concat me twitter [@ifnottrue](https://twitter.com/@ifnottrue)
Binary file added images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ partial "head.html" . }}
{{ partial "header.html" . }}
{{ partial "services.html" . }}
{{ partial "footer.html" . }}
22 changes: 22 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{ partial "head.html" . }}
{{ partial "nav.html" . }}

<section id="services">
<div class="content-section-a">

<div class="container">

<div class="row">
<div>
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h2 class="section-heading">{{ .Title }}</h2>
{{ .Content }}
</div>
</div>

</div>
</div>

</section>
{{ partial "footer.html" . }}
5 changes: 5 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ partial "head.html" . }}
{{ partial "nav.html" . }}
{{ partial "header.html" . }}
{{ partial "services.html" . }}
{{ partial "footer.html" . }}
18 changes: 18 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-8">
<p class="copyright text-muted small">Copyright &copy; {{ .Title }} All Rights Reserved</p>
</div>
<div class="col-md-4">
Built with <a href="http://gohugo.io">Hugo</a> and the
<a href="https://github.com/swiftline/github-project-landing-page">Github project Page</a>
theme.
</div>
</div>
</div>
</footer>
{{ partial "js.html" . }}
</body>
</html>
27 changes: 27 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<base href="{{ .Site.BaseURL }}">
<title>{{ .Title }}</title>

<!-- Bootstrap Core CSS -->
<link href="/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="/css/landing-page.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

<style>
{{ printf "%v" (partial "template.css" . ) | safeCSS }}
</style>

</head>
<body>
29 changes: 29 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<section id="intro">
<!-- Header -->
<div class="intro-header">

<div class="container header-container">

<div class="row">
<div class="intro-image col-md-4"></div>
<div class="intro-message col-md-6">
<h1>{{ .Site.Title }}</h1>
<h3>{{ .Site.Params.description }}</h3>

{{ if (isset .Site.Params "github_project_name") }}
{{ $user := .Site.Params.github_user_name }}
{{ $repo := .Site.Params.github_project_name }}

<iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user={{ $user }}&repo={{ $repo }}&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
{{ end }}

<hr class="intro-divider">
</div>
</div>

</div>
<!-- /.container -->

</div>
<!-- /.intro-header -->
</section>
27 changes: 27 additions & 0 deletions layouts/partials/js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!-- jQuery Version 1.11.0 -->
<script src="/js/jquery-1.11.0.js"></script>

<!-- Plugin JavaScript -->
<script src="/js/jquery.easing.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/js/bootstrap.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="js/landing-page.js"></script>

{{ if isset .Site.Params "googleAnalytics" }}

<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', '{{ .Site.Params.googleAnalytics }}', 'auto');
ga('send', 'pageview');
</script>

{{ end }}
31 changes: 31 additions & 0 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="page-scroll navbar-brand" href="#intro">{{ .Site.Title }}</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a class="page-scroll" href={{ .Site.Params.project_url }}>Github</a>
</li>
<li>
<a class="page-scroll" href={{ .Site.Params.project_documentation }}>Docs</a>
</li>
<li>
<a class="page-scroll" href={{ .Site.Params.author_url }}>NSOmar</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
Loading

0 comments on commit b0d0dbb

Please sign in to comment.