diff options
author | Tyler Kluszczynski <tylerkluszczynski@gmail.com> | 2019-02-21 10:00:06 +0300 |
---|---|---|
committer | Tyler Kluszczynski <tylerkluszczynski@gmail.com> | 2019-02-21 10:00:06 +0300 |
commit | 7031d73444a6ce1180fca867e85cfff177b87e9c (patch) | |
tree | 2e3d4e8865f86d77a4aee889b8f5eb9fcbbabd67 /layouts | |
parent | 8e97d84a1c23c75aeb4a7e843aaa37e683ff062d (diff) |
Numerous QOL Changes
* exampleSite/config.toml - changed default theme directory to
hugo-uilite
opposed to uilite.
* The user won't have to rename the
theme in /themes or change config.toml to 'uilite' when running an
example site.
* Added support for awesome fas icons (opposed to only fab).
This is useful if a user wants to have a mail icon for example.
**by default this creates a new envelope icon in the exampleSite
sidebar** can be removed in exampleSite/data/socialfas.json.
* New fas icons should be placed in exampleSite/data/socialfas.json.
* Fas icons are rendered after the fab icons.
* Added period after description in exampleSite/data/sidebar.json
* Added a newline after variable declaration in
layouts/partials/contact.html and layouts/partials/sidebar.html to match
with other html files.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/contact.html | 5 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 16 |
2 files changed, 15 insertions, 6 deletions
diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html index 306f4b3..97cb4ed 100644 --- a/layouts/partials/contact.html +++ b/layouts/partials/contact.html @@ -1,4 +1,5 @@ {{ $config := .Site.Data.config }} + <section id="contact" class="bg-light d-flex align-items-center" style="height: 100vh;"> <div class="container"> <h2 class="heading mb-3">Contact</h2> @@ -18,7 +19,7 @@ <input type="email" class="form-control" name="_replyto" placeholder="Email"> </div> </div> - + <div class="form-group"> <label>Message</label> <textarea placeholder="Message" name="message" class="form-control" rows="4"></textarea> @@ -26,4 +27,4 @@ <button type="submit" class="btn btn-dark">Submit</button> </form> </div> -</section>
\ No newline at end of file +</section> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 58e22a6..97c5c03 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,5 +1,7 @@ {{ $sidebar := .Site.Data.sidebar }} {{ $social := .Site.Data.social }} +{{ $socialfas := .Site.Data.socialfas}} + <section id="sidebar" class="sidebar d-flex align-items-center p-5"> <div class="main-info"> @@ -15,11 +17,17 @@ <i class="fab fa-{{ $key }}"></i> </a> {{ end }} - + + {{ range $key, $value := $socialfas }} + <a target="_blank" href="{{ $value }}"> + <i class="fas fa-{{ $key }}"></i> + </a> + {{ end }} + </div> - + <a href="#contact" class="btn btn-dark btn-lg">Contact</a> - + </div> -</section>
\ No newline at end of file +</section> |