Compare commits

...

1 commit

Author SHA1 Message Date
Jeff Epler
46c0f16ff4 let's showcase users projects with linuxcnc
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2016-06-20 14:21:16 -05:00
7 changed files with 141 additions and 17 deletions

View file

@ -18,8 +18,11 @@ url: "http://linuxcnc.org"
exclude: [ scripts, README.md ]
include: [ .htaccess ]
#twitter_username: jekyllrb
#github_username: jekyll
github_username: LinuxCNC
# Build settings
markdown: kramdown
permalink: pretty
collections:
showcase:
output: true

View file

@ -0,0 +1,18 @@
---
layout: post
title: 'Introducing the LinuxCNC Showcase'
date: 2016-06-20 10:03:04.742024910-05:00
---
This sidebar will feature selected posts from our forums "Show Your Stuff"
category and other sources.
To suggest a machine or project for the showcase, create an issue on our
[website's github repository][github]. Submissions should consist of at least
one photo or video, a short explanation, and include a link to the forum or a
personal blog with more information.
The showcase is not for promoting commercial products that use or include
LinuxCNC, it is for promoting things that the LinuxCNC software enables
our users to do.
[github]: https://github.com/LinuxCNC/wlo/issues/new

View file

@ -0,0 +1,10 @@
---
layout: post
title: Six Axis Test Rig
date: 2016-06-20 13:05:48.177089016-05:00
---
Forum member isladelobos, and proud user of tklinuxcnc, offers us a view of their [5 (or is it 6?)-axis stepper test rig](http://forum.linuxcnc.org/forum/show-your-stuff/31047-5-axis-steppers-testing-3d-forms):
<div>
<iframe src="http://www.youtube.com/embed/M-wiZknIqs0" frameborder="0" width="405" height="344" allowfullscreen></iframe>
</div>

View file

@ -219,18 +219,23 @@ a:visited { color: #205caa; }
margin: 40px 0 20px;
}
.post-content h2 {
.post-content h1 {
font-size: 32px;
letter-spacing: -1.25px;
}
.post-content h3 {
.post-content h2 {
font-size: 26px;
letter-spacing: -1.25px;
}
.post-content h3 {
font-size: 20px;
letter-spacing: -1px;
}
.post-content h4 {
font-size: 20px;
font-size: 16px;
letter-spacing: -1px;
}
@ -245,7 +250,7 @@ a:visited { color: #205caa; }
}
.post-content ul,
.post-content ol { padding-left: 20px; }
.post-content ol { padding-left: 0px; }
.post pre,
.post code {
@ -262,7 +267,7 @@ a:visited { color: #205caa; }
.post code { padding: 1px 5px; }
.post ul,
.post ol { margin-left: 1.35em; }
.post ol { margin-left: 0; }
.post pre code {
border: 0;
@ -430,3 +435,12 @@ a:visited { color: #205caa; }
margin: 0 0 15px; }
}
@media screen and (min-width: 850px) {
#site-showcase { max-width: 50%;float: left; }
#site-news { max-width: 50%; float: left; }
}
.post-date + h2 { margin-top: -18px; }
#site-showcase ul.posts { margin-top: 30px; }

View file

@ -29,17 +29,44 @@ printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
* Full source code available under under the terms of the [GNU GPLv2
(General Public License version 2)][GPLv2].
# News
<ul class="posts">
{% for post in site.posts limit:4 %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endfor %}
<li><a class="post-link" href="news/">Older news...</a></li>
</ul>
<div id="site-news">
<h1>News</h1>
<ul class="posts">
{% for post in site.posts limit:4 %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endfor %}
<li><a class="post-link" href="news/">Older news...</a></li>
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>
<div class="posts" id="site-showcase">
<h1>Showcase</h1>
{% for post in site.showcase limit:1 %}
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
</h2>
<div class="content">
{{post.content | markdownify }}
</div>
{% endfor %}
<ul class="posts">
{% for post in site.showcase limit:4 offset:1 %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endfor %}
<li><a class="post-link" href="showcase/">Older showcase...</a></li>
</ul>
<p class="rss-subscribe">subscribe to showcase <a href="{{ "/showcase.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>
[GPLv2]: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

30
showcase.xml Normal file
View file

@ -0,0 +1,30 @@
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.showcase limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | markdownify | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>

22
showcase/index.md Normal file
View file

@ -0,0 +1,22 @@
---
layout: page
navbar: no
title: News
---
<div class="home">
<h1>All Showcase</h1>
<ul class="posts">
{% for post in site.showcase %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/showcase.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>