diff options
author | Murali Mohan Rath <mmrath@gmail.com> | 2015-10-30 13:49:01 +0300 |
---|---|---|
committer | Murali Mohan Rath <mmrath@gmail.com> | 2015-10-30 13:49:01 +0300 |
commit | ac13b26266cfcc630acfc19a65d14da0a878d045 (patch) | |
tree | ba173b251d2c81a600b032d4b5604024c5632b08 | |
parent | 63f9d1573a9910ba7057ed829d8b3a34159611f6 (diff) |
more changes to work with bootstrap
-rw-r--r-- | layouts/data/FootMenu.toml | 6 | ||||
-rw-r--r-- | layouts/data/Menu.toml | 14 | ||||
-rw-r--r-- | layouts/partials/about-content.html | 60 | ||||
-rw-r--r-- | layouts/partials/homepage.html | 2 | ||||
-rw-r--r-- | layouts/partials/modules/page/tags.html | 2 | ||||
-rw-r--r-- | layouts/section/code.html | 2 |
6 files changed, 83 insertions, 3 deletions
diff --git a/layouts/data/FootMenu.toml b/layouts/data/FootMenu.toml new file mode 100644 index 0000000..2bda0a9 --- /dev/null +++ b/layouts/data/FootMenu.toml @@ -0,0 +1,6 @@ +[license] + Name = "license" + URL = "/license" +[disclaimer] + Name = "Disclaimer" + URL = "disclaimer" diff --git a/layouts/data/Menu.toml b/layouts/data/Menu.toml new file mode 100644 index 0000000..b0809de --- /dev/null +++ b/layouts/data/Menu.toml @@ -0,0 +1,14 @@ +[posts] + Name = "Posts" + Title = "Show list of posts" + URL = "/post" + +[tags] + Name = "Tags" + Title = "Show list of tags" + URL = "/tags" + +[about] + Name = "About" + IconClass = "fa-info-circle" + URL = "/about" diff --git a/layouts/partials/about-content.html b/layouts/partials/about-content.html new file mode 100644 index 0000000..c19ab7b --- /dev/null +++ b/layouts/partials/about-content.html @@ -0,0 +1,60 @@ +{{ with .Site.Data.Menu }} +<div class="container"> + <div class="row"> + <div class=" col-lg-offset-3 col-lg-6"> + <div class="panel panel-default"> + <div class="panel-body"> + <div class="row"> + <div class="col-lg-12"> + <div class="row"> + <div class="col-sm-offset-3 col-sm-6 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6"> + <img class="img-square img-responsive" + src="{{ "/assets/images/" | absURL }}profile_pic.jpeg"> + </div> + </div> + </div> + </div> + <div class="row"> + <div class="col-lg-12"> + <div class="row"> + <div class="centered-text col-sm-offset-3 col-sm-6 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6"> + <div itemscope itemtype="http://schema.org/Person" > + <h2> <span itemprop="name">{{ .name }}</span></h2> + <p itemprop="jobTitle">Developer</p> + <p><span itemprop="affiliation">{{.company}}</span></p> + <p> + <i class="fa fa-map-marker"></i> <span itemprop="addressRegion">{{.location}}</span> + </p> + <p itemprop="email"> <i class="fa fa-envelope"> </i> <a href="mailto:{{.email}}">{{.email}}</a> </p> + </div> + </div> + </div> + </div> + {% if .bio %} + <div class="col-lg-12 centered-text"> + {{.bio}} + </div> + {% endif %} + </div> + </div> + <div class="panel-footer"> + <div class="row"> + <div id="social-links" class=" col-lg-12"> + <div class="row"> + {% range .social %} + <div class="col-xs-6 col-sm-3 col-md-2 col-lg-3 social-btn-holder"> + <a title="{{ .title }}" class="btn btn-social btn-block {{ .btnClass }}" + target="_BLANK" href="{{ .url }}"> + <i class="fa {{.logo}}"></i> {{ .text}} + </a> + </div> + {% endfor %} + </div> + </div> + </div> + </div> + </div> + </div> + </div> +</div> +{{ end }} diff --git a/layouts/partials/homepage.html b/layouts/partials/homepage.html index 955012a..8d5205a 100644 --- a/layouts/partials/homepage.html +++ b/layouts/partials/homepage.html @@ -1,5 +1,5 @@ <div class="container"> - {{ if isset .Site.Params "showBlogHeader" }} + {{ if isset .Site.Params.showBlogHeader true }} <header> {{ partial "bloc/content/h1-title" . }} {{ partial "bloc/content/lastupdate" . }} diff --git a/layouts/partials/modules/page/tags.html b/layouts/partials/modules/page/tags.html index 7518536..938e215 100644 --- a/layouts/partials/modules/page/tags.html +++ b/layouts/partials/modules/page/tags.html @@ -1,4 +1,4 @@ -<i class="fa fa-tag"></i> +<i class="fa fa-tags"></i> {{ range .Params.tags }} <a href="{{ "/tags/" | absURL }}{{ . | urlize }}" class="label label-primary">{{ . }}</a> {{ end }} diff --git a/layouts/section/code.html b/layouts/section/code.html index 1170e34..a0b308a 100644 --- a/layouts/section/code.html +++ b/layouts/section/code.html @@ -1,6 +1,6 @@ {{ partial "head" . }} <section id="main-content" class="container main_content section"> - <header class="container"> + <header> {{ partial "bloc/content/h1-title" . }} </header> {{ range $index, .Paginator.Pages.ByTitle }} |