Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--exampleSite/Makefile4
-rw-r--r--exampleSite/content/_index.md2
-rwxr-xr-xexampleSite/static/assets/favicon.pngbin0 -> 9313 bytes
-rw-r--r--layouts/partials/header.html4
-rw-r--r--layouts/partials/preview-post.html4
-rwxr-xr-xstatic/assets/favicon.pngbin0 -> 9313 bytes
7 files changed, 11 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 67856a9..f275e1c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.env
commit.txt
*tmp*
diff --git a/exampleSite/Makefile b/exampleSite/Makefile
new file mode 100644
index 0000000..5dfdfa2
--- /dev/null
+++ b/exampleSite/Makefile
@@ -0,0 +1,4 @@
+.PHONY: deploy
+deploy:
+ ssh ${USER}@${HOST} 'mkdir -p ${DEPLOY_PATH}'
+ hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DEPLOY_PATH}
diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md
index ba5e0fb..da08b3c 100644
--- a/exampleSite/content/_index.md
+++ b/exampleSite/content/_index.md
@@ -6,7 +6,7 @@
}
-This is an example site demonstrating the [Basic Web Theme](https://basicwebtheme.com).
+This is an example site demonstrating the [Basic Web Theme](https://www.basicwebtheme.com).
- Learn more [about this site](/about/).
- View [all posts](/posts/)
diff --git a/exampleSite/static/assets/favicon.png b/exampleSite/static/assets/favicon.png
new file mode 100755
index 0000000..d41c227
--- /dev/null
+++ b/exampleSite/static/assets/favicon.png
Binary files differ
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 0d39613..a92a04d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -5,8 +5,10 @@
<img src="{{ .Params.HeaderImage }}" />
{{ else if ($.Site.Params.HeaderImage) }}
<img src="{{ $.Site.Params.HeaderImage }}" />
- {{ else }}
+ {{ else if ($.Site.Params.HeaderText) }}
<h1>{{ $.Site.Params.HeaderText }}</h1>
+ {{ else }}
+ <span id="some kind of header should go here"></span>
{{ end }}
</a>
<hr />
diff --git a/layouts/partials/preview-post.html b/layouts/partials/preview-post.html
index 2de519a..3571a7b 100644
--- a/layouts/partials/preview-post.html
+++ b/layouts/partials/preview-post.html
@@ -9,7 +9,7 @@
<h2>{{ .page.Title }}</h2>
-<a href={{ .Permalink }}>
+<a href={{ .page.Permalink }}>
<em>{{ .page.PublishDate.Format "January 2, 2006" }}</em>
</a>
@@ -17,7 +17,7 @@
<!-- link with NO publish date -->
-<a href={{ .Permalink }}>
+<a href={{ .page.Permalink }}>
<h2>{{ .page.Title }}</h2>
</a>
diff --git a/static/assets/favicon.png b/static/assets/favicon.png
new file mode 100755
index 0000000..d41c227
--- /dev/null
+++ b/static/assets/favicon.png
Binary files differ