changeset 143:d72812c1f03e

Added my photo to blog.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Tue, 16 Oct 2018 03:54:00 +0300
parents ff594940b315
children 64c65941a0b4
files Makefile index.tmpl main.css me-2017.jpg
diffstat 4 files changed, 21 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Oct 16 03:52:56 2018 +0300
+++ b/Makefile	Tue Oct 16 03:54:00 2018 +0300
@@ -28,6 +28,7 @@
 CSS_FILE := main.css
 JS_FILE := main.js
 ROBOT_FILE := robots.txt
+PHOTO_FILE := me-2017.jpg
 BASEURL := http://blog.defun.work
 
 OUT_DIR := ,
@@ -62,18 +63,24 @@
 # Dist targets.
 
 .PHONY: dist html
-dist html: $(patsubst %,$(OUT_DIR)/%,$(notdir $(CSS_FILE) $(JS_FILE) $(ROBOT_FILE)))
+dist html: $(patsubst %,$(OUT_DIR)/%,$(notdir $(CSS_FILE) $(JS_FILE) $(ROBOT_FILE) $(PHOTO_FILE)))
 	$(BLOG4U) --in=. --out=$(OUT_DIR) --cache=$(CACHE_FILE) --template=$(TMPL_DIR) --css=$(notdir $(CSS_FILE))  --js=$(notdir $(JS_FILE)) --baseurl=$(BASEURL) --title="Oleksandr Gavenko's blog"
 
 $(OUT_DIR)/$(notdir $(CSS_FILE)): $(CSS_FILE) | $(OUT_DIR)
 	cp  $< $@
 
+$(OUT_DIR)/$(notdir $(CSS_FILE)): $(CSS_FILE) | $(OUT_DIR)
+	cp  $< $@
+
 $(OUT_DIR)/$(notdir $(JS_FILE)): $(JS_FILE) | $(OUT_DIR)
 	cp  $< $@
 
 $(OUT_DIR)/$(notdir $(ROBOT_FILE)): $(ROBOT_FILE) | $(OUT_DIR)
 	cp  $< $@
 
+$(OUT_DIR)/$(notdir $(PHOTO_FILE)): $(PHOTO_FILE) | $(OUT_DIR)
+	cp  $< $@
+
 $(OUT_DIR):
 	mkdir $@
 
--- a/index.tmpl	Tue Oct 16 03:52:56 2018 +0300
+++ b/index.tmpl	Tue Oct 16 03:54:00 2018 +0300
@@ -21,6 +21,9 @@
   </section>
 
   <section id="blog-sidebar">
+    <section class="photo">
+      <img src="me-2017.jpg">
+    </section>
     <section class="feed">
       <h2>Feeds</h2>
       <a class="feed" href="feed-all.atom" class="feed">all</a>
--- a/main.css	Tue Oct 16 03:52:56 2018 +0300
+++ b/main.css	Tue Oct 16 03:54:00 2018 +0300
@@ -122,6 +122,16 @@
 #blog-sidebar h2 {
   font-size: 1.2rem;
 }
+#blog-sidebar > section.photo img {
+  margin-top: 1em;
+}
+#blog-sidebar > section.photo img {
+  max-width: 80%;
+  height: auto;
+  border-radius: 50%;
+  border: 1px solid hsl(0, 100%, 25%);
+  padding: 2px;
+}
 #blog-sidebar > section.tags > a {
   font-family: monospace;
 }
Binary file me-2017.jpg has changed