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

github.com/vividvilla/ezhil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek R <vividvilla@gmail.com>2019-09-19 21:33:06 +0300
committerGitHub <noreply@github.com>2019-09-19 21:33:06 +0300
commit1a6e76206c4e5af8f7b75ab8e6f2fa5c77d408c0 (patch)
treefab7b535a761ab3d171aea823d56295e05a3ac75
parent34844c3b3d4845d9614577c256decb58f4a49fc8 (diff)
parent5f7e3184bd064b452c2628022ccdbbe49c18f35a (diff)
Merge pull request #15 from vividvilla/fix-media
fix: image and video getting scaled to 100% width
-rw-r--r--exampleSite/content/posts/post-5.md1
-rw-r--r--exampleSite/content/posts/post-6.md32
-rw-r--r--layouts/partials/header.html2
-rw-r--r--static/css/main.css28
4 files changed, 58 insertions, 5 deletions
diff --git a/exampleSite/content/posts/post-5.md b/exampleSite/content/posts/post-5.md
index 16c8a7f..8623c19 100644
--- a/exampleSite/content/posts/post-5.md
+++ b/exampleSite/content/posts/post-5.md
@@ -5,7 +5,6 @@ date: 2018-03-18T12:13:38+05:30
Lid est laborum et dolorum fuga. Et harum quidem rerum facilis est et expeditasi distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihilse impedit quo minus id quod amets untra dolor amet sad. Sed ut perspser iciatis unde omnis iste natus error sit voluptatem accusantium doloremque laste. Dolores sadips ipsums sits.
-
# Heading 1
Lid est laborum et dolorum fuga. Et harum quidem rerum facilis est et expeditasi distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihilse impedit quo minus id quod amets untra dolor amet sad. Sed ut perspser iciatis unde omnis iste natus error sit voluptatem accusantium doloremque laste. Dolores sadips ipsums sits.
diff --git a/exampleSite/content/posts/post-6.md b/exampleSite/content/posts/post-6.md
new file mode 100644
index 0000000..f418795
--- /dev/null
+++ b/exampleSite/content/posts/post-6.md
@@ -0,0 +1,32 @@
+---
+title: "Hugo shortcodes"
+date: 2018-03-18T12:13:36+05:30
+description: Here is a demo of all shortcodes available in Hugo.
+---
+
+## Images
+
+{{< figure src="https://images.unsplash.com/photo-1560032779-0a8809186efd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80" title="Dave Herring" >}}
+
+{{< figure src="https://images.unsplash.com/photo-1560032779-0a8809186efd?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=80" title="Dave Herring" >}}
+
+
+## Github Gist
+
+{{< gist spf13 7896402 >}}
+
+## Youtube video
+
+{{< youtube w7Ft2ymGmfc >}}
+
+## Tweet
+
+{{< tweet 877500564405444608 >}}
+
+## Vimeo
+
+{{< vimeo id="146022717" >}}
+
+## Instagram
+
+{{< instagram BWNjjyYFxVx >}}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 43c7770..273c6cc 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,7 @@
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- if .IsHome -}}
- <title>{{ $siteTitle }} {{- if isset .Site.Params "subtitle" -}} - {{ .Site.Params.Subtitle }}{{- end -}} </title>
+ <title>{{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}- {{ .Site.Params.Subtitle }}{{ end }} </title>
{{- else -}}
<title>{{ $title }} - {{ $siteTitle }}</title>
{{- end -}}
diff --git a/static/css/main.css b/static/css/main.css
index 7cd7d52..c0f2453 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -34,9 +34,19 @@ hr {
padding: 0
}
-audio,canvas,img,video {
- width: 100%;
- vertical-align: middle
+img {
+ margin: 10px auto 10px auto;
+ max-width: 100%;
+ display: block;
+}
+
+a img {
+ border:none;
+}
+
+figure {
+ margin: 0;
+ text-align: center;
}
fieldset {
@@ -110,6 +120,18 @@ h6 {
font-size: .9rem
}
+.align-center {
+ text-align: center;
+}
+
+.align-left {
+ text-align: left;
+}
+
+.align-right {
+ text-align: right;
+}
+
.container {
max-width: 800px
}