summaryrefslogtreecommitdiffhomepage
path: root/resources/pug/include
diff options
context:
space:
mode:
authorCamil Staps2017-03-18 16:25:19 +0100
committerCamil Staps2017-03-18 16:25:19 +0100
commit279e8273d381e5b67920e6bf47405dba18c90a35 (patch)
treed0fe6675b2e5465bc9baea65f1cd6fc2a94ba8a5 /resources/pug/include
parentAdded note about bands (diff)
Move to pug instead of jade
Diffstat (limited to 'resources/pug/include')
-rw-r--r--resources/pug/include/foot.pug0
-rw-r--r--resources/pug/include/head.pug10
-rw-r--r--resources/pug/include/layout-ham.pug9
-rw-r--r--resources/pug/include/layout-sidebar.pug27
-rw-r--r--resources/pug/include/layout.pug27
-rw-r--r--resources/pug/include/mixins.pug3
6 files changed, 76 insertions, 0 deletions
diff --git a/resources/pug/include/foot.pug b/resources/pug/include/foot.pug
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/resources/pug/include/foot.pug
diff --git a/resources/pug/include/head.pug b/resources/pug/include/head.pug
new file mode 100644
index 0000000..7099c24
--- /dev/null
+++ b/resources/pug/include/head.pug
@@ -0,0 +1,10 @@
+title
+ block titleContainer
+ block title
+ | Camil Staps
+
+meta(charset='utf-8')
+meta(http-equiv='X-UA-Compatible', content='IE=edge')
+meta(name='viewport', content='width=device-width, initial-scale=1')
+
+link(rel='stylesheet', href='/assets/css/style.css', type='text/css')
diff --git a/resources/pug/include/layout-ham.pug b/resources/pug/include/layout-ham.pug
new file mode 100644
index 0000000..ab080cf
--- /dev/null
+++ b/resources/pug/include/layout-ham.pug
@@ -0,0 +1,9 @@
+extends layout-sidebar.pug
+
+block title
+ | PD7LOL
+
+block append menu
+ - var base_url = '/ham/'
+ +menuItem('home' == page, base_url, 'Home')
+ +menuItem('cw-decoder' == page, base_url + 'cw-decoder.html', 'CW Decoder')
diff --git a/resources/pug/include/layout-sidebar.pug b/resources/pug/include/layout-sidebar.pug
new file mode 100644
index 0000000..bdbec70
--- /dev/null
+++ b/resources/pug/include/layout-sidebar.pug
@@ -0,0 +1,27 @@
+extends layout.pug
+
+block append titleContainer
+ | –
+ block subtitle
+
+block content
+ div.row
+ div.col-lg-3.col-md-4
+ ul.nav.nav-pills.nav-stacked
+ block menu
+ mixin menuItem(active, link, text)
+ li(role='presentation', class=active ? 'active' : '')
+ a(href=link)= text
+
+
+ div.col-lg-7.col-md-6
+ h3(style={'margin-top': 0})
+ block subtitle
+ |  
+ small
+ block subtitleDate
+ div.col-lg-2.col-md-2.text-right
+ block subtitle-right
+
+ div.col-lg-9.col-md-8.text-justify
+ block page
diff --git a/resources/pug/include/layout.pug b/resources/pug/include/layout.pug
new file mode 100644
index 0000000..6a89533
--- /dev/null
+++ b/resources/pug/include/layout.pug
@@ -0,0 +1,27 @@
+include /mixins.pug
+
+doctype html
+html(lang="en")
+ head
+ include head.pug
+
+ body
+ .container
+ h1
+ block titleContainer
+ block title
+ | Camil Staps
+ hr
+
+ block content
+
+ - var date = new Date()
+ footer.footer
+ hr
+ p.text-center
+ | Copyright © Camil Staps #{date.getFullYear()}  • 
+ = "Last updated " + date.toDateString()
+
+ include foot.pug
+
+ block js
diff --git a/resources/pug/include/mixins.pug b/resources/pug/include/mixins.pug
new file mode 100644
index 0000000..14c78f3
--- /dev/null
+++ b/resources/pug/include/mixins.pug
@@ -0,0 +1,3 @@
+mixin githubIconLink(repo)
+ a(href='https://github.com/' + repo, target='_blank', title='Source on GitHub')
+ img(src='/assets/img/github.png', alt='GitHub')