diff options
author | salomon valverde <x84@sal.sh> | 2018-06-25 13:40:09 +0300 |
---|---|---|
committer | salomon valverde <x84@sal.sh> | 2018-06-25 13:40:09 +0300 |
commit | 7c75403483c807c01bb9fe85348a2083de9c2479 (patch) | |
tree | 97905e35209b82514bf828889eb3582a87c9f0cc | |
parent | 735e83046a4484fdaba6ee523268d3b15d602cfb (diff) |
hugoify template
-rw-r--r-- | README.md | 30 | ||||
-rw-r--r-- | changelog.md | 7 | ||||
-rw-r--r-- | config.toml | 218 | ||||
-rw-r--r-- | layouts/partials/banner.html | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 12 |
5 files changed, 263 insertions, 8 deletions
@@ -1 +1,29 @@ -hugo-assembly +# Assembly Theme + +This theme is a Hugo port of the assembly theme by [http://templated.co](http://templated.co). A two-column, fixed-width design with dark color scheme. + +![](images/screenshot.png) + +## Installation + +Follow the themes guide on the [Hugo website](https://gohugo.io/themes/installing-and-using-themes/). Briefly, within your Hugo folder: + +```sh +$ cd themes +$ git clone https://github.com/salomoko/hugo-assembly.git +``` + +## Getting started + +Copy `exampleSite/config.toml` into the root of your website folder, and edit it to your hearts content! + +Add `theme = "hugo-assembly"` to this config, or when serving, use `hugo server -t hugo-assembly`. + + +## Credits + +Credit for this theme goes fully to [http://templated.co](http://templated.co), which is licensed under a [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) license. If you use this Hugo port, please consider the terms of that license and make proper attribution to [http://templated.co](http://templated.co). + +## Changelog + +A changelog for the initial port by @salomoko is [here](changelog.md); if you fork this theme and make changes, please list them. diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..e427c23 --- /dev/null +++ b/changelog.md @@ -0,0 +1,7 @@ +# Changelog + + +## 2018-06-25 + +- Theme ported to Hugo with no changes made to styling/theming. +- Adjusted contact form to work with netlify diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..093b130 --- /dev/null +++ b/config.toml @@ -0,0 +1,218 @@ +# Main config file for icon theme. +theme = "hugo-assembly" +baseURL = "https://www.example.com/" +languageCode = "en-AU" +title = "My Awesome Title" + +# Metadata +[params] + author = "Your name" + description = "Cool description" + +# banner section (from here on is for assembly theme) +[params.banner] + title = "Create awesome things for better web" + byline = "Lovingly hand-crafted by the fine folks at [FreeHTML5.co](http://freehtml5.co/)" + +# # Navigation section +# [params.nav] +# mission = "Our Mission" +# services = "Services" +# team = "The Team" +# contact = "Get In Touch" +# # Include logo instead if HOME: +# # logo = "path/to/logo" + +# # Mission section +# [params.mission] +# enable = true + +# [params.mission.images] +# enable = true + +# [[params.mission.images.list]] +# img = "images/img_3.jpg" +# [[params.mission.images.list]] +# img = "images/img_2.jpg" +# [[params.mission.images.list]] +# img = "images/img_1.jpg" +# [[params.mission.images.list]] +# img = "images/img_4.jpg" + +# [[params.mission.item]] +# weight = 1 +# name = "marketing" +# title = "Marketing" +# subtitle = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione voluptate laborum sapiente officiis molestiaea." +# description = "<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repudiandae aliquid aperiam eveniet officia molestiae temporibus beatae dolores dignissimos aspernatur eius doloremque ad, eaque pariatur, repellendus illum, nostrum velit necessitatibus molestias.</p><ul class='checked'><li>Web Development</li><li>User Interface Experts</li><li>Pixel Perfect Design</li></ul><p><a href='#' class='btn btn-primary btn-outline fh5co-content-nav' data-nav-section='contact'>Get In Touch</a></p>" + +# [[params.mission.item]] +# weight = 2 +# name = "analysis" +# title = "Resources" +# subtitle = "Quam quasi illum expedita dicta nemo fugit reprehenderit similique! Corporis praesentium magnam sequi." +# description = "<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nulla explicabo, molestiae eaque fugiat dolores est esse, doloremque placeat assumenda corrupti officia dolorum. Sunt saepe ut, explicabo consectetur, nostrum illo est.</p><ul class='checked'><li>Free HTML5 Templates</li><li>Free Bootstrap Templates</li><li>Free HTML5 Bootstrap Templates</li></ul><p><a href='#' class='btn btn-primary btn-outline fh5co-content-nav' data-nav-section='contact'>Get In Touch</a></p>" + +# [[params.mission.item]] +# weight = 3 +# name = "strategy" +# title = "Strategy" +# subtitle = "Magnam iste obcaecati illo laboriosam amet. Dignissimos sed quis voluptatum corporis adipisci amet." +# description = "<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio dolore illum expedita placeat debitis, dignissimos obcaecati et modi. Possimus id dicta consequuntur veritatis, reiciendis at expedita voluptate sint distinctio eligendi!</p><ul class='checked'><li>Web Development</li><li>User Interface Experts</li><li>Pixel Perfect Design</li></ul><p><a href='#' class='btn btn-primary btn-outline fh5co-content-nav' data-nav-section='contact'>Get In Touch</a></p>" + +# # Services section +# [params.services] +# enable = true +# video = true +# vidlink = "https://vimeo.com/channels/staffpicks/93951774" +# title = "Our Services" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# [[params.services.item]] +# icon = "icon-present" +# title = "Web Development" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# [[params.services.item]] +# icon = "icon-eye" +# title = "Retina Ready" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# [[params.services.item]] +# icon = "icon-paper-plane" +# title = "Light Speed" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# [[params.services.item]] +# icon = "icon-pencil" +# title = "Copyrighting" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# [[params.services.item]] +# icon = "icon-rocket" +# title = "Load Fast" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# [[params.services.item]] +# icon = "icon-support" +# title = "Customer Support" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# # Work section +# [params.work] +# enable = true + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_1.jpg" + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_2.jpg" + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_3.jpg" + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_2.jpg" + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_3.jpg" + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_2.jpg" + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_3.jpg" + +# [[params.work.item]] +# title = "Consectetur adipisicing" +# subtitle = "Web Design" +# img = "images/img_4.jpg" + +# # Team section +# [params.team] +# enable = true +# title = "Meet The Team" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." + +# [[params.team.item]] +# name = "Jean Doe" +# position = "Chief legend" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." +# img = "images/person1.jpg" +# facebook = "#" +# twitter = "#" +# dribbble = "#" +# instagram = "#" +# github = "#" +# linkedin = "#" + +# [[params.team.item]] +# name = "Alice Doe" +# position = "Chief overlord" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." +# img = "images/person2.jpg" +# facebook = "#" +# twitter = "#" +# dribbble = "#" +# instagram = "#" +# github = "#" + +# [[params.team.item]] +# name = "John Doe" +# position = "Chief haranguer" +# description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." +# img = "images/person3.jpg" +# facebook = "#" +# twitter = "#" +# dribbble = "#" +# instagram = "#" +# github = "#" + +# # [[params.team.item]] +# # name = "Jason Doe" +# # position = "Chief haranguer" +# # description = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." +# # img = "images/person3.jpg" +# # facebook = "#" +# # twitter = "#" +# # dribbble = "#" +# # instagram = "#" +# # github = "#" + +# # Contact section +# [params.contact] +# enable = true +# title = "Get In Touch" +# message = "Lorem ipsum dolor sit amet consectetur adipisicing elit. Eveniet nam itaque ipsam iste provident quo ipsam iste provident." +# name_placeholder = "Your name" +# email_placeholder = "Your email" +# email_disclaimer = "We'll never share your email with anyone else." +# message_placeholder = "Please enter a message." +# button_text = "Submit" + +# # Footer section +# # Note here that the copyright and attribution statement must remain as part of the license agreement. If you wish to remove this, please contact freehtml5 and pay for a professional license. +# [params.footer] +# enable = true +# note = "<p><small>© 2016 Free HTML5 Template. All Rights Reserved. <br> Designed by <a href='http://freehtml5.co/' target='_blank'>FreeHTML5.co</a> Demo Images: <a href='http://pexels.com/' target='_blank'>Pexels</a><br>Hugo port by <a href='https://github.com/SteveLane/' target='_blank'>SteveLane</a></small></p>" +# github = "#" +# twitter = "#" +# facebook = "#" +# vine = "#" +# linkedin = "#" +# instagram = "#" + diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html index 140c709..aadadee 100644 --- a/layouts/partials/banner.html +++ b/layouts/partials/banner.html @@ -1,7 +1,7 @@ <div id="banner" class="container"> <div class="title"> - <h2>MobiClaim!</h2> - <span class="byline">Reclaim your mobile device sooner rather than later!</span> + <h2>{{ with .Site.Params.hero.title }}{{ . | markdownify }}{{ end }}</h2> + <span class="byline">{{ with .Site.Params.hero.byline }}{{ . | markdownify }}{{ end }}</span> </div> <ul class="actions"> <li><a href="#" class="button">Reclaim!</a></li> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d71b98e..f403ae0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,9 +1,11 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<title></title> -<meta name="keywords" content="" /> -<meta name="description" content="" /> +<title> {{ .Site.Title }}</title> +{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} +{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} +{{ with .Site.LanguageCode }}<meta http-equiv="content-language" content="{{ . }}" />{{ end }} + <link href="http://fonts.googleapis.com/css?family=Didact+Gothic" rel="stylesheet" /> -<link href="default.css" rel="stylesheet" type="text/css" media="all" /> -<link href="fonts.css" rel="stylesheet" type="text/css" media="all" /> +<link href="css/default.css" rel="stylesheet" type="text/css" media="all" /> +<link href="css/fonts.css" rel="stylesheet" type="text/css" media="all" /> <!--[if IE 6]><link href="default_ie6.css" rel="stylesheet" type="text/css" /><![endif]--> |