Skip to content

Commit

Permalink
add stable release
Browse files Browse the repository at this point in the history
Signed-off-by: Luís Ferreira <lsferreira169@gmail.com>
  • Loading branch information
ljmf00 committed Dec 27, 2018
1 parent 7648ef7 commit 3a6e6eb
Show file tree
Hide file tree
Showing 11 changed files with 179 additions and 66 deletions.
31 changes: 16 additions & 15 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
---
layout: default
permalink: /404.html
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>
<div class="center container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ description: > # this means to ignore newlines until "twitter_username:"
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
# site settings
url: https://fuzzy.aurorafoss.org

# social links
twitter: aurorafossorg
facebook: aurorafossorg
Expand All @@ -14,6 +17,10 @@ github: aurorafossorg
discord_url: https://discord.gg/Tsb2gpk
rss: rss

# post settings
disqus_shortname: aurorafossorgfuzzy
show_excerpts: true

markdown: kramdown

theme: fuzzy-theme
Expand Down
25 changes: 12 additions & 13 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<header class="site-header" role="banner">
<div class="wrapper">
{% assign default_paths = site.pages | map: "path" %}
{% assign page_paths = site.header_pages | default: default_paths %}

{% if page_paths %}
<nav class="grey">
<div class="nav-wrapper">
<a href="#" data-target="mobile-nav" class="sidenav-trigger"><i class="material-icons">menu</i></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">

<li><a class="page-link" href="/">Home</a></li>
{% for path in page_paths %}
{% assign my_page = site.pages | where: "path", path | first %}
{% if my_page.title %}
<li><a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
{% assign sorted_pages = site.pages | sort: "order" %}
{% for node in sorted_pages %}
{% if node.title %}
{% unless node.nonav or node.layout=='home' %}
<li><a class="page-link" href="{{ node.url | relative_url }}">{{ node.title | escape }}</a></li>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
Expand All @@ -23,13 +21,14 @@
<script>$(document).ready(function(){$('.sidenav').sidenav();});</script>
<ul class="sidenav" id="mobile-nav">
<li><a class="page-link" href="/">Home</a></li>
{% for path in page_paths %}
{% assign my_page = site.pages | where: "path", path | first %}
{% if my_page.title %}
<li><a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
{% assign sorted_pages = site.pages | sort: "order" %}
{% for node in sorted_pages %}
{% if node.title %}
{% unless node.nonav %}
<li><a class="page-link" href="{{ node.url | relative_url }}">{{ node.title | escape }}</a></li>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
</div>
</header>
8 changes: 1 addition & 7 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<!doctype html>
<html class="no-js" lang="en">
{% include bootstrap.html %}

<body>
{% include header.html %}
<div class="container">
{{ content }}
</div>
{% include footer.html %}
{{ content }}
</body>
</html>
85 changes: 63 additions & 22 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,71 @@
---
layout: default
layout: simple
---

<div class="home">
{{ content }}
{% unless page.content_after %}
{{ content }}
{% endunless %}

{% if site.posts.size > 0 %}
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
<ul class="post-list">
{% for post in site.posts %}
<li>
{% assign date_format = site.fuzzy.date_format | default: "%b %-d, %Y" %}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{% if site.show_excerpts %}
{{ post.excerpt }}
{% endif %}
</li>
{% endfor %}
</ul>
{% if site.posts.size > 0 %}
<div class="col s12" id="cards">
<div class="section no-pad-bot">
<div class="container" id="greetings">
<div class="row center">
<h4 class="header col s12 light">{{ page.list_title | default: "Posts" }}</h4>
{%- if page.list_subtitle -%}
<p class="light grey-text">{{ page.list_subtitle | escape }}</p>
{%- endif -%}
</div>
</div>
</div>
<ul class="post-list">
{% for post in site.posts %}
<li>
<div class="card grey lighten-5">
<div class="card-content">
{% assign date_format = site.fuzzy.date_format | default: "%b %-d, %Y" %}
<span class="card-title">
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</span>
{% if site.show_excerpts %}
{{ post.excerpt }}
{% endif %}
</div>
<div class="card-action">
<span class="post-meta">{{ post.date | date: date_format }}</span>
{% if site.disqus_shortname %}
<span class="post-meta right"><a data-disqus-identifier="{{post.url}}"></a></span>
{% endif %}
</div>
</div>
</li>
{% endfor %}
</ul>

<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
{% endif %}
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
</div>
{% endif %}

{% if page.content_after and page.content_after==true %}
{{ content }}
{% endif %}
{% if site.disqus_shortname %}
<script type="text/javascript">
var disqus_shortname = "{{ site.disqus_shortname }}";

{% if jekyll.environment == "development" %}
var disqus_developer = 1;
{% endif %}

(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'https://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
{% endif %}
</div>
16 changes: 8 additions & 8 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
layout: default
layout: simple
---
<article class="post">
<header class="post-header">
<div class="section no-pad-bot">
<div class="container" id="greetings">
<div class="row center">
<h1 class="header col s12 light">{{ page.title | escape }}</h1>
{%- if page.subtitle -%}
<p class="light grey-text">{{ page.subtitle | escape }}</p>
{%- endif -%}
</div>
<div class="container" id="greetings">
<div class="row center">
<h1 class="header col s12 light">{{ page.page_title | default: page.title | escape }}</h1>
{%- if page.subtitle -%}
<p class="light grey-text">{{ page.subtitle | escape }}</p>
{%- endif -%}
</div>
</div>
</div>
</header>

<div class="col s12" id="cards">
Expand Down
49 changes: 49 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: simple
---
<article class="post">
<header class="post-header">
<div class="section no-pad-bot">
<div class="container" id="greetings">
<div class="row center">
<h3 class="header col s12 light">{{ page.page_title | default: page.title | escape }}</h3>
{%- if page.subtitle -%}
<h5 class="light grey-text">{{ page.subtitle | escape }}</h5>
{%- endif -%}
</div>
</div>
</div>
</header>

<div class="col s12" id="cards">
<div class="card">
<div class="card-content">
{{ content }}
</div>
</div>

{% if page.comments and site.disqus_shortname %}
<div class="card">
<div class="card-content">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = "{{ site.disqus_shortname }}";
{% if jekyll.environment == "development" %}
var disqus_developer = 1;
{% endif %}

var disqus_identifier = "{{ page.url }}";

(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://' + 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>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
{% endif %}
</div>
</article>
12 changes: 12 additions & 0 deletions _layouts/simple.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html class="no-js" lang="en">
{% include bootstrap.html %}

<body>
{% include header.html %}
<div class="container">
{{ content }}
</div>
{% include footer.html %}
</body>
</html>
9 changes: 9 additions & 0 deletions _posts/2018-12-27-super-short-article.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: post
title: "Some articles are just so short that we have to make the footer stick"
subtitle: "Some subtitle substuff... cheese"
categories: misc
comments: true
---

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
2 changes: 1 addition & 1 deletion fuzzy-theme.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "fuzzy-theme"
spec.version = "1.0.5"
spec.version = "1.1.0"
spec.authors = ["Luís Ferreira"]
spec.email = ["admin@aurorafoss.org"]

Expand Down
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
#
layout: home
content_after: true
---

This is the home page example.

0 comments on commit 3a6e6eb

Please sign in to comment.