From 57813d72dd228e8386517091b586dba81d0bb03d Mon Sep 17 00:00:00 2001 From: Nathan Bergey Date: Sat, 26 Sep 2020 13:39:32 -0400 Subject: [PATCH] Add sounds page --- layout/_partial/index.ejs | 2 ++ layout/_partial/page.ejs | 6 ++++++ layout/page.ejs | 4 ++++ scripts/audio.js | 21 +++++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 layout/_partial/page.ejs create mode 100644 layout/page.ejs create mode 100644 scripts/audio.js diff --git a/layout/_partial/index.ejs b/layout/_partial/index.ejs index a29dbbe..a95c946 100644 --- a/layout/_partial/index.ejs +++ b/layout/_partial/index.ejs @@ -19,6 +19,8 @@ Follow me being weird online
  • git.natronics.org/natronics
  • +

    Beep Boop

    +

    I made a couple of sounds.

    Posts

    diff --git a/layout/_partial/page.ejs b/layout/_partial/page.ejs new file mode 100644 index 0000000..0cca613 --- /dev/null +++ b/layout/_partial/page.ejs @@ -0,0 +1,6 @@ +
    +
    +

    <%- page.title %>

    +
    + <%- page.content %> +
    diff --git a/layout/page.ejs b/layout/page.ejs new file mode 100644 index 0000000..780ec1f --- /dev/null +++ b/layout/page.ejs @@ -0,0 +1,4 @@ +<%- partial('_partial/root', { + title: page.title, + body: partial('_partial/page', {page: page}) +}) %> \ No newline at end of file diff --git a/scripts/audio.js b/scripts/audio.js new file mode 100644 index 0000000..21348c6 --- /dev/null +++ b/scripts/audio.js @@ -0,0 +1,21 @@ +hexo.extend.tag.register('audio', function(args) { + const file = args[0]; + const title = args[1]; + const date = args[2]; + const desc = args[3]; + return ` +
    +

    ${title}

    + ${date} +
    +
    ${desc}
    + +
    +
    `; +}, {ends: false});