Skip to content

Commit

Permalink
Change dir structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sturmer committed Sep 11, 2022
1 parent b6f6c2d commit 6a00a13
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

## Deploy

1. `cd output`
1. Add diff to branch gh-pages
1. Do the [setup](https://nanoc.app/doc/deploying/#with-git)
1. `bundle exec nanoc`
1. `bundle exec nanoc deploy`
7 changes: 7 additions & 0 deletions Rules
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ compile '/**/*.html' do
end
end

compile '/songs_to_the_stone.md' do
filter :kramdown
layout '/songs_to_the_stone.*'

write item.identifier.without_ext + '/index.html'
end

compile '/storie.md' do
filter :kramdown
layout '/story_list.*'
Expand Down
3 changes: 3 additions & 0 deletions content/songs_to_the_stone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: 'Songs to the Stone'
---
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "[EN] Mario the butcher"
created_at: 2016-07-02
kind: article
title: "Mario the butcher"
created_at: 2022-09-11
tags: ['song']
---

The night was a vortex of lights of every intensity, and of shadows thick andimpenetrable. Along the streets, snakes made of asphalt, cars moved slowly, speeding forward, describing curves, projecting cones of solid light that would rend the night and the dark that seemed to be willing to swallow them. It was the October 12th, 1982.
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ <h2>
</h2>
<h2>
<%= link_to 'Storie', '/storie/' %>
<br />
<%= link_to 'Songs to the Stone', '/songs_to_the_stone/' %>
</h2>
</div>
</div>
23 changes: 23 additions & 0 deletions layouts/songs_to_the_stone.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<%= render '/partials/head.*' %>
<body>
<div id="main">
<h1>
<%= @item[:title] %>
</h1>

<%= yield %>

<ul>
<% items_with_tag('song').each do |song| %>
<li>
<%= link_to song[:title], song.path %> (<%= song[:created_at] %>)
</li>
<% end %>
</ul>
<%= render '/partials/footer.*' %>
</div>

<%= render '/partials/sidebar.*' %>
</body>

</html>

0 comments on commit 6a00a13

Please sign in to comment.