All Projects → balaramadurai → hugo-travelify-theme

balaramadurai / hugo-travelify-theme

Licence: MIT License
Port of Aigars Silkalns's Wordpress theme Travelify to Hugo. Demo -

Programming Languages

CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hugo-travelify-theme

liva-hugo
Liva is a personal blog template powered by Hugo.
Stars: ✭ 192 (+464.71%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
persian-hugo
Persian is a box design personal blog theme based on Bootstrap and powered by Hugo. It is very responsive and perfectly fits on any sized screen device.
Stars: ✭ 32 (-5.88%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
influencer-hugo
Influencer is a Hugo theme for book authors and writers. It has also Snipcart supports for order books and payments.
Stars: ✭ 66 (+94.12%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
navigator-hugo
Navigator Business theme powered by Hugo. It also could be used for a personal portfolio.
Stars: ✭ 133 (+291.18%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
hugo-initio
Hugo Theme port of Initio bootstrap template by GetTemplate
Stars: ✭ 58 (+70.59%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
bookworm-light
Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
Stars: ✭ 59 (+73.53%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
twenty-twenty-hugo
Twenty Twenty Hugo is forked from WordPress Twenty Twenty theme. It's fully functional like the WordPress theme.
Stars: ✭ 48 (+41.18%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
hugo-minimalist-theme
Port of Raphael Riegger's Minimalistic Ghost theme to Hugo.
Stars: ✭ 25 (-26.47%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
Hugo Steam Theme
Port of Tommaso Barbato's Ghost theme Steam to Hugo
Stars: ✭ 69 (+102.94%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
Hugo Coder
A minimalist blog theme for hugo.
Stars: ✭ 1,374 (+3941.18%)
Mutual labels:  static-site-generator, hugo-theme, hugo, blog-theme
hugo-sugoi
Hugo-Sugoi - An Ultra Minimal Hugo Theme based on Skeleton
Stars: ✭ 29 (-14.71%)
Mutual labels:  hugo-theme, hugo, blog-theme
wowchemy-hugo-themes
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience
Stars: ✭ 6,891 (+20167.65%)
Mutual labels:  static-site-generator, hugo-theme, hugo
geeky-hugo
Geeky is a Personal Hugo blog theme focused on high speed. Geeky is fully responsive, Superfast, and powered by Bootstrap v5.
Stars: ✭ 44 (+29.41%)
Mutual labels:  hugo-theme, hugo, blog-theme
hugo-theme-chunky-poster
A simple, bootstrap 4 based hugo blog theme.
Stars: ✭ 106 (+211.76%)
Mutual labels:  hugo-theme, hugo, blog-theme
academia-hugo
Academia is a Hugo resume theme. You can showcase your academic resume, publications and talks using this theme.
Stars: ✭ 165 (+385.29%)
Mutual labels:  hugo-theme, hugo, blog-theme
restaurant-hugo
The restaurant is a creative and responsive restaurant website theme in Hugo environment. It is very well decorated theme which will make your website building easier.
Stars: ✭ 50 (+47.06%)
Mutual labels:  hugo-theme, hugo, blog-theme
hugo-theme-fluency
A fluent hugo theme.
Stars: ✭ 48 (+41.18%)
Mutual labels:  hugo-theme, hugo, blog-theme
uBlogger
A template designed with your readers in mind ❤️
Stars: ✭ 242 (+611.76%)
Mutual labels:  hugo-theme, hugo, blog-theme
Blogpaper
A graphical newspaper like blog theme for Hugo.
Stars: ✭ 18 (-47.06%)
Mutual labels:  hugo-theme, hugo, blog-theme
Hugo theme pickles
Modern, Simple and beautiful Hugo theme
Stars: ✭ 168 (+394.12%)
Mutual labels:  static-site-generator, hugo-theme, hugo

The homepage of this Travelify theme is at https://themes.gohugo.io/hugo-travelify-theme/.

Some of the important features of Hugo-Travelify-Theme are:

  • Automatic slider generation with banner images

  • Subscribe via Email through Mailchimp integration (You have to sign up and generate the HTML code)

  • Multiple author support (Included in the taxonomy)

  • i10n data

  • Disqus integration

  • logo (with option to switch on or off the title)

  • Social media sharing options

  • Google Analytics


Here are some screenshots of the theme:


Get the theme

If you have git installed, you can do the following at the command-line-interface within the Hugo directory:

$ cd themes
$ git clone https://github.com/balaramadurai/hugo-travelify-theme.git

You should see a folder called hugo-travelify-theme inside the themes directory that we created a few moments ago. For more information read the official setup guide of Hugo.

Setup

In the next step navigate to the exampleSite folder at themes/hugo-travelify-theme/exampleSite/. Its structure should look similar to this:

exampleSite
|   config.toml
+---content
|   |   about.md
|   |   contact.md
|   \---post
|           creating-a-new-theme.md
|           go-is-for-lovers.md
|           hugo-is-for-lovers.md
|           linked-post.md
|           migrate-from-jekyll.md
|           this-post-has-no-body.md
+---data
|       l10n.toml
\---static
    |   new-york-featured.jpg
    \---banners
            7148951717_9bbf185db3_h-1018x460.jpg
            featured-4.jpg
            featured-5.jpg
            new-york-featured.jpg
            placeholder.png
            Spain-Plaza-de-Cibeles-Madrid-1018x460.jpg
            Spain-Plaza-de-Cibeles-Madrid-670x300.jpg
            spain6-1018x460.jpg

To get your site running, copy the entire contents of the example site using cp -r themes/hugo-travelify-theme/exampleSite/* . into the root folder. (Please refer to http://gohugo.io/overview/quickstart/ for installing a Hugo theme.)

The config file

Now, let us take a look at config.toml. Let's take a look at some of the settings.

1. Automatic or Manual slider

Using the parameters in the config, the slider can be switched on and off at will and the number of banner images on the carousel can be customized.

[params.slider]
enable = true
manual = false
num_features = 4 # The slider picks up the banner images from the N most recent posts, where num_features is N.

The slider can be made manual = true and in each of the posts you want highlighted on the slider, include slider = true in the frontmatter. Another way to add a slideshow to the slider is by creating YAML files in the data/slider folder. Check the exampleSite for example.

Videos in slider

You can now add a video (from YouTube or Vimeo or Dailymotion or your own mp4/webm file) in the slider. (Thanks to [#32 #32) for the idea)

Tip - For best results in the slider, use 1018x460 resolution for the banner images.

2. Google Analytics

GoogleAnalytics = ""

3. Comments

The comment system is an optional feature powered by Disqus. Enter your shortname to enable the comments section under your posts.

disqusShortname = ""

Tip - You can disable the comments section for a single page in its frontmatter:

+++
disable_comments = true
+++

4. Menu & Nested Menus

The entries in the items menu can be customized. First, let us link a post that you've written. We can do this in the frontmatter of the post's content file by setting menu to main.

+++
menu = "main"
+++

Further, we can add entries that don't link to posts. Back in the config.toml you'll find a section for the menus:

[[menu.main]]
    name  = "Contact"
    url   = "/contact/"
    weight = 20

Define a label and enter the URL of the resource you want to link. With before you can decide whether the link should appear before or after all linked posts in the menu. Therefore, Home appears before the linked post.

For nested menus, you can use the following format:

[[menu.main]]
    name  = "Contact2"
    url   = "/contact/"
    parent = "Contact"

[[menu.main]]
    name  = "Contact21"
    url   = "/contact/"
    parent = "Contact2"
    weight = 20

[[menu.main]]
    name  = "Contact22"
    url   = "/contact/"
    parent = "Contact2"
    weight = 10

[[menu.main]]
    name  = "Contact3"
    url   = "/contact/"
    parent = "Contact"

5. Sidebars

To use the full width of the website you can disable the profile on the left and / or the widgets on the right for a single page in the frontmatter:

+++
disable_profile = true
disable_widgets = true
+++

6. Tell me who you are

This theme also provides a profile section. Add your social network accounts to the profile section by entering your user name under social. The links to your accounts will be created automatically.

7. Widgets

You can add widgets to the right sidebar. The following widgets are available:

  • recent articles
  • Multiple author support
  • category list
  • tag list
  • tag cloud
  • Duckduckgo search enabled on your website

You can deactivate them under params.widgets:

# Enable and disable widgets for the right sidebar
[params.widgets]
    recent_articles = true
    categories = true
    tags = true
    tag_cloud = true
    archives = false # This feature is yet to be implemented because of limitations in Hugo's way of working.
    search = true
	author = true
	mailchimp = true
	mailchimpform = "//mailchimp/url/goes/here"
    # grab the mailchimpform value by following instructions here - https://mailchimp.com/help/add-a-signup-form-to-your-website/
    # Copy the URL in the action parameter inside the form
    # <div id="mc_embed_signup"><form action="https://balaramadurai.us15.list-manage.com/subscribe/post?u=7f4183fa2fe7abe3dc9f4efad&amp;id=49a3dd3745" method="post"

8. Date line

The date line includes: post date, categories, comments and sharing links. However, if you want certain pages to omit the date line, simply put nodateline = true in the front matter for that page.

9. Disable previous/next article links and remove tags

To disable the inclusion of a previous/next article link at the bottom of the page, add noprevnext = true to frontmatter. This feature, along with nodateline = true, can be used to create standalone pages that are less "blog-like".

10. Translation (l10n)

You don't blog in English and you want to translate the theme into your own language? No problem. Inside the exampleSite/data folder you'll find a file l10n.toml. It contains all the strings related to the theme. Just replace the original strings with your own.

11. Linking thumbnails

After creating a new post you can define a banner by entering the relative path to the image.

banner = "banners/placeholder.png"

This way you can store the images either in the same folder as your post or in the static folder.

Tip - For best results in the slider, use 1018x460 resolution for the banner images.

12. Social media sharing

You can enable to disable social media sharing buttons selectively using the following options:

[params.share]
    enable = true
    facebook = true
    twitter = true
    googleplus = true
    linkedin = true

13. Permalink Slugs

You can customize the slugs to look like this

e.g. in the [permalinks] section, categories can be set up in these different ways:

categories = "/category/:slug/"
categories = "/categories/:slug/"

Thanks to @sandipb with the PR - #31

Nearly finished

To preview your site, run Hugo's built-in local server.

$ hugo server

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

Contributing to the theme

Found a bug or have an idea for a new feature? Feel free to use the issue tracker to let me know. Or make a pull request.

License

This theme is released under the MIT license. For more information read the license.

Acknowledgements

Thanks to

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].