Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDurand D'souza <durand1@gmail.com>2016-10-18 01:24:27 +0300
committerDurand D'souza <durand1@gmail.com>2016-10-18 01:24:27 +0300
commitb434dc17d014f0f3b14cf4b7610ba6451b68dddf (patch)
tree7cef1a29e9d46e5dd54301c3b5e8b16961d13764
parent2c8b5ee42172c9f64a2027e641a4585649caa6b7 (diff)
parent8b56f2bab54f44f6054ab997b166d6deb4f9da26 (diff)
Merge branch 'ipfs' to modify /images/ url
-rw-r--r--.tern-project7
-rw-r--r--exampleSite/content/about.md6
-rw-r--r--exampleSite/content/posts/2011-03-10-sample-post.md2
-rw-r--r--exampleSite/content/posts/2012-05-22-readability-post.md12
-rw-r--r--exampleSite/content/posts/2013-05-23-readability-feature-post.md10
-rw-r--r--exampleSite/content/posts/2013-08-16-code-highlighting-post.md4
-rw-r--r--exampleSite/content/posts/2013-10-26-background-image.md2
-rw-r--r--exampleSite/content/theme-setup.md2
-rw-r--r--layouts/404.html23
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/scripts.html2
-rw-r--r--static/js/ipfs.js8
13 files changed, 61 insertions, 23 deletions
diff --git a/.tern-project b/.tern-project
new file mode 100644
index 0000000..22bd8f4
--- /dev/null
+++ b/.tern-project
@@ -0,0 +1,7 @@
+{
+ "ecmaVersion": 6,
+ "libs": [
+ "browser"
+ ],
+ "plugins": {}
+} \ No newline at end of file
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index 002e49a..b7e017b 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -2,14 +2,14 @@
layout: page
title: About the Jekyll Theme
image:
- feature: abstract-5.jpg
+ feature: /images/abstract-5.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
comments: false
modified: 2016-02-01
---
-They say three times the charm, so here is another free responsive Jekyll blog theme for you. I've learned a ton since open sourcing my first two themes [on Github](http://github.com/mmistakes), and wanted to try a few new things this time around.
+They say three times the charm, so here is another free responsive Jekyll blog theme for you. I've learned a ton since open sourcing my first two themes [on Github](http://github.com/mmistakes), and wanted to try a few new things this time around.
If you've used any of [my other themes](http://mademistakes.com/work/jekyll-themes/) most of this should be familiar territory...
@@ -29,4 +29,4 @@ If you've used any of [my other themes](http://mademistakes.com/work/jekyll-them
<div markdown="0"><a href="{{ site.url }}/theme-setup/" class="btn btn-info">Theme Setup</a> <a href="https://github.com/mmistakes/hpstr-jekyll-theme" class="btn btn-success">Download HPSTR</a></div>
-[^1]: Example: *domain.com/category-name/post-title* \ No newline at end of file
+[^1]: Example: *domain.com/category-name/post-title*
diff --git a/exampleSite/content/posts/2011-03-10-sample-post.md b/exampleSite/content/posts/2011-03-10-sample-post.md
index da23e85..120c668 100644
--- a/exampleSite/content/posts/2011-03-10-sample-post.md
+++ b/exampleSite/content/posts/2011-03-10-sample-post.md
@@ -5,7 +5,7 @@ description: "Just about everything you'll need to style in the theme: headings,
lastmod: 2014-12-24
tags: [sample post]
image:
- feature: abstract-3.jpg
+ feature: /images/abstract-3.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
---
diff --git a/exampleSite/content/posts/2012-05-22-readability-post.md b/exampleSite/content/posts/2012-05-22-readability-post.md
index 24a626c..452ea80 100644
--- a/exampleSite/content/posts/2012-05-22-readability-post.md
+++ b/exampleSite/content/posts/2012-05-22-readability-post.md
@@ -4,7 +4,7 @@ title: "Testing Readability with a Bunch of Text"
description: "A ton of text to test readability."
tags: [sample post, readability, test, intro]
image:
- feature: abstract-6.jpg
+ feature: /images/abstract-6.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
---
@@ -15,11 +15,11 @@ Vero laborum commodo occupy. Semiotics voluptate mumblecore pug. Cosby sweater u
## Cupidatat 90's lo-fi authentic try-hard
-In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's.
+In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's.
-* Sartorial hoodie
+* Sartorial hoodie
* Labore viral forage
-* Tote bag selvage
+* Tote bag selvage
* DIY exercitation et id ugh tumblr church-key
Incididunt umami sriracha, ethical fugiat VHS ex assumenda yr irure direct trade. Marfa Truffaut bicycle rights, kitsch placeat Etsy kogi asymmetrical. Beard locavore flexitarian, kitsch photo booth hoodie plaid ethical readymade leggings yr.
@@ -28,7 +28,7 @@ Aesthetic odio dolore, meggings disrupt qui readymade stumptown brunch Terry Ric
## Forage occaecat cardigan qui
-Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole.
+Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole.
> Whatever velit occaecat quis deserunt gastropub, leggings elit tousled roof party 3 wolf moon kogi pug blue bottle ea. Fashion axe shabby chic Austin quinoa pickled laborum bitters next level, disrupt deep v accusamus non fingerstache.
@@ -44,4 +44,4 @@ Fingerstache thundercats Williamsburg, deep v scenester Banksy ennui vinyl selfi
Occupy et selvage squid, pug brunch blog nesciunt hashtag mumblecore skateboard yr kogi. Ugh small batch swag four loko. Fap post-ironic qui tote bag farm-to-table american apparel scenester keffiyeh vero, swag non pour-over gentrify authentic pitchfork. Schlitz scenester lo-fi voluptate, tote bag irony bicycle rights pariatur vero Vice freegan wayfarers exercitation nisi shoreditch. Chambray tofu vero sed. Street art swag literally leggings, Cosby sweater mixtape PBR lomo Banksy non in pitchfork ennui McSweeney's selfies. Odd Future Banksy non authentic.
-Aliquip enim artisan dolor post-ironic. Pug tote bag Marfa, deserunt pour-over Portland wolf eu odio intelligentsia american apparel ugh ea. Sunt viral et, 3 wolf moon gastropub pug id. Id fashion axe est typewriter, mlkshk Portland art party aute brunch. Sint pork belly Cosby sweater, deep v mumblecore kitsch american apparel. Try-hard direct trade tumblr sint skateboard. Adipisicing bitters excepteur biodiesel, pickled gastropub aute veniam. \ No newline at end of file
+Aliquip enim artisan dolor post-ironic. Pug tote bag Marfa, deserunt pour-over Portland wolf eu odio intelligentsia american apparel ugh ea. Sunt viral et, 3 wolf moon gastropub pug id. Id fashion axe est typewriter, mlkshk Portland art party aute brunch. Sint pork belly Cosby sweater, deep v mumblecore kitsch american apparel. Try-hard direct trade tumblr sint skateboard. Adipisicing bitters excepteur biodiesel, pickled gastropub aute veniam.
diff --git a/exampleSite/content/posts/2013-05-23-readability-feature-post.md b/exampleSite/content/posts/2013-05-23-readability-feature-post.md
index dd57125..e84c32b 100644
--- a/exampleSite/content/posts/2013-05-23-readability-feature-post.md
+++ b/exampleSite/content/posts/2013-05-23-readability-feature-post.md
@@ -5,7 +5,7 @@ description: "Custom written post descriptions are the way to go... if you're no
tags: [sample post, readability]
date: 2013-06-30
image:
- feature: abstract-7.jpg
+ feature: /images/abstract-7.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
---
@@ -16,11 +16,11 @@ Vero laborum commodo occupy. Semiotics voluptate mumblecore pug. Cosby sweater u
## Cupidatat 90's lo-fi authentic try-hard
-In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's.
+In pug Portland incididunt mlkshk put a bird on it vinyl quinoa. Terry Richardson shabby chic +1, scenester Tonx excepteur tempor fugiat voluptate fingerstache aliquip nisi next level. Farm-to-table hashtag Truffaut, Odd Future ex meggings gentrify single-origin coffee try-hard 90's.
-* Sartorial hoodie
+* Sartorial hoodie
* Labore viral forage
-* Tote bag selvage
+* Tote bag selvage
* DIY exercitation et id ugh tumblr church-key
Incididunt umami sriracha, ethical fugiat VHS ex assumenda yr irure direct trade. Marfa Truffaut bicycle rights, kitsch placeat Etsy kogi asymmetrical. Beard locavore flexitarian, kitsch photo booth hoodie plaid ethical readymade leggings yr.
@@ -29,7 +29,7 @@ Aesthetic odio dolore, meggings disrupt qui readymade stumptown brunch Terry Ric
## Forage occaecat cardigan qui
-Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole.
+Fashion axe hella gastropub lo-fi kogi 90's aliquip +1 veniam delectus tousled. Cred sriracha locavore gastropub kale chips, iPhone mollit sartorial. Anim dolore 8-bit, pork belly dolor photo booth aute flannel small batch. Dolor disrupt ennui, tattooed whatever salvia Banksy sartorial roof party selfies raw denim sint meh pour-over. Ennui eu cardigan sint, gentrify iPhone cornhole.
> Whatever velit occaecat quis deserunt gastropub, leggings elit tousled roof party 3 wolf moon kogi pug blue bottle ea. Fashion axe shabby chic Austin quinoa pickled laborum bitters next level, disrupt deep v accusamus non fingerstache.
diff --git a/exampleSite/content/posts/2013-08-16-code-highlighting-post.md b/exampleSite/content/posts/2013-08-16-code-highlighting-post.md
index 521d9ad..6530ce0 100644
--- a/exampleSite/content/posts/2013-08-16-code-highlighting-post.md
+++ b/exampleSite/content/posts/2013-08-16-code-highlighting-post.md
@@ -5,7 +5,7 @@ description: "Demo post displaying the various ways of highlighting code in Mark
lastmod: 2016-06-01T15:27:45-04:00
tags: [sample post, code, highlighting]
image:
- feature: abstract-10.jpg
+ feature: /images/abstract-10.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
---
@@ -117,4 +117,4 @@ end
An example of a Gist embed below.
-<script src="https://gist.github.com/mmistakes/43a355923921d22cd993.js"></script> \ No newline at end of file
+<script src="https://gist.github.com/mmistakes/43a355923921d22cd993.js"></script>
diff --git a/exampleSite/content/posts/2013-10-26-background-image.md b/exampleSite/content/posts/2013-10-26-background-image.md
index c73e847..ff9ca26 100644
--- a/exampleSite/content/posts/2013-10-26-background-image.md
+++ b/exampleSite/content/posts/2013-10-26-background-image.md
@@ -3,7 +3,7 @@ layout: post
title: Post with a Background Image
description: "Sample post with a background image CSS override."
tags: [sample post]
-background: images/triangular.png
+background: /images/triangular.png
---
Here be a sample post with a custom background image. To utilize this "feature" just add the following YAML to a post's front matter.
diff --git a/exampleSite/content/theme-setup.md b/exampleSite/content/theme-setup.md
index 597767b..b40e7fd 100644
--- a/exampleSite/content/theme-setup.md
+++ b/exampleSite/content/theme-setup.md
@@ -3,7 +3,7 @@ type: page
title: Theme Setup
description: "Instructions on how to install and customize the modern Jekyll theme HPSTR."
image:
- feature: abstract-11.jpg
+ feature: /images/abstract-11.jpg
credit: dargadgetz
creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
share: true
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..aa01cdf
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,23 @@
+{{ partial "head.html" . }}
+<body id="page">
+{{ partial "navigation.html" . }}
+<div id="main" role="main">
+ <article class="hentry">
+ <header class="header-title">
+ <div class="header-title-wrap">
+ <h1 class="entry-title">Page Not Found</h1>
+ </div><!-- /.header-title-wrap -->
+ </header>
+ <div class="entry-content">
+ Sorry, but the page you were trying to view does not exist — perhaps you can try searching for it below.
+ <script type="text/javascript">
+ var GOOG_FIXURL_LANG = 'en';
+ var GOOG_FIXURL_SITE = '{{ .Site.BaseURL }}'
+ </script>
+ <script type="text/javascript"
+ src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
+ </script>
+ </div><!-- /.entry-content -->
+ </article>
+</div><!-- /#main -->
+{{ partial "foot.html" . }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2a11c88..b376cb1 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -6,7 +6,7 @@
{{ $imageparams := index ($.Scratch.Get "Params") "image" }}
{{ if $imageparams.credit }}<div class="image-credit">Image source: <a href="{{ $imageparams.creditlink }}">{{ $imageparams.credit }}</a></div><!-- /.image-credit -->{{ end }}
<div class="entry-image">
- <img src="{{ .Site.BaseURL }}/images/{{ $imageparams.feature }}" alt="{{ .Title }}">
+ <img src="{{ .Site.BaseURL }}{{ $imageparams.feature }}" alt="{{ .Title }}">
</div><!-- /.entry-image -->
{{ end }}
<div class="header-title">
@@ -34,7 +34,7 @@
<header>
{{ if .Params.image.feature }}
<div class="entry-image-index">
- <a href="{{ .Permalink }}" title="{{ .Title }}"><img src="{{ .Site.BaseURL }}/images/{{ .Params.image.feature }}" alt="{{ .Title }}"></a>
+ <a href="{{ .Permalink }}" title="{{ .Title }}"><img src="{{ .Site.BaseURL }}{{ .Params.image.feature }}" alt="{{ .Title }}"></a>
</div><!-- /.entry-image -->
{{ end }}
<div class="entry-meta">
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 45eee5d..549d709 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,7 +6,7 @@
{{ $imageparams := index ($.Scratch.Get "Params") "image" }}
{{ if $imageparams.credit }}<div class="image-credit">Image credit: <a {{ with $imageparams.creditlink }}href="{{ . }}"{{ end }}>{{ $imageparams.credit }}</a></div><!-- /.image-credit -->{{ end }}
<div class="entry-image">
- <img src="{{ .Site.BaseURL }}/images/{{ $imageparams.feature }}" alt="{{ .Title }}">
+ <img src="{{ .Site.BaseURL }}{{ $imageparams.feature }}" alt="{{ .Title }}">
</div><!-- /.entry-image -->
</div><!-- /.entry-header -->
{{ end }}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 6778bcd..d6557ed 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,5 +1,5 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ .Site.BaseURL }}/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="{{ .Site.BaseURL }}/assets/js/scripts.min.js"></script>
-
+<script src="{{ .Site.BaseURL }}/js/ipfs.js"></script>
{{ template "_internal/google_analytics.html" . }}
diff --git a/static/js/ipfs.js b/static/js/ipfs.js
new file mode 100644
index 0000000..45d1947
--- /dev/null
+++ b/static/js/ipfs.js
@@ -0,0 +1,8 @@
+function use_ipfs(image) {
+ if (image.naturalWidth == 0 && image.src.search("/ipfs/") != -1) {
+ image.src = image.src.split('#')[1];
+ }
+}
+
+let image = document.getElementsByClassName("entry-image")[0].getElementsByTagName('img')[0];
+window.onload(use_ipfs(image));