Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated Wyam; switched to Wyam's Blog recipe
  • Loading branch information
gniriki committed Jun 26, 2017
1 parent 41e111f commit 7830e51
Show file tree
Hide file tree
Showing 32 changed files with 420 additions and 599 deletions.
4 changes: 4 additions & 0 deletions Input/posts/Publishing-site-on-Amazon-S3.md
Expand Up @@ -2,6 +2,10 @@ Published: 2016-02-11
Title: Publishing your static site on Amazon S3
Lead: So you've spent a lot of time to create a site or a blog. Now we need to publish it, so everybody can see it!
Author: Bartosz
Tags:
- Amazon
- S3
- Blog
---

In my [last post](/posts/Setting-up-the-blog) I've covered creating a simple blog with [Wyam](http://wyam.io) static generator. For a site generated like
Expand Down
3 changes: 3 additions & 0 deletions Input/posts/Setting-up-the-blog.md
Expand Up @@ -2,6 +2,9 @@ Published: 2016-02-06
Title: Setting up a blog with static page generator
Lead: I've decided to start a blog so I can share with the dev community. What could be better for the first post subject then setting up the blog itself?
Author: Bartosz
Tags:
- Wyam
- Blog
---

As I started thinking about creating my own blog, the first question that popped up in my mind: where to host it? I've looked into
Expand Down
11 changes: 11 additions & 0 deletions README.md
@@ -1,2 +1,13 @@
# gniriki.com
Gniriki.com website code

Build site:
Clone the Wyam submodule:
git submodule init
git submodule update

Build wyam
.\wyam\build

Run wyam
.\wyam.bat
43 changes: 6 additions & 37 deletions config.wyam
@@ -1,38 +1,7 @@
Pipelines.Add("Posts",
ReadFiles(@"posts\*.md"), // Read all markdown files in the "posts" directory
FrontMatter(Yaml()), // Load any frontmatter and parse it as YAML markup
Markdown(), // Render the markdown content
Meta("Post", @doc.Content), // Move the markdown content to metadata
Concat(
ReadFiles(@"posts\*.cshtml").Where(x => Path.GetFileName(x)[0] != '_' && Path.GetFileName(x) != "index.cshtml"),
FrontMatter(Yaml())
),
Razor(), // Compile and render the page template
Excerpt(),
WriteFiles("") // Write the post file
);
#recipe Blog
#theme CleanBlog

Pipelines.Add("News",
ReadFiles(@"news\*.md"), // Read all markdown files in the "posts" directory
FrontMatter(Yaml()), // Load any frontmatter and parse it as YAML markup
Markdown(), // Render the markdown content
Meta("NewsContent", @doc.Content),
Razor(),
Excerpt()
);

Pipelines.Add("Games",
ReadFiles(@"games\*.cshtml").Where(x => System.IO.Path.GetFileName(x)[0] != '_'),
Razor(),
WriteFiles("")
);

Pipelines.Add("Home",
ReadFiles(@"*.cshtml").FromTopDirectoryOnly().Where(x => System.IO.Path.GetFileName(x)[0] != '_'),
Razor(),
WriteFiles("")
);

Pipelines.Add("Resources",
CopyFiles("*").WithoutExtensions(".cshtml", ".md", ".less")
);
Settings[Keys.Host] = "gniriki.com";
Settings[BlogKeys.Title] = "Gniriki Games";
Settings[BlogKeys.Description] = "Gniriki Games";
Settings[BlogKeys.Intro] = "My name is Bartosz Borowiecki and I'm game and .NET developer. I created this blog to write about the things I'm creating and the things I learned, so others can benefit from it.";
13 changes: 0 additions & 13 deletions input/404.cshtml

This file was deleted.

4 changes: 4 additions & 0 deletions input/404.md
@@ -0,0 +1,4 @@
Title: Page Not Found
ShowInNavbar: false
---
# This is not the page you're looking for, move along
39 changes: 39 additions & 0 deletions input/_Footer.cshtml
@@ -0,0 +1,39 @@
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<ul class="list-inline text-center">
<li>
<a href="https://twitter.com/Gniriki">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<!-- <li>
<a href="#">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>-->
<li>
<a href="https://github.com/gniriki/">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
</ul>

<p class="copyright text-muted">Copyright &copy; 2016 by Bartosz Borowiecki @@ Gniriki.
<br />
This site is licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>
<br />
<a href="https://github.com/gniriki/gniriki.com"><i class="fa fa-github"></i> This Site on GitHub</a> | <strong><a href="http://wyam.io">Generated by Wyam</a></strong></p>
</div>
</div>
</div>
233 changes: 0 additions & 233 deletions input/_Layout.cshtml

This file was deleted.

Empty file added input/_PageLayout.cshtml
Empty file.

0 comments on commit 7830e51

Please sign in to comment.