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
167 changed files
with
36,044 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,65 @@ | ||
p h o t o r a m a | ||
==================== | ||
|
||
---------- | ||
|
||
---> [DEMO](http://sunbliss.github.io/photorama/ "DEMO") <--- | ||
|
||
---------- | ||
|
||
A theme for **jekyll**. | ||
|
||
Created for gh-pages (project page). | ||
|
||
This template was created having in mind the photobloggers. | ||
|
||
It uses [Clean Blog](https://github.com/BlackrockDigital/startbootstrap-clean-blog-jekyll "Clean Blog") as its basis. | ||
|
||
---------- | ||
|
||
**IMPORTANT!!!** | ||
================ | ||
|
||
Before you begin: Change the **url** and the **baseurl** in the _config.yml | ||
|
||
---------- | ||
|
||
|
||
|
||
- 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 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. | ||
|
||
---------- | ||
|
||
I hope you will find it useful for your projects, photographic or not. |
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,71 @@ | ||
# Site settings | ||
title: PHOTORAMA | ||
email: "" | ||
description: "Photo Journal" | ||
url: "http://sunbliss.github.io" | ||
baseurl: /photorama | ||
instagram_username: "" | ||
github_username: "" | ||
deviantart_username: "" | ||
flickr_username: "" | ||
discus_shortname: "" | ||
share: true | ||
|
||
# Owner/author information | ||
owner: | ||
name: "photorama" | ||
avatar: avatar.png | ||
favicon: favicon.ico | ||
description: "Photo Journal" | ||
|
||
# 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: | ||
journal: "baseurl/journal/" | ||
gallery: "baseurl/gallery/" | ||
about: "baseurl/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" |
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,83 @@ | ||
<script> | ||
//** jQuery Scroll to Top Control script- (c) | ||
//** v1.1 (April 7th, 10') | ||
//** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page instead. | ||
//** 2) Fixes scroll animation not working in Opera. | ||
var scrolltotop={ | ||
//startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control | ||
//scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top). | ||
setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]}, | ||
controlHTML: '<img src="https://cloud.githubusercontent.com/assets/14811095/13691821/88412468-e744-11e5-8bb5-94340afd92e7.png" style="filter:alpha(opacity=100); -moz-opacity:1;"/>', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol" | ||
controlattrs: {offsetx:35, offsety:60}, //offset of control relative to right/ bottom of window corner | ||
anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links | ||
state: {isvisible:false, shouldvisible:false}, | ||
scrollup:function(){ | ||
if (!this.cssfixedsupport) //if control is positioned using JavaScript | ||
this.$control.css({opacity:0}) //hide control immediately after clicking it | ||
var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto) | ||
if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists | ||
dest=jQuery('#'+dest).offset().top | ||
else | ||
dest=0 | ||
this.$body.animate({scrollTop: dest}, this.setting.scrollduration); | ||
}, | ||
keepfixed:function(){ | ||
var $window=jQuery(window) | ||
var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx | ||
var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety | ||
this.$control.css({left:controlx+'px', top:controly+'px'}) | ||
|
||
}, | ||
|
||
togglecontrol:function(){ | ||
var scrolltop=jQuery(window).scrollTop() | ||
if (!this.cssfixedsupport) | ||
this.keepfixed() | ||
this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false | ||
if (this.state.shouldvisible && !this.state.isvisible){ | ||
this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0]) | ||
this.state.isvisible=true | ||
} | ||
else if (this.state.shouldvisible==false && this.state.isvisible){ | ||
this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1]) | ||
this.state.isvisible=false | ||
} | ||
|
||
}, | ||
init:function(){ | ||
jQuery(document).ready(function($){ | ||
var mainobj=scrolltotop | ||
var iebrws=document.all | ||
|
||
mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode | ||
mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body') | ||
mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>') | ||
.css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'}) | ||
.attr({title:'Scroll To Top'}) | ||
.click(function(){mainobj.scrollup(); return false}) | ||
.appendTo('body') | ||
|
||
if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text | ||
mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text | ||
mainobj.togglecontrol() | ||
|
||
$('a[href="' + mainobj.anchorkeyword +'"]').click(function(){ | ||
mainobj.scrollup() | ||
|
||
return false | ||
}) | ||
|
||
$(window).bind('scroll resize', function(e){ | ||
|
||
mainobj.togglecontrol() | ||
|
||
}) | ||
|
||
}) | ||
|
||
} | ||
|
||
} | ||
|
||
scrolltotop.init() | ||
</script> |
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,19 @@ | ||
{% if page.comments %} | ||
<div id="disqus_thread"></div> | ||
<script> | ||
var disqus_config = function () { | ||
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable | ||
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable | ||
}; | ||
|
||
(function() { // REQUIRED CONFIGURATION VARIABLE: EDIT THE SHORTNAME BELOW | ||
var d = document, s = d.createElement('script'); | ||
|
||
s.src = '//yourproject.disqus.com/embed.js'; // IMPORTANT: Replace 'yourproject' with your forum shortname! | ||
|
||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> | ||
{% endif %} |
Oops, something went wrong.