Added twitter sharing

This commit is contained in:
Logen Kain 2016-06-12 18:02:28 -07:00
parent e9cc9c78e5
commit 050b8b7c62
18 changed files with 23 additions and 323 deletions

View File

@ -1,6 +1,6 @@
name: Tech Shotgun name: Tech Shotgun
description: Blastin' Tech Since 2016 description: Blastin' Tech Since 2016
url: #place url url: 127.0.0.1:4000 #place url
gems: [jekyll-paginate] gems: [jekyll-paginate]
baseurl: #place folder name if site is served in subfolder baseurl: #place folder name if site is served in subfolder
permalink: /:title/ permalink: /:title/
@ -15,7 +15,7 @@ author_default_avatar: /profile-pic.jpg
tumblr: "#" tumblr: "#"
pinterest: "#" pinterest: "#"
instagram: "#" instagram: "#"
twitter: "#" twitter: "techshotgun"
facebook: "#" facebook: "#"
youtube: "#" youtube: "#"
vimeo: "#" vimeo: "#"

View File

@ -1,13 +1,7 @@
- -
id: someone id: logen
name: Some Person name: Logen Kain
avatar: /profile-pic.jpg avatar: /profile-pic.jpg
bio: this is some more information about the author. bio: It's me! Editor, author, and proprietor of SudoTask!
facebook: https://www.facebook.com/someone twitter: https://twitter.com/rockroar
twitter: https://twitter.com/someone email: logen@sudotask.comm
instagram: http://instagram.com/someone
email: someone@something.com
-
id: person
avatar: /profile-pic.jpg
bio: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id, quidem.

View File

@ -0,0 +1 @@
<a href="https://twitter.com/home?status=@{{site.twitter}} {{ site.url }}{{ page.url }}" rel="nofollow" target="_blank" title="Share On Twitter!"> trying please</a>

View File

@ -86,6 +86,7 @@
</div> </div>
</section> </section>
{% include footer.html %} {% include footer.html %}
{% include share_buttons.html url=page.url title=page.title %}
<script src="{{ site.baseurl | replace: '//', '/' }}/js/build/global.min.js"></script> <script src="{{ site.baseurl | replace: '//', '/' }}/js/build/global.min.js"></script>
</body> </body>
</html> </html>

View File

@ -1,22 +0,0 @@
---
author: person
type: vimeo
vimeo-embed: <iframe src="//player.vimeo.com/video/118589137" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
title: Vimeo
homedisplay: iframe
tags: [video, iframe]
category: [video]
---
this is a video post using the vimeo format.
To create one you just have to use the type-specific variables within the Front Matter and paste the embed code directly from vimeo.
this post also shows the video on the home page instead of the featured image.
``` yml
---
type: vimeo
vimeo-embed: <iframe src="//player.vimeo.com/video/118589137" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
homedisplay: iframe
---
```

View File

@ -1,61 +0,0 @@
---
author: someone
layout: post_full
type: gallery
featimg: /galleries/gallery-standard-post/2.jpg
title: Gallery Alternative
gallery-id: gallery
tags: [gallery, image]
category: [image]
---
An alternative to the simple gallery would be this version, which displays the post ins a lightbox.
The setup basically is the same, the include makes all the difference.
Galleries are defined in a data-sheet, set type and gallery-id in front matter and include `gallery_lightbox.html` within the content.
<br>
###### _data/galleries.yml
```yml
- id: gallery
imagefolder: /img/galleries/gallery-standard-post
images:
- filename: 1.jpg
alttext: Bloom Flat
- filename: 2.jpg
alttext: Bloom
- filename: 3.jpg
alttext: Blossom in a Star
- filename: 4.jpg
alttext: Blossom
- filename: 5.jpg
alttext: Bubbly Bloom
- filename: 6.jpg
alttext: Rays of Gold
- filename: 7.jpg
alttext: Exotic
- filename: 8.jpg
alttext: Filled out
```
<br>
###### front matter
```yml
---
layout: post_full
type: gallery
gallery-id: gallery
---
```
<br>
###### post content
``` liquid
{% raw %}
{% include gallery_lightbox.html %}
{% endraw %}
```
{% include gallery_lightbox.html %}

View File

@ -1,20 +0,0 @@
---
author: someone
layout: post_full
type: image
featimg: 5.jpg
title: Image Full
tags: [image]
category: [image]
---
Here you see an image post with a full-width layout.
The Front Matter for that looks like this:
```yml
---
layout: post_full
type: image
featimg: 5.jpg
---
```

View File

@ -1,21 +0,0 @@
---
author: someone
layout: post_full
type: audio
audio-embed: <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/143789807&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
featimg: 6.jpg
title: Audio Full
tags: [music, soundcloud]
category: [audio]
---
This audio post is displays without a sidebar and has a featured image set for the index pages.
For the audio post to work, type must be set to audio and the audio-embed filled with an iframe.
```yml
---
layout: post_full
type: audio
audio-embed: <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/143789807&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
---
```

View File

@ -1,22 +0,0 @@
---
author: someone
layout: post_full
type: youtube
yt-video-id: hPX9h5OrlhU
homedisplay: iframe
title: YouTube full
tags: [video, music, iframe]
category: [video]
---
This youtube video uses the iframe instead of the thumbnail image on the index pages.
For a YouTube video, no embedding code is required, it all works through the video ID.
```yml
---
layout: post_full
type: youtube
yt-video-id: hPX9h5OrlhU
homedisplay: iframe
---
```

View File

@ -1,16 +0,0 @@
---
author: person
layout: post_full
title: Full Width Post
featimg: 2.jpg
tags: [text]
category: [standard]
---
a standard post displayed at full-width, only requires a layout, variable.
The featured image will be added at the beginning of the content, but not above it, as in an image post.
```yml
---
layout: post_full
---
```

View File

@ -1,58 +0,0 @@
---
author: someone
type: gallery
featimg: galleries/gallery-standard-post/5.jpg
title: Gallery
gallery-id: gallery
tags: [gallery, image]
category: [image]
---
Here you'll find a simple gallery, that just adds all of the images at full-width directly in the post content.
Galleries are defined in a data-sheet, set type and gallery-id in front matter and include `gallery.html` within the content.
<br>
###### _data/galleries.yml
```yml
- id: gallery
imagefolder: /img/galleries/gallery-standard-post
images:
- filename: 1.jpg
alttext: Bloom Flat
- filename: 2.jpg
alttext: Bloom
- filename: 3.jpg
alttext: Blossom in a Star
- filename: 4.jpg
alttext: Blossom
- filename: 5.jpg
alttext: Bubbly Bloom
- filename: 6.jpg
alttext: Rays of Gold
- filename: 7.jpg
alttext: Exotic
- filename: 8.jpg
alttext: Filled out
```
<br>
###### front matter
```yml
---
type: gallery
gallery-id: gallery
---
```
<br>
###### post content
``` liquid
{% raw %}
{% include gallery.html %}
{% endraw %}
```
{% include gallery.html %}

View File

@ -1,18 +0,0 @@
---
author: someone
type: image
featimg: 3.jpg
title: Image
tags: [image]
category: [image]
---
Here you see an image post in the standard layout, with sidebar.
The Front Matter for that looks like this:
```yml
---
type: image
featimg: 5.jpg
---
```

View File

@ -1,19 +0,0 @@
---
author: someone
type: audio
audio-embed: <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/188464611&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
homedisplay: iframe
title: Audio
tags: [music, soundcloud]
category: [audio]
---
This audio post is displays without a sidebar and has the iframe set for the index pages, instead of a featured image.
For the audio post to work, type must be set to audio and the audio-embed filled with an iframe.
```yml
---
type: audio
audio-embed: <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/188464611&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>
---
```

View File

@ -1,18 +0,0 @@
---
author: someone
type: youtube
yt-video-id: e0RFirBWQsE
title: YouTube
tags: [video, music, iframe]
category: [video]
---
This is a youtube post type video.
For a YouTube video, no embedding code is required, it all works through the video ID. A featured image is not needed, as the video thumbnail will be used.
```yml
---
type: youtube
yt-video-id: e0RFirBWQsE
---
```

View File

@ -1,10 +0,0 @@
---
author: someone
title: Standard Post
featimg: 1.jpg
tags: [text]
category: [standard]
---
Here you can see the basic post. No fancy type, no setting and the featured image is just embedded into the content.
The front matter for that basic post just consists of the basic tags, author, title, featimg, tags and category.

View File

@ -0,0 +1,14 @@
---
author: logen
title: Test Post Please Ignore
featimg: 1.jpg
tags: [test]
category: [test]
---
Test post please ignore.
<a href="https://twitter.com/share" data-via="RockRoar">Tweet</a>
<a href="https://twitter.com/home?status=@{{site.twitter}} {{ site.url }}{{ page.url }}" rel="nofollow" target="_blank" title="Share On Twitter!"> trying please</a>

View File

@ -1,25 +0,0 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2016-06-12 15:36:53 -0700
categories: jekyll update
---
Youll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Jekyll also offers powerful support for code snippets:
{% highlight ruby %}
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekylls GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
[jekyll-docs]: http://jekyllrb.com/docs/home
[jekyll-gh]: https://github.com/jekyll/jekyll
[jekyll-talk]: https://talk.jekyllrb.com/

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB