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 | |
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.
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | exampleSite/data/sidebar.json | 4 | ||||
-rw-r--r-- | exampleSite/data/socialfas.json | 3 | ||||
-rw-r--r-- | layouts/partials/contact.html | 5 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 16 |
5 files changed, 21 insertions, 10 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fb97ae4..4e7d232 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,5 +1,4 @@ baseURL = "https://demo.uicard.io/hugo-uilite-free/" languageCode = "en-us" title = "Valentina" -theme = "uilite" - +theme = "hugo-uilite" diff --git a/exampleSite/data/sidebar.json b/exampleSite/data/sidebar.json index e40de09..5e56a22 100644 --- a/exampleSite/data/sidebar.json +++ b/exampleSite/data/sidebar.json @@ -1,6 +1,6 @@ { "title" : "hey world, i'm", "highlightedText" : "valentina", - "description" : "A graphics designer, based in Germany", + "description" : "A graphics designer, based in Germany.", "displayPicture" : "sim.jpg" -}
\ No newline at end of file +} diff --git a/exampleSite/data/socialfas.json b/exampleSite/data/socialfas.json new file mode 100644 index 0000000..f990145 --- /dev/null +++ b/exampleSite/data/socialfas.json @@ -0,0 +1,3 @@ +{ + "envelope" : "mailto:<youremail>@gmail.com" +} 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> |