css fix
This commit is contained in:
5
Makefile
5
Makefile
@@ -5,6 +5,8 @@ endif
|
|||||||
|
|
||||||
PAGES := $(sort $(wildcard pages/*.html)) pages.yaml
|
PAGES := $(sort $(wildcard pages/*.html)) pages.yaml
|
||||||
TEMPLATES := $(sort $(wildcard templates/*.gohtml))
|
TEMPLATES := $(sort $(wildcard templates/*.gohtml))
|
||||||
|
ASSETS_DIR := assets
|
||||||
|
ASSETS_FILES := $(shell find $(ASSETS_DIR) -type f 2>/dev/null)
|
||||||
|
|
||||||
OUT_DIR := _dist
|
OUT_DIR := _dist
|
||||||
PAGES_DIR := pages
|
PAGES_DIR := pages
|
||||||
@@ -14,9 +16,10 @@ TEMPLATES_DIR := templates
|
|||||||
|
|
||||||
build: $(OUT_DIR)/index.stamp
|
build: $(OUT_DIR)/index.stamp
|
||||||
|
|
||||||
$(OUT_DIR)/index.stamp: $(PAGES) $(TEMPLATES) cmd/build/main.go
|
$(OUT_DIR)/index.stamp: $(PAGES) $(TEMPLATES) $(ASSETS_FILES) cmd/build/main.go
|
||||||
@$(GO) run ./cmd/build --pages $(PAGES_DIR) --out $(OUT_DIR) --templates $(TEMPLATES_DIR) --order pages.yaml
|
@$(GO) run ./cmd/build --pages $(PAGES_DIR) --out $(OUT_DIR) --templates $(TEMPLATES_DIR) --order pages.yaml
|
||||||
@mkdir -p $(OUT_DIR)
|
@mkdir -p $(OUT_DIR)
|
||||||
|
@if [ -d $(ASSETS_DIR) ]; then rm -rf $(OUT_DIR)/$(ASSETS_DIR); cp -r $(ASSETS_DIR) $(OUT_DIR)/; fi
|
||||||
@date +%s > $(OUT_DIR)/index.stamp
|
@date +%s > $(OUT_DIR)/index.stamp
|
||||||
|
|
||||||
serve: build
|
serve: build
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link rel="stylesheet" href="css/style.css" />
|
<link rel="stylesheet" href="assets/css/style.css" />
|
||||||
</head>
|
</head>
|
||||||
<body {{ .PageSizeAttr }}>
|
<body {{ .PageSizeAttr }}>
|
||||||
<div id="page">{{ .Content }}</div>
|
<div id="page">{{ .Content }}</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>All Pages</title>
|
<title>All Pages</title>
|
||||||
<link rel="stylesheet" href="css/style.css" />
|
<link rel="stylesheet" href="assets/css/style.css" />
|
||||||
<style>
|
<style>
|
||||||
html, body { margin: 0; padding: 0; height: 100%; }
|
html, body { margin: 0; padding: 0; height: 100%; }
|
||||||
body { background: #eeeeee; }
|
body { background: #eeeeee; }
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<div class="main">
|
<div class="main">
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<div class="thumb">
|
<div class="thumb">
|
||||||
<div class="label">{{ .Name }}</div>
|
<a class="label" href="{{ .Href }}">{{ .Name }}</a>
|
||||||
<iframe src="{{ .Href }}" loading="lazy"></iframe>
|
<iframe src="{{ .Href }}" loading="lazy"></iframe>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Print</title>
|
<title>Print</title>
|
||||||
<link rel="stylesheet" href="css/style.css" />
|
<link rel="stylesheet" href="assets/css/style.css" />
|
||||||
<style>
|
<style>
|
||||||
/* Ensure a clean print with no gaps between pages */
|
/* Ensure a clean print with no gaps between pages */
|
||||||
@media screen { body { background: #eeeeee; } }
|
@media screen { body { background: #eeeeee; } }
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Print 2-Up</title>
|
<title>Print 2-Up</title>
|
||||||
<link rel="stylesheet" href="css/style.css" />
|
<link rel="stylesheet" href="assets/css/style.css" />
|
||||||
<style>
|
<style>
|
||||||
/* Letter page with two half-letter pages laid out horizontally */
|
/* Letter page with two half-letter pages laid out horizontally */
|
||||||
/* Do NOT constrain the whole document to a single sheet */
|
/* Do NOT constrain the whole document to a single sheet */
|
||||||
|
|||||||
Reference in New Issue
Block a user