aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2020-05-23 07:56:12 -0700
committerMax Resnick <max@ofmax.li>2020-06-22 22:37:17 -0700
commit85e7eaa3a1c9024c02cc9a63744cdfb144cc3737 (patch)
treea44855abcf5424126c54ee636463dc866e558561 /templates
parent4e77ad5762539d8f9edf40d2668a998c38e834d3 (diff)
downloadiserv-85e7eaa3a1c9024c02cc9a63744cdfb144cc3737.tar.gz
adds tmpl, css, and fileserver
Diffstat (limited to '')
-rw-r--r--templates/pages/image.tmpl12
-rw-r--r--templates/parts/_layout.tmpl30
2 files changed, 42 insertions, 0 deletions
diff --git a/templates/pages/image.tmpl b/templates/pages/image.tmpl
new file mode 100644
index 0000000..4c9b7b0
--- /dev/null
+++ b/templates/pages/image.tmpl
@@ -0,0 +1,12 @@
+{{ define "content" }}
+<body>
+ <div>
+ <h3>Image</h3>
+ </div>
+ <div>
+ <figure>
+ <img src="http://localhost:8080{{ .ImageUrl }}">
+ </figure>
+ </div>
+</body>
+{{ end }}
diff --git a/templates/parts/_layout.tmpl b/templates/parts/_layout.tmpl
new file mode 100644
index 0000000..4098a30
--- /dev/null
+++ b/templates/parts/_layout.tmpl
@@ -0,0 +1,30 @@
+{{ define "base" }}
+<!DOCTYPE html>
+<html lang="en">
+ <!-- Basic Page Needs
+ –––––––––––––––––––––––––––––––––––––––––––––––––– -->
+ <meta charset="utf-8">
+ <title>iserv - an image site</title>
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <!-- Mobile Specific Metas
+ –––––––––––––––––––––––––––––––––––––––––––––––––– -->
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <!-- FONT
+ <link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
+
+ –––––––––––––––––––––––––––––––––––––––––––––––––– -->
+ <!-- CSS
+ <link rel="stylesheet" href="css/normalize.css">
+ –––––––––––––––––––––––––––––––––––––––––––––––––– -->
+ <link rel="stylesheet" href="/static/css/style.css">
+
+ <!-- Favicon
+ –––––––––––––––––––––––––––––––––––––––––––––––––– -->
+ <!-- <link rel="icon" type="image/png" href="images/favicon.png"> -->
+
+</head>
+{{ template "content" . }}
+{{ end }}