Giter VIP home page Giter VIP logo

forty's Introduction

Forty Theme

Forty theme is a multi page website built around a grid of image tiles that transition into its content pages. It is a ported theme built by HTML5 UP. This theme contains many styled elements and features a contact form. Built for blogs, businesses, or freelancers.

Forty Screenshot

For a demo go to Forty Demo.

Installation

Create a new Hugo Site and inside the site folder run the following commands:

$ cd themes
$ git clone https://github.com/MarcusVirg/forty

To learn how to create a Hugo Site read the official guide of Hugo.

Netlify

If you are using Netlify to host your hugo site, you will want to add it as a submodule instead of cloning:

$ cd themes
$ git submodule add https://github.com/MarcusVirg/forty

This is because Netlify uses the hugo build command when autopublish is enabled and will produce an error if the theme is not a submodule. See the Hugo Guide for more information.

If your javascript or css isn't rendering, check your BaseURL frontmatter in the config.toml file. This needs to be set to match the URL you are publishing to. i.e. if you are publishing to https://www.yourdomain.com your frontmatter should be BaseURL = https://www.yourdomain.com

Using the theme

After cloning Forty or adding it as a submodule, there are a few other things you should do:

Config File

There is an exampleSite folder for this theme. Copy the file called config.toml to your websites root directory. Here you can customize some of the text and content on the website.

Change background

You can change the background by replacing the banner.jpg file with your own image in the folder forty/static/img. The image must be in jpg format and the filename must be called banner.jpg otherwise it will not work.

Create new project/blog

To create a new blog post, you can take advantage of archetypes and use the Hugo command:

$ cd hugoProjectDirectory
$ hugo new blogs/myBlog.md

Replace myBlog.md with your own file name. You can also just copy the markdown files from forty/exampleSite/content/blogs

Contact form

This page is static so formspree.io is used to forward the message to your email. Visitors can send you up to 1,000 emails per month for free. You can set your email in the config.toml file. You then have to confirm your email with formspree and will begin recieving messages after you do so. I recommend only having the contact form on one page, most likely the index.html, because you have to confirm for every URL the contact form is on.

Preview

You can see a preview of your site while developing it by running Hugo's built-in webserver.

$ hugo server -D

Now enter localhost:1313 in the address bar of your browser to see your site.

NOTE: In the command above -D loads content that is marked as a draft. You can switch content from draft to final by changing the frontmatter value of draft to false in the .md file for the content.

Contributing

Find a bug or want a new feature? Use the issue tracker or submit a pull request.

License

This theme is released under the Creative Commons Attribution 3.0. For more information read the License.

Acknowledgements

Thanks to:

forty's People

Contributors

funkydan2 avatar jpalmieri avatar marcusvirg avatar mlncn avatar salim-b avatar unnawut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

forty's Issues

tel: link

I tried to add another social icon that points to a phone number by creating this block:

[[params.footer.social]]
icon = "fa-mobile"
url= "tel:+46xxxxxxxxx"
label = "Call me!"

When i visit the site, i see the following link instead: http://localhost:1313/#ZgotmplZ

Am i doing something wrong, is this a hugo limitation, or have i misunderstood something?

Thanks

Missing JS

Hey is there supposed to be a lot of missing local JS files? Missing jquery and some images as well.

Missing package.json?

I'm having trouble getting forty to run properly with npm install + start; is this due to the lack of a package.json file or is there a way around using this? Many thanks.

Support multi language sites

Hi.

I was wondering how I could use this theme in a multi-language setup? Does the theme support it already?

Thanks in advance.

Adding academicons to home page

Hi, let me first thank you for all the good work on implementing this theme !

I would have a question about academicons (http://jpswalsh.github.io/academicons/). I tried to include these icons in the forty theme by placing the /css and the /font folders in the /static folder, and by pointing to the .css file in the custom_css in the config.toml file with custom_css = ["css/academicons.css"], but it does not seem to work...

Instead of the expected icon, it displays a Chinese (?) character... Would you have an idea of what is going wrong ?

34295825-ad4d9cf6-e70f-11e7-9969-7977ee314c54

The site runs fine on my laptop, but does not render correctly on Netlify.

Hi, I am trying to make a landing page for my university club with Hugo + Forty, but when I have Netlify build and deploy the site, it does not render. The build does succeed, it just misses all of the css or something? https://tamuccc.netlify.com is the deploy url.

My repository url is https://github.com/jasikpark/tamuccc

I even deleted my local copy of the site and cloned it from Github, then ran hugo serve -D, and it worked perfectly.

email address link is stubbed out

In the "Contact" template, the section which lists the email address is stubbed out (i.e., <a href="#">..., requiring the developer using this theme to override the template in order to actually use a (for example) mailto link instead of the stubbed link.

Seems like we should just have a mailto:{{ .email }} link here, instead of the stub.

Allow templates to work for different content sections (other than 'blogs')

For example, renaming 'blogs' to 'news' in your content folder (with matching changes in the config.toml file) makes the URL 'news/slug' instead of 'blogs/slug'. Hugo could do URL rewriting to the same effect, i think, but this way keeps the site editor experience (where to find markdown files) consistent with the site visitor experience.

It should also make it possible for the two default templates to work for multiple sections, for example a multi-page about section, or to have 'news' as well as 'blogs' or also 'answers' or 'solutions' or anything one can think of.

Please add support for custom CSS

I'd find it rather useful if I could add some custom CSS. The CSS file you provide is very large and I'd like to change some colors and fonts which I of course can but pushing the changes to a remote Netlify can pull is rather complicated. Sorry for the insanely long sentence.

Changing colors

Hi,

I was wondering if one can change the colors on the homepage.

Thanks in advance, and btw I really love the template!! Amazing work!

Best,
Alexis

Subtitle not showing on mobile

Hey there!

Whenever I render the website on a mobile device, I don't get the subtitle for the site (although I do get it on a PC/Mac)

Could anyone help with this?

Thanks!
Alexis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.