Added twitter sharing
This commit is contained in:
parent
e9cc9c78e5
commit
050b8b7c62
@ -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: "#"
|
||||||
|
@ -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.
|
|
||||||
|
1
_includes/share_buttons.html
Normal file
1
_includes/share_buttons.html
Normal 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>
|
@ -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>
|
||||||
|
@ -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
|
|
||||||
---
|
|
||||||
```
|
|
@ -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 %}
|
|
@ -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
|
|
||||||
---
|
|
||||||
```
|
|
@ -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&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&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&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
|
|
||||||
---
|
|
||||||
```
|
|
@ -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
|
|
||||||
---
|
|
||||||
```
|
|
@ -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
|
|
||||||
---
|
|
||||||
```
|
|
@ -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 %}
|
|
@ -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
|
|
||||||
---
|
|
||||||
```
|
|
@ -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&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&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&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
|
|
||||||
---
|
|
||||||
```
|
|
@ -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
|
|
||||||
---
|
|
||||||
```
|
|
@ -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.
|
|
14
_posts/2016-06-12-standard.md
Normal file
14
_posts/2016-06-12-standard.md
Normal 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>
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
layout: post
|
|
||||||
title: "Welcome to Jekyll!"
|
|
||||||
date: 2016-06-12 15:36:53 -0700
|
|
||||||
categories: jekyll update
|
|
||||||
---
|
|
||||||
You’ll 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 [Jekyll’s 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/
|
|
BIN
assets/social-icons/g+icon.png
Normal file
BIN
assets/social-icons/g+icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
x
Reference in New Issue
Block a user