diff options
-rw-r--r-- | bin/index.md.erb | 2 | ||||
-rw-r--r-- | bin/page.html.erb | 4 | ||||
-rw-r--r-- | bin/util.rb | 26 | ||||
-rw-r--r-- | out/Andrew.html | 2 | ||||
-rw-r--r-- | out/DND/PsionicSchools.html | 4 | ||||
-rw-r--r-- | out/DND/Psionist.html | 4 | ||||
-rw-r--r-- | out/DND/SpellGauntlet.html | 4 | ||||
-rw-r--r-- | out/DND/Tastavi.html | 4 | ||||
-rw-r--r-- | out/DND/index.html | 12 | ||||
-rw-r--r-- | out/DND/index.md | 8 | ||||
-rw-r--r-- | out/index.html | 12 | ||||
-rw-r--r-- | out/index.md | 10 | ||||
-rw-r--r-- | out/main.css | 12 | ||||
-rw-r--r-- | src/main.scss | 13 | ||||
-rw-r--r-- | src/tags.txt | 6 |
15 files changed, 70 insertions, 53 deletions
diff --git a/bin/index.md.erb b/bin/index.md.erb index a9419ba..f7a463b 100644 --- a/bin/index.md.erb +++ b/bin/index.md.erb @@ -3,4 +3,4 @@ title: "<%= @path %>" --- <% @pages.sort_by{|a|a.published}.reverse.each do |a| %> - * <time><%= a.published.strftime('%Y-%m-%d') %></time> - [<%= a.title %>](<%= a.url %>) (last updated <time><%= a.updated.strftime('%Y-%m-%d') %></time>)<% end %> + * <time><%= a.published.strftime('%Y-%m-%d') %></time> - [<%= a.title %>](<%= a.url %>)<% if a.updated != a.published %> (last updated <time><%= a.updated.strftime('%Y-%m-%d') %></time>)<% end %> <% a.tags.each do |t| %><%= t.html %><% end %><% end %> diff --git a/bin/page.html.erb b/bin/page.html.erb index 8317282..908790c 100644 --- a/bin/page.html.erb +++ b/bin/page.html.erb @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title><%= @page.title %></title> + <title><%= @page.title %><% unless @page.title.empty? %> — <% end %>AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> <%= @page.head %> @@ -24,7 +24,7 @@ </nav> </header> <article> - <% if @page.tags.count > 0 %><p>Tags: <%= @page.tags.join(' ') %></p><% end %> + <% if @page.tags.count > 0 %><p>Tags: <% @page.tags.each do |t| %><%= t.html %><% end %></p><% end %> <% if @page.showtitle %><h1 class=title><%= @page.title %></h1><% end %> <%= @page.content %> </article> diff --git a/bin/util.rb b/bin/util.rb index 3ded48e..7b4805f 100644 --- a/bin/util.rb +++ b/bin/util.rb @@ -17,6 +17,30 @@ $person_emails = { "Andrew Murrell" => "ImFromNASA@gmail.com", } +$tag_names = { + "DM" => "DMing Resource", + "ES" => "Essay", + "FF" => "Flash Fiction", + "HB" => "Homebrew", + "SS" => "Short Story", + "WP" => "WIP", +} + +class Tag + def initialize(abbr) + @abbr = abbr + end + def abbr + @abbr + end + def name + $tag_names[@abbr] + end + def html + return "<a class=\"tag #{abbr}\" href=\"/tags/#{abbr}.html\">#{name}</a>" + end +end + class Person def initialize(name) @name = name @@ -94,7 +118,7 @@ class Page def slug ; @slug ||= infile.sub(/\..*$/,'').sub(/^.*\//,'') ; end def content ; @content ||= pandoc.to('html5 '+(pandoc['pandoc_flags']||'')) ; end def head ; @head ||= pandoc['html_head_extra'] ; end - def tags ; @tags ||= (pandoc['tags'] || '').split ; end + def tags ; @tags ||= (pandoc['tags'] || '').split.map{|tag|Tag.new(tag)} ; end def published if @published.nil? diff --git a/out/Andrew.html b/out/Andrew.html index 3c6df3d..7a7f972 100644 --- a/out/Andrew.html +++ b/out/Andrew.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title>Hello Internet Person!</title> + <title>Hello Internet Person! — AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> diff --git a/out/DND/PsionicSchools.html b/out/DND/PsionicSchools.html index 0f8d875..9b13bad 100644 --- a/out/DND/PsionicSchools.html +++ b/out/DND/PsionicSchools.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title>Schools of Psionics</title> + <title>Schools of Psionics — AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> <link rel="stylesheet" href="DND.css"> @@ -24,7 +24,7 @@ </nav> </header> <article> - <p>Tags: ES HB</p> + <p>Tags: <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a></p> <h1 class=title>Schools of Psionics</h1> <p>From what I've seen, the most recent few 5e Unearthed Arcana dealing with "Psionics and the Mystic" have been getting somewhat mixed reviews. I don't think this is because of the mechanics--or rather not COMPLETELY because of the mechanics. Mechanics for psionics have always been weird, and the 5e style is good for D&D, so maintaining that is good and won't get any gripes from me.</p> <p>But I think that no matter what purely mechanical tweaks the UA team has planned for the Mystic, the general lukewarm reception isn't going to change unless we get something else squared away first. Something a little deeper--something that helps us grasp Psionics in the same way we grasp Magic: with a complete and intuitive system.</p> diff --git a/out/DND/Psionist.html b/out/DND/Psionist.html index 5dc00f1..556928d 100644 --- a/out/DND/Psionist.html +++ b/out/DND/Psionist.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title>Psionist</title> + <title>Psionist — AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> <link rel=stylesheet href=DND.css> @@ -24,7 +24,7 @@ </nav> </header> <article> - <p>Tags: ES HB</p> + <p>Tags: <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a></p> <h1 class=title>Psionist</h1> <div id="table-of-contents"> <h2> diff --git a/out/DND/SpellGauntlet.html b/out/DND/SpellGauntlet.html index b1ae64b..1279f62 100644 --- a/out/DND/SpellGauntlet.html +++ b/out/DND/SpellGauntlet.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title>Spell Gauntlet: Practical Spellcasting</title> + <title>Spell Gauntlet: Practical Spellcasting — AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> <link rel="stylesheet" href="DND.css"> @@ -24,7 +24,7 @@ </nav> </header> <article> - <p>Tags: FF SS WP</p> + <p>Tags: <a class="tag FF" href="/tags/FF.html">Flash Fiction</a><a class="tag SS" href="/tags/SS.html">Short Story</a><a class="tag WP" href="/tags/WP.html">WIP</a></p> <h1 class=title>Spell Gauntlet: Practical Spellcasting</h1> <h1 id="teleport">Teleport</h1> <h2 id="wizard---ft.-ula-mindis">Wizard - ft. Ula Mindis</h2> diff --git a/out/DND/Tastavi.html b/out/DND/Tastavi.html index 45adbbe..688887b 100644 --- a/out/DND/Tastavi.html +++ b/out/DND/Tastavi.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title>Tastavi D'Maelnor of Llolethane</title> + <title>Tastavi D'Maelnor of Llolethane — AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> <link rel=stylesheet href=DND.css> @@ -24,7 +24,7 @@ </nav> </header> <article> - <p>Tags: SS</p> + <p>Tags: <a class="tag SS" href="/tags/SS.html">Short Story</a></p> <h1 class=title>Tastavi D'Maelnor of Llolethane</h1> <p> When I DM, I try to allow players to have as many options for character creation as I can. Usually, this manifests in pretty interesting, but stable, characters. And other times… you get Tastavi. diff --git a/out/DND/index.html b/out/DND/index.html index e39f013..a407f1b 100644 --- a/out/DND/index.html +++ b/out/DND/index.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title>DND</title> + <title>DND — AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> @@ -27,15 +27,15 @@ <h1 class=title>DND</h1> <ul> -<li><time>2016-12-31</time> - <a href="/DND/PsionicSchools.html">Schools of Psionics</a> (last updated <time>2016-12-31</time>)</li> -<li><time>2016-12-31</time> - <a href="/DND/SpellGauntlet.html">Spell Gauntlet: Practical Spellcasting</a> (last updated <time>2016-12-31</time>)</li> -<li><time>2016-08-30</time> - <a href="/DND/Tastavi.html">Tastavi D'Maelnor of Llolethane</a> (last updated <time>2016-08-30</time>)</li> -<li><time>2016-07-16</time> - <a href="/DND/Psionist.html">Psionist</a> (last updated <time>2016-07-16</time>)</li> +<li><time>2016-12-31</time> - <a href="/DND/PsionicSchools.html">Schools of Psionics</a> <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a></li> +<li><time>2016-12-31</time> - <a href="/DND/SpellGauntlet.html">Spell Gauntlet: Practical Spellcasting</a> <a class="tag FF" href="/tags/FF.html">Flash Fiction</a><a class="tag SS" href="/tags/SS.html">Short Story</a><a class="tag WP" href="/tags/WP.html">WIP</a></li> +<li><time>2016-08-30</time> - <a href="/DND/Tastavi.html">Tastavi D'Maelnor of Llolethane</a> <a class="tag SS" href="/tags/SS.html">Short Story</a></li> +<li><time>2016-07-16</time> - <a href="/DND/Psionist.html">Psionist</a> <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a></li> </ul> </article> <footer> - <p>The content of this page is Copyright © <a href="mailto:ImFromNASA@gmail.com">Andrew Murrell</a>.</p> + <p>The content of this page is Copyright © 2017 <a href="mailto:ImFromNASA@gmail.com">Andrew Murrell</a>.</p> <p>This page is licensed under the <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA-3.0</a> license.</p> <p>Page source: <a href="index.md">index.md</a></p> <p>Website source: <a href="https://git.andrewdm.me/www.git">www.git</a></p> diff --git a/out/DND/index.md b/out/DND/index.md index 3c704d9..664b78b 100644 --- a/out/DND/index.md +++ b/out/DND/index.md @@ -3,7 +3,7 @@ title: "DND" --- - * <time>2016-12-31</time> - [Schools of Psionics](/DND/PsionicSchools.html) (last updated <time>2016-12-31</time>) - * <time>2016-12-31</time> - [Spell Gauntlet: Practical Spellcasting](/DND/SpellGauntlet.html) (last updated <time>2016-12-31</time>) - * <time>2016-08-30</time> - [Tastavi D'Maelnor of Llolethane](/DND/Tastavi.html) (last updated <time>2016-08-30</time>) - * <time>2016-07-16</time> - [Psionist](/DND/Psionist.html) (last updated <time>2016-07-16</time>) + * <time>2016-12-31</time> - [Schools of Psionics](/DND/PsionicSchools.html) <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a> + * <time>2016-12-31</time> - [Spell Gauntlet: Practical Spellcasting](/DND/SpellGauntlet.html) <a class="tag FF" href="/tags/FF.html">Flash Fiction</a><a class="tag SS" href="/tags/SS.html">Short Story</a><a class="tag WP" href="/tags/WP.html">WIP</a> + * <time>2016-08-30</time> - [Tastavi D'Maelnor of Llolethane](/DND/Tastavi.html) <a class="tag SS" href="/tags/SS.html">Short Story</a> + * <time>2016-07-16</time> - [Psionist](/DND/Psionist.html) <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a> diff --git a/out/index.html b/out/index.html index 5d9c9ae..8f29ac6 100644 --- a/out/index.html +++ b/out/index.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8"> - <title></title> + <title>AndrewDM</title> <link rel="stylesheet" href="/main.css"> <link rel="alternate" type="application/atom+xml" href="./index.atom" name="web log entries"/> @@ -27,11 +27,11 @@ <h1 class=title></h1> <ul> -<li><time>2016-12-31</time> - <a href="/DND/PsionicSchools.html">Schools of Psionics</a> (last updated <time>2016-12-31</time>)</li> -<li><time>2016-12-31</time> - <a href="/DND/SpellGauntlet.html">Spell Gauntlet: Practical Spellcasting</a> (last updated <time>2016-12-31</time>)</li> -<li><time>2016-12-31</time> - <a href="/Andrew.html">Hello Internet Person!</a> (last updated <time>2016-12-31</time>)</li> -<li><time>2016-08-30</time> - <a href="/DND/Tastavi.html">Tastavi D'Maelnor of Llolethane</a> (last updated <time>2016-08-30</time>)</li> -<li><time>2016-07-16</time> - <a href="/DND/Psionist.html">Psionist</a> (last updated <time>2016-07-16</time>)</li> +<li><time>2016-12-31</time> - <a href="/DND/PsionicSchools.html">Schools of Psionics</a> <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a></li> +<li><time>2016-12-31</time> - <a href="/DND/SpellGauntlet.html">Spell Gauntlet: Practical Spellcasting</a> <a class="tag FF" href="/tags/FF.html">Flash Fiction</a><a class="tag SS" href="/tags/SS.html">Short Story</a><a class="tag WP" href="/tags/WP.html">WIP</a></li> +<li><time>2016-12-31</time> - <a href="/Andrew.html">Hello Internet Person!</a></li> +<li><time>2016-08-30</time> - <a href="/DND/Tastavi.html">Tastavi D'Maelnor of Llolethane</a> <a class="tag SS" href="/tags/SS.html">Short Story</a></li> +<li><time>2016-07-16</time> - <a href="/DND/Psionist.html">Psionist</a> <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a></li> </ul> </article> diff --git a/out/index.md b/out/index.md index e11c539..7474e57 100644 --- a/out/index.md +++ b/out/index.md @@ -3,8 +3,8 @@ title: "" --- - * <time>2016-12-31</time> - [Schools of Psionics](/DND/PsionicSchools.html) (last updated <time>2016-12-31</time>) - * <time>2016-12-31</time> - [Spell Gauntlet: Practical Spellcasting](/DND/SpellGauntlet.html) (last updated <time>2016-12-31</time>) - * <time>2016-12-31</time> - [Hello Internet Person!](/Andrew.html) (last updated <time>2016-12-31</time>) - * <time>2016-08-30</time> - [Tastavi D'Maelnor of Llolethane](/DND/Tastavi.html) (last updated <time>2016-08-30</time>) - * <time>2016-07-16</time> - [Psionist](/DND/Psionist.html) (last updated <time>2016-07-16</time>) + * <time>2016-12-31</time> - [Schools of Psionics](/DND/PsionicSchools.html) <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a> + * <time>2016-12-31</time> - [Spell Gauntlet: Practical Spellcasting](/DND/SpellGauntlet.html) <a class="tag FF" href="/tags/FF.html">Flash Fiction</a><a class="tag SS" href="/tags/SS.html">Short Story</a><a class="tag WP" href="/tags/WP.html">WIP</a> + * <time>2016-12-31</time> - [Hello Internet Person!](/Andrew.html) + * <time>2016-08-30</time> - [Tastavi D'Maelnor of Llolethane](/DND/Tastavi.html) <a class="tag SS" href="/tags/SS.html">Short Story</a> + * <time>2016-07-16</time> - [Psionist](/DND/Psionist.html) <a class="tag ES" href="/tags/ES.html">Essay</a><a class="tag HB" href="/tags/HB.html">Homebrew</a> diff --git a/out/main.css b/out/main.css index e6d84f7..5e13ff4 100644 --- a/out/main.css +++ b/out/main.css @@ -85,17 +85,17 @@ article { text-align: center; text-decoration: none; color: white; } - article .FF { + article .tag.FF { background: FireBrick; } - article .SS { + article .tag.SS { background: SeaGreen; } - article .ES { + article .tag.ES { background: DarkViolet; } - article .HB { + article .tag.HB { background: DimGray; } - article .DM { + article .tag.DM { background: DarkSlateGray; } - article .WP { + article .tag.WP { background: GhostWhite; color: black; } diff --git a/src/main.scss b/src/main.scss index 9a89e6d..4f5efc9 100644 --- a/src/main.scss +++ b/src/main.scss @@ -120,13 +120,12 @@ article { text-decoration: none; color: white; } - - .FF { background: FireBrick; } - .SS { background: SeaGreen; } - .ES { background: DarkViolet; } - .HB { background: DimGray; } - .DM { background: DarkSlateGray; } - .WP { background: GhostWhite; color: black; } + .tag.FF { background: FireBrick; } + .tag.SS { background: SeaGreen; } + .tag.ES { background: DarkViolet; } + .tag.HB { background: DimGray; } + .tag.DM { background: DarkSlateGray; } + .tag.WP { background: GhostWhite; color: black; } border-bottom: solid 1px #333333; } diff --git a/src/tags.txt b/src/tags.txt deleted file mode 100644 index ee5d25c..0000000 --- a/src/tags.txt +++ /dev/null @@ -1,6 +0,0 @@ -DM DMing Resource -ES Essay -FF Flash Fiction -HB Homebrew -SS Short Story -WP WIP |