This repository has been archived by the owner on Feb 11, 2020. It is now read-only.
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
0 parents
commit 9167173
Showing
43 changed files
with
4,353 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,3 @@ | ||
.DS_store | ||
node_modules | ||
bower_components |
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,4 @@ | ||
.DS_store | ||
.git* | ||
node_modules/** | ||
bower_components/** |
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,164 @@ | ||
module.exports = function(grunt) { | ||
'use strict'; | ||
require('load-grunt-tasks')(grunt, { | ||
pattern: ['grunt-*'] | ||
}); | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
config: { | ||
'cssSrcDir': 'src/sass', | ||
'cssTargetDir': 'css', | ||
'jsSrcDir': 'src/js', | ||
'jsTargetDir': 'js', | ||
'jsDependencies': [ | ||
'bower_components/jquery/dist/jquery.min.js', | ||
'bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js', | ||
'bower_components/imagesloaded/imagesloaded.pkgd.min.js', | ||
'bower_components/masonry/dist/masonry.pkgd.min.js', | ||
'bower_components/fitvids/jquery.fitvids.js', | ||
'bower_components/highlightjs/highlight.pack.min.js', | ||
'bower_components/nprogress/nprogress.js', | ||
'src/js/vendor/gist-embed.min.js' | ||
], | ||
'cssDependencies': [ | ||
'bower_components/normalize.css/normalize.css', | ||
'bower_components/highlightjs/styles/default.css', | ||
'bower_components/nprogress/nprogress.css' | ||
] | ||
}, | ||
copy: { | ||
dev: { | ||
files: [{ | ||
dest: 'static/fonts/', | ||
src: '*', | ||
cwd: 'src/fonts/', | ||
expand: true | ||
}] | ||
}, | ||
dist: { | ||
files: [{ | ||
dest: 'static/fonts/', | ||
src: '*', | ||
cwd: 'src/fonts/', | ||
expand: true | ||
}] | ||
} | ||
}, | ||
clean: { | ||
dist: ['static'] | ||
}, | ||
sass: { | ||
dev: { | ||
options: { | ||
sourceMaps: true | ||
}, | ||
files: { | ||
'static/<%= config.cssTargetDir %>/style.css': '<%= config.cssSrcDir %>/style.scss' | ||
} | ||
}, | ||
dist: { | ||
options: { | ||
outputStyle: 'compressed', | ||
sourceMaps: false | ||
}, | ||
files: { | ||
'static/<%= config.cssTargetDir %>/style.css': '<%= config.cssSrcDir %>/style.scss' | ||
} | ||
} | ||
}, | ||
cssmin: { | ||
dev: { | ||
options: { | ||
shorthandCompacting: false, | ||
roundingPrecision: -1, | ||
sourceMap: true | ||
}, | ||
files: { | ||
'static/<%= config.cssTargetDir %>/dependencies.css': [ | ||
'<%= config.cssDependencies %>' | ||
] | ||
} | ||
}, | ||
dist: { | ||
options: { | ||
shorthandCompacting: false, | ||
roundingPrecision: -1, | ||
sourceMap: false | ||
}, | ||
files: { | ||
'static/<%= config.cssTargetDir %>/dependencies.css': [ | ||
'<%= config.cssDependencies %>' | ||
] | ||
} | ||
} | ||
}, | ||
postcss: { | ||
options: { | ||
map: true, | ||
processors: [ | ||
require('autoprefixer')({ browsers: ['last 2 versions'] }) | ||
] | ||
}, | ||
files: { | ||
src: 'static/<%= config.cssTargetDir %>/*.css' | ||
} | ||
}, | ||
uglify: { | ||
dev: { | ||
files: { | ||
'static/<%= config.jsTargetDir %>/script.js': [ | ||
'<%= config.jsSrcDir %>/**/*.js' | ||
], | ||
'static/<%= config.jsTargetDir %>/dependencies.js': [ | ||
'<%= config.jsDependencies %>' | ||
] | ||
} | ||
}, | ||
devlight: { | ||
files: { | ||
'static/<%= config.jsTargetDir %>/script.js': [ | ||
'<%= config.jsSrcDir %>/**/*.js' | ||
] | ||
} | ||
}, | ||
dist: { | ||
files: { | ||
'static/<%= config.jsTargetDir %>/script.js': [ | ||
'<%= config.jsSrcDir %>/**/*.js' | ||
], | ||
'static/<%= config.jsTargetDir %>/dependencies.js': [ | ||
'<%= config.jsDependencies %>' | ||
] | ||
} | ||
} | ||
}, | ||
watch: { | ||
css: { | ||
files: '<%= config.cssSrcDir %>/**/*.scss', | ||
tasks: ['sass:dev','copy:dev','postcss'] | ||
}, | ||
js: { | ||
files: '<%= config.jsSrcDir %>/**/*.js', | ||
tasks: ['uglify:devlight'] | ||
} | ||
} | ||
}); | ||
|
||
grunt.registerTask('build', [ | ||
'clean:dist', | ||
'sass:dist', | ||
'cssmin:dist', | ||
'postcss', | ||
'copy:dist', | ||
'uglify:dist' | ||
]); | ||
grunt.registerTask('default', [ | ||
'sass:dev', | ||
'cssmin:dev', | ||
'postcss', | ||
'copy:dev', | ||
'uglify:dev', | ||
'watch' | ||
]); | ||
}; |
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,7 @@ | ||
hugo-theme-crisp (c) by Thibault NORMAND | ||
|
||
hugo-theme-crisp is licensed under a | ||
Creative Commons Attribution-ShareAlike 4.0 International License. | ||
|
||
You should have received a copy of the license along with this | ||
work. If not, see <http://creativecommons.org/licenses/by-sa/4.0/>. |
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 @@ | ||
# Bleak |
Empty file.
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,13 @@ | ||
{ | ||
"name": "bleak", | ||
"devDependencies": { | ||
"fitvids": "~1.1.0", | ||
"highlightjs": "~9.0.0", | ||
"history.js": "~1.8.0", | ||
"imagesloaded": "~4.0.0", | ||
"jquery": "~2.1.4", | ||
"masonry": "~3.3.2", | ||
"normalize.css": "~3.0.3", | ||
"nprogress": "~0.2.0" | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
<article class="{{ .Section }}"> | ||
<div class="inner"> | ||
<a class="post-link" href="{{ .Permalink }}"></a> | ||
<span class="post-meta"> | ||
<span class="post-date">{{ .Date.Format "2 Jan 2006" }}</span> | ||
</span> | ||
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2> | ||
<p class="post-excerpt">{{ .Description }}…</p> | ||
<span class="post-more"><a href="{{ .Permalink }}">Read More <i class="icon-arrow-right"></i></a></span> | ||
</div> | ||
</article> |
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,13 @@ | ||
{{ partial "header.html" . }} | ||
|
||
<main id="content"> | ||
{{ $paginator := .Paginator }} | ||
<h1 class="post-title">{{ .Title }}</h1> | ||
{{ range $index, $page := .Paginator.Pages }} | ||
{{ .Render "li" }} | ||
{{ end }} | ||
|
||
{{ partial "pagination.html" $paginator }} | ||
</main> | ||
|
||
{{ partial "footer.html" . }} |
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,81 @@ | ||
{{ $baseurl := .Site.BaseURL }} | ||
{{ partial "header.html" . }} | ||
|
||
<main class="content" role="main"> | ||
<article class="{{ .Section }}"> | ||
<div class="inner"> | ||
|
||
<div id="push"> | ||
|
||
<header class="post-header"> | ||
<span class="post-meta"> | ||
<span class="post-date">{{ .Date.Format "2 Jan 2006" }}</span> | ||
</span> | ||
<div class="clear"></div> | ||
<h1 class="post-title">{{ .Title }}</h1> | ||
</header> | ||
|
||
<section class="post-content"> | ||
{{ .Content }} | ||
</section> | ||
|
||
{{ partial "related.html" . }} | ||
|
||
<footer class="post-footer"> | ||
<div class="post-tags"> | ||
{{if .Params.tags }} | ||
{{ range $index, $tag := .Params.tags }} | ||
<a href="{{ $baseurl }}tags/{{ $tag | urlize }}/">{{ $tag }}</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
<div class="post-share"> | ||
<a class="icon-twitter" href="https://twitter.com/share?text={{ .Title }}&url={{ .Permalink }}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> | ||
<span>Twitter</span> | ||
</a> | ||
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> | ||
<span>Facebook</span> | ||
</a> | ||
<a class="icon-gplus" href="https://plus.google.com/share?url={{ .Permalink }}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"> | ||
<span>Google+</span> | ||
</a> | ||
</div> | ||
</footer> | ||
|
||
<aside class="post-comments"> | ||
<div id="disqus_thread"></div> | ||
</aside> | ||
|
||
</div> | ||
|
||
<nav class="post-nav"> | ||
{{ if .Next }} | ||
<a class="post-nav-item post-nav-next" href="{{ .Next.Permalink }}"> | ||
<section class="post-nav-teaser"> | ||
<span class="post-nav-icon"><i class="icon-arrow-left"></i></span> | ||
<span class="post-nav-info"> | ||
<h4 class="post-nav-title">{{ .Next.Title }}</h4> | ||
<p class="post-nav-excerpt">{{ .Next.Description }}…</p> | ||
</span> | ||
</section> | ||
</a> | ||
{{ end }} | ||
{{ if .Prev }} | ||
<a class="post-nav-item post-nav-prev" href="{{ .Prev.Permalink }}"> | ||
<section class="post-nav-teaser"> | ||
<span class="post-nav-icon"><i class="icon-arrow-right"></i></span> | ||
<span class="post-nav-info"> | ||
<h4 class="post-nav-title">{{ .Prev.Title }}</h4> | ||
<p class="post-nav-excerpt">{{ .Prev.Description }}…</p> | ||
</span> | ||
</section> | ||
</a> | ||
{{ end }} | ||
<div class="clear"></div> | ||
</nav> | ||
|
||
</div> | ||
</article> | ||
</main> | ||
|
||
{{ partial "footer.html" . }} |
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,37 @@ | ||
{{ partial "header.html" . }} | ||
|
||
<header id="header" class="header has-cover"> | ||
<div class="inner"> | ||
<a class="header-title" href="{{ .Site.BaseURL }}"> | ||
<h1 class="header-name">{{ .Site.Title }}</h1> | ||
{{ if .Params.Subtitle }} | ||
<span class="header-description">{{ .Params.Subtitle }}</span> | ||
{{ end }} | ||
</a> | ||
</div> | ||
<div class="header-cover" style="background-image: url(http://zenithar.org/img/head.png)"></div> | ||
</header> | ||
|
||
<div id="post-index" class="container"> | ||
|
||
<main class="content" role="main"> | ||
|
||
<div class="post-list"> | ||
<div id="push"> | ||
|
||
{{ $paginator := .Paginator }} | ||
|
||
{{ range $index, $page := .Paginator.Pages }} | ||
{{ .Render "li" }} | ||
{{ end }} | ||
|
||
</div> | ||
</div> | ||
|
||
{{ partial "pagination.html" $paginator }} | ||
|
||
</main> | ||
|
||
</div> | ||
|
||
{{ partial "footer.html" . }} |
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,8 @@ | ||
<div itemprop="author" itemscope itemtype="http://schema.org/Person"> | ||
<h5>A propos de l'auteur</h5> | ||
<section> | ||
<p><a href="http://profiles.google.com/thibault.normand?rel=author" itemprop="name" rel="author">Thibault Normand</a> est un dévéloppeur et un bloggeur enthousiaste, curieux de toutes nouvelles technologies liées à la sécurité, l'architecture, et le | ||
web. <a href="http://zenithar.org/" rel="me">Plus d'infos...</a> | ||
</p> | ||
</section> | ||
</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,20 @@ | ||
<div id="comments"> | ||
{{ if ne .Params.comments false}} | ||
{{ $doc := . }} | ||
{{ with .Site.Params.disqus }} | ||
<div id="disqus_thread"></div> | ||
<script type="text/javascript"> | ||
var disqus_shortname = '{{ . }}'; | ||
var disqus_identifier = '{{if isset $doc.Params "disqus_identifier" }}{{ index $doc.Params "disqus_identifier" }}{{ else }}{{ $doc.Permalink }}{{end}}'; | ||
var disqus_title = '{{if isset $doc.Params "disqus_title" }}{{ index $doc.Params "disqus_title" }}{{ else }}{{ $doc.Title }}{{end}}'; | ||
var disqus_url = '{{if isset $doc.Params "disqus_url" }}{{ index $doc.Params "disqus_url" | html }}{{ else }}{{ $doc.Permalink }}{{end}}'; | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
{{ end }} | ||
{{ end }} | ||
</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,3 @@ | ||
<style> | ||
*{padding:0;margin:0}body,html{font-size:1em;line-height:1.65em;font-family:"Open Sans",sans-serif;font-weight:300;color:#444}html{height:100%}body{padding:2em 2.5em 1em 20em}header{border-right:1px #eee solid;padding:2em;position:fixed;top:0;left:0;height:100%;width:13.5em}#content{display:block;width:100%}footer{padding:1em 0 2.5em;font-size:.8em;line-height:1.5em;color:#888}article{border-bottom:.1em #eee solid;padding-bottom:1.7em;max-width:56em}h4,h5,h6,hr,p{margin-top:.9em;margin-bottom:.9em}h1,h2,h3,h4,h5,h6{font-family:"Bree Serif",serif;font-weight:400!important}h1{font-size:2.5em;line-height:1.1em;margin-top:.6em;margin-bottom:.6em}h2{font-size:1.9em;line-height:1.2em;margin-top:.7em;margin-bottom:.7em}h3{font-size:1.4em;line-height:1.3em;margin-top:.8em;margin-bottom:.8em}h4{font-size:1.3em}h5{font-size:1.2em}h6{font-size:1.1em}iframe,img{max-width:100%}a{font-weight:700;text-decoration:none;color:#5cc265}a:hover{text-decoration:underline}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{font-weight:400!important}strong{font-weight:700}blockquote{border-left:.4em solid #eee;padding-left:1.2em;font-size:1.3em}hr{border:0;height:1px;background:#eee}ol,ul{margin-left:3em}code{font-size:1.4em;background:#eee}pre{font-size:.8em;line-height:2em;background:#eee;padding:1em;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:-moz-pre-wrap;white-space:pre-wrap}input{font-size:1em;padding:.3em}header h1{font-size:1.9em;margin-top:.8em;margin-bottom:.6em}header h1 a{color:#444}header h1 a:hover{text-decoration:none}header #logo img{width:9em;height:9em;border-radius:4.5em;-moz-border-radius:4.5em;-webkit-border-radius:4.5em;border:none}#follow-icons{font-size:.7em;margin-top:-.7em;margin-bottom:1.5em}#follow-icons a{color:#ccc}#follow-icons span{vertical-align:top;margin-left:-.15em;margin-right:-.15em}#follow-icons span .fa-stack-1x{font-size:1.05em;line-height:1.9em}header h6{margin-top:.5em}article span.post-stamp{color:#888}h1.post-title{margin-top:.35em;margin-bottom:.6em}h3.post-title{margin-top:.4em;padding-bottom:.9em;border-bottom:1px solid #eee;font-size:1.2em;color:#444}.post-title .feature-star{font-size:.9em}.feature-star,.separator,.taglist{color:#ccc}.taglist a{background-color:#ccc;color:#fff;display:inline-block;line-height:1.5em;padding:.3em .6em;vertical-align:20%;font-size:.5em;font-family:"Open Sans",sans-serif;font-weight:700!important;text-transform:uppercase;letter-spacing:.05em;border-radius:.25em;-moz-border-radius:.25em;-webkit-border-radius:.25em}#social-bar{margin-top:1.5em;background-color:#eee;padding:.5em}#comments{margin-top:.15em;padding-bottom:.2em;border-bottom:1px solid #eee}.pagination{margin-bottom:1em}footer a{font-weight:300;color:#888;text-decoration:underline}footer a:hover{color:#444;text-decoration:none}@media only screen and (min-width:1281px){body,html{font-size:1.1em}}@media only screen and (max-width:800px){body{padding:0}header{border-right:none;border-bottom:1px #eee solid;position:relative;height:auto;width:auto;text-align:center;padding-bottom:1em}#content{margin-left:0;padding:2em 2em 1em;width:auto}footer{padding:0 2.5em 2em}}@media only screen and (max-width:320px){#content,header{padding:1.2em 1.2em .6em}footer{padding:0 1.5em 1.2em}ol,ul{margin-left:2em}} | ||
</style> |
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,8 @@ | ||
<div id="follow-icons"> | ||
<a href="http://facebook.com/zenithar" rel="me"><i class="fa fa-facebook-square fa-2x"></i></a> | ||
<a href="http://twitter.com/zenithar" rel="me"><i class="fa fa-twitter-square fa-2x"></i></a> | ||
<a href="http://linkedin.com/in/zenithar" rel="me"><i class="fa fa-linkedin-square fa-2x"></i></a> | ||
<a href="http://github.com/zenithar" rel="me"><i class="fa fa-github-square fa-2x"></i></a> | ||
<a href="http://plus.google.com/+ThibaultNormand" rel="author"><i class="fa fa-google-plus-square fa-2x"></i></a> | ||
<a href="{{ .Site.BaseURL }}index.xml" rel="me"><i class="fa fa-rss-square fa-2x"></i></a> | ||
</div> |
Oops, something went wrong.