forked from sunbliss/photorama
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
198 changed files
with
17,381 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
_site | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
layout: page | ||
header-img: "img/404.jpg" | ||
permalink: "/404.html" | ||
redirect_to: "baseurl/journal/" | ||
--- | ||
|
||
<p><h1>Whoops, this page doesn't exist.</p> | ||
<p>You will be redirected to <a href="{{ site.baseurl }}/journal/">JOURNAL</a> in few seconds.</p></h1> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
uglify: { | ||
main: { | ||
src: 'js/<%= pkg.name %>.js', | ||
dest: 'js/<%= pkg.name %>.min.js' | ||
} | ||
}, | ||
less: { | ||
expanded: { | ||
options: { | ||
paths: ["css"] | ||
}, | ||
files: { | ||
"css/<%= pkg.name %>.css": "less/<%= pkg.name %>.less" | ||
} | ||
}, | ||
minified: { | ||
options: { | ||
paths: ["css"], | ||
cleancss: true | ||
}, | ||
files: { | ||
"css/<%= pkg.name %>.min.css": "less/<%= pkg.name %>.less" | ||
} | ||
} | ||
}, | ||
banner: '/*!\n' + | ||
' * <%= pkg.title %> v<%= pkg.version %> (<%= pkg.homepage %>)\n' + | ||
' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' + | ||
' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' + | ||
' */\n', | ||
usebanner: { | ||
dist: { | ||
options: { | ||
position: 'top', | ||
banner: '<%= banner %>' | ||
}, | ||
files: { | ||
src: ['css/<%= pkg.name %>.css', 'css/<%= pkg.name %>.min.css', 'js/<%= pkg.name %>.min.js'] | ||
} | ||
} | ||
}, | ||
watch: { | ||
scripts: { | ||
files: ['js/<%= pkg.name %>.js'], | ||
tasks: ['uglify'], | ||
options: { | ||
spawn: false, | ||
}, | ||
}, | ||
less: { | ||
files: ['less/*.less'], | ||
tasks: ['less'], | ||
options: { | ||
spawn: false, | ||
} | ||
}, | ||
}, | ||
}); | ||
|
||
// Load the plugins. | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-less'); | ||
grunt.loadNpmTasks('grunt-banner'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['uglify', 'less', 'usebanner']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Anna Prigkipaki | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
p h o t o r a m a | ||
==================== | ||
|
||
![photorama](https://raw.githubusercontent.com/sunbliss/photorama/gh-pages/photorama_thumb.gif) | ||
|
||
|
||
![Speed Test](https://raw.githubusercontent.com/sunbliss/photorama/gh-pages/Website%20Speed%20Test.png) | ||
|
||
---------- | ||
|
||
---> [DEMO](http://sunbliss.github.io/photorama/ "DEMO") <--- | ||
|
||
---------- | ||
|
||
A theme for **jekyll**. | ||
|
||
Created for gh-pages (project page). | ||
|
||
This template was crafted having in mind the photobloggers. | ||
|
||
It uses [Clean Blog](https://github.com/BlackrockDigital/startbootstrap-clean-blog-jekyll "Clean Blog") as its basis. | ||
|
||
---------- | ||
|
||
The template has been **revised** as of *July 15th, 2016* | ||
|
||
---------- | ||
|
||
**IMPORTANT!!!** | ||
================ | ||
|
||
###Before you begin: Change the URL and the BASEURL as well as the internal nav links in the _config.yml | ||
|
||
The **URL** should say `http://yourusername.github.io` | ||
|
||
The **BASEURL** should say `/repositoryname` | ||
|
||
**Internal nav** should say | ||
|
||
nav: | ||
|
||
- GALLERY: `"http://yourusername.github.io/repositoryname/gallery/"` | ||
- JOURNAL: `"http://yourusername.github.io/repositoryname/journal/"` | ||
- ABOUT: `"http://yourusername.github.io/repositoryname/about/`" | ||
|
||
If there are problems with loading assets like CSS files and images, make sure that both **URL** and **BASEURL** are set correctly!!! | ||
|
||
---------- | ||
|
||
If you want to use your **own domain** go to the root of your project's repository, create a CNAME file and add a line with your domain name, e.g. `www.yourdomain.com`. | ||
|
||
Go to your domain name registrar and add a CNAME record pointing your domain to GitHub Pages: | ||
- type: CNAME | ||
- host: www.yourdomainname.com | ||
- answer: yourusername.github.io/repositoryname | ||
- TTL: 300 | ||
|
||
---------- | ||
|
||
Usage | ||
============ | ||
|
||
###Quick Start | ||
|
||
1. [Fork this repository](https://github.com/sunbliss/photorama/fork) to get started. | ||
2. Go to `https://github.com/yourusername/photorama/settings` | ||
3. Rename the repository to your new project, e.g. *myphotoblog* | ||
2. Create a new branch called `gh-pages` in your repository. | ||
3. Go to the branches directory at `https://github.com/yourusername/repositoryname/branches` and *change* **default branch** to **gh-pages**. | ||
4. Delete **master** branch. | ||
3. GitHub will build your site automatically and publish it at `http://yourusername.github.io/repositoryname/`. | ||
|
||
---------- | ||
|
||
- The homepage welcomes the visitors with 3 animated photos of your choice. It is recommended that all three are landscape orientated for best view. | ||
|
||
To change the welcome content at the far left of the Home page go here: `/index.html` and fill the responding lines of the YAML with your desired text. | ||
|
||
---------- | ||
|
||
- To enable **disqus** comments in the posts, change their front matter for comments to 'true'. | ||
|
||
You must have a registered account in disqus, where you will also register a forum for your website. | ||
|
||
Find the line `s.src = '//yourproject.disqus.com/embed.js'; // ` in the disqus_comments.html and REPLACE 'yourproject' with your forum shortname. | ||
|
||
---------- | ||
|
||
- In order to send **newsletters** about your posts to your subscribers, you should register an account in [tinyletter](http://www.tinyletter.com " tinyletter"). | ||
|
||
Find the line `'https://tinyletter.com/yourproject', ` in the *newsletter.html* and replace 'yourproject' with your registered website. | ||
|
||
You can always ommit the newsletter rendering by deleting the line `{% include newsletter.html %} | ||
` in the *default.html* layout. | ||
|
||
---------- | ||
|
||
If you want to use the matching **NEWSLETTER** template, you must always create a new file by copying its respective index.html and renaming it to e.g. 2016-March-newsletter.html and then save it inside the folder and the accompanying images inside the 'images folder', so it can be accessed to your viewers through their browser. In this case the root url for the above newsletter will be ***http://yourgithubusername.github.io/yourproject/2016-March-newsletter.html***. Copy this link and replace this part of the code `http://www.yoursite.com/newsletter/year-month-newsletter` with it. | ||
|
||
---------- | ||
|
||
**TAGS** and **CATEGORIES** of the posts | ||
|
||
When you add a tag or a category name in the front matter of a post, don't forget to add the responding markdown files in /journal/tag/ folder and in /journal/category folder, so they can always render when browsing the journal or searching in the respective page. | ||
|
||
---------- | ||
|
||
All the credits and the helpers can be found at **ABOUT** page. | ||
|
||
|
||
---------- | ||
|
||
Read <a href="http://sunbliss.github.io/joural/images-size-for-better-performance/">**this**</a> post if you want to ensure your website always loads fast. | ||
|
||
|
||
---------- | ||
|
||
I hope you will find it useful for your projects, photographic or not. | ||
|
||
|
||
---------- | ||
|
||
|
||
##License | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Filippo Oretti, Dario Andrei | ||
|
||
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Site settings | ||
title: PHOTORAMA | ||
email: "" | ||
description: "Photo Journal" | ||
url: "http://sunbliss.github.io" | ||
baseurl: "/photor" | ||
facebook_username: "" | ||
twitter_username: "" | ||
instagram_username: "" | ||
github_username: "" | ||
deviantart_username: "" | ||
flickr_username: "" | ||
discus_shortname: "" | ||
share: true | ||
|
||
# Owner/author information | ||
owner: | ||
name: photorama | ||
avatar: avatar.png | ||
favicon: favicon.ico | ||
info: photography website template | ||
|
||
# Settings for comments helper | ||
# Set 'provider' to the comment provider you want to use. (i.e. Disqus, Intense Debate, livefyre, or Facebook Comments) | ||
# Set 'provider' to false to turn commenting off globally. | ||
#Set 'provider: false' to disable comments globally. | ||
# Disable comments for individual pages/posts by specifying 'comments: false' in the page/post YAML Front Matter. | ||
# | ||
comments : | ||
provider : disqus | ||
disqus : | ||
short_name : "" | ||
|
||
# Internal nav | ||
nav: | ||
- GALLERY: "http://sunbliss.github.io/photor/gallery/" | ||
- JOURNAL: "http://sunbliss.github.io/photor/journal/" | ||
- ABOUT: "http://sunbliss.github.io/photor/about/" | ||
|
||
# All translation keys | ||
translations: | ||
# 404.html | ||
permalink: "/404.html" | ||
|
||
# Server | ||
destination: ./_site | ||
port: 4000 | ||
|
||
|
||
# Build settings | ||
markdown: kramdown | ||
highlighter: rouge | ||
permalink: pretty | ||
paginate: 5 | ||
paginate_path: "/journal/page:num/" | ||
permalink: "/journal/:title/" | ||
categories_path: "/journal/category/" | ||
tags_path: "/journal/tag/" | ||
gems: | ||
- jekyll-paginate | ||
exclude: ["less","node_modules","Gruntfile.js","package.json","README.md"] | ||
|
||
# SiteMap | ||
sitemap: | ||
file: "/sitemap.xml" | ||
exclude: | ||
- "/atom.xml" | ||
- "/feed.xml" | ||
- "/feed/index.xml" | ||
include_posts: | ||
- "/writing/" | ||
change_frequency_name: "change_frequency" | ||
priority_name: "priority" |
Oops, something went wrong.