Giter Site home page Giter Site logo

devcows / hugo-universal-theme Goto Github PK

View Code? Open in Web Editor NEW
745.0 30.0 537.0 11.43 MB

Universal theme for Hugo, it stands out with its clean design and elegant typography.

Home Page: https://devcows.github.io/hugo-universal-theme

License: MIT License

HTML 6.53% CSS 84.07% JavaScript 9.40%
hugo universal blog-theme hugo-theme theme css html javascript

hugo-universal-theme's People

Contributors

adrianmo avatar aswansyahputra avatar davidjharder avatar davidshorter avatar dependabot[bot] avatar faalagorn avatar g0hl1n avatar georgewl avatar guillermogue avatar jpvicari avatar junichim avatar lituatui avatar lucab85 avatar ludobaka avatar mgisbers avatar nmjakobsen avatar notriddle avatar paul-reed avatar petrkotek avatar qicz avatar ringods avatar roneoorg avatar rowanj avatar ryanfox1985 avatar salim-b avatar saschafitzner avatar schuster-rainer avatar tino-michael avatar tminecola avatar varnerac 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hugo-universal-theme's Issues

Headlines shown in excerpts

Hi,

the h2's are shown in the excerpt's p-tag without a full stop on the blog page.

Eg.:
Singleview code:
## Step 1. Install Hugo
Goto [hugo releases](https://github.com/spf13/hugo/releases) and download…

Excerpt output:
<p class="intro">Step 1. Install Hugo Goto hugo releases and download the…

Additional Favicon/Icon Support

Hi,

Would it be possible to add something like the following to layouts/partials/head.html ?

  <!-- Favicon and apple touch icons-->
	<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL }}/img/apple-touch-icon.png">
	<link rel="icon" type="image/png" href="{{ .Site.BaseURL }}/img/favicon-32x32.png" sizes="32x32">
	<link rel="icon" type="image/png" href="{{ .Site.BaseURL }}/img/favicon-16x16.png" sizes="16x16">
	<link rel="manifest" href="{{ .Site.BaseURL }}/img/manifest.json">
	<link rel="mask-icon" href="{{ .Site.BaseURL }}/img/safari-pinned-tab.svg" color="#6aae7a">
	<link rel="shortcut icon" href="{{ .Site.BaseURL }}/img/favicon.ico">
	<meta name="msapplication-TileColor" content="#6aae7a">
	<meta name="msapplication-TileImage" content="{{ .Site.BaseURL }}/img/mstile-144x144.png">
	<meta name="msapplication-config" content="{{ .Site.BaseURL }}/img/browserconfig.xml">
	<meta name="theme-color" content="#ffffff">

	<!-- old icons
  <link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon" />
  <link rel="apple-touch-icon" href="{{ .Site.BaseURL }}img/apple-touch-icon.png" /> -->

  <!-- owl carousel css -->

apply class="active" to currently active page/section

Not entirely sure how to achieve this. But the current behaviour is the only indication of page is the breadcrumb.

The Bootstrapious theme has the behaviour of active pages, but that is hard coded, not sure how to do the same with Hugo.

Maybe some sort of conditional logic?

RTL Support ?

Is there a plan to support RTL (right-to-left) for arabic/hebrew?

changing order of params on homepage

I really like the different parameters that can be enabled/disabled for the home page. Is there a way to change the order that they appear in? I'd like to use the "see_more" as the first param and the "features" as the second followed by "testimonials", etc.

Some error during build

Hi Adrian,

Your theme is the only theme in Hugo that caused me to port all my wordpress site since 2006 to Hugo.
Basically I have converted all the wordpress content to Hugo and after integrate it into your theme
Tried to googled around but seems I couldn't found any, must be my lack of skill.

I've got this error when I ran Hugo server.

0 draft content
0 future content
702 pages created
852 non-page files copied
541 paginator pages created
242 tags created
22 categories created
in 5839 ms

Change detected, rebuilding site
2016-09-04 21:53 +0800
ERROR: 2016/09/04 21:53:49 template.go:131: template: theme/partials/carousel.html:3:10: executing "theme/partials/carousel.html" at <len .Site.Data.carou...>: error calling len: len of untyped nil in theme/partials/carousel.html
ERROR: 2016/09/04 21:53:49 template.go:131: template: theme/partials/features.html:3:10: executing "theme/partials/features.html" at <len .Site.Data.featu...>: error calling len: len of untyped nil in theme/partials/features.html
ERROR: 2016/09/04 21:53:49 template.go:131: template: theme/partials/testimonials.html:3:10: executing "theme/partials/testimonials.html" at <len .Site.Data.testi...>: error calling len: len of untyped nil in theme/partials/testimonials.html
ERROR: 2016/09/04 21:53:49 template.go:131: template: theme/partials/clients.html:3:10: executing "theme/partials/clients.html" at <len .Site.Data.clien...>: error calling len: len of untyped nil in theme/partials/clients.html

Thanks in advanced,
Cheers,
Raff

Move one of the landing page segments to another page

I am trying to add the carousel segment to a different page. I thought this should be possible by creating a new directory in layouts with the name of the page, and adding a single.html file that contains {{ partial "carousel.html" . }}. It does not seem to be working - any ideas?

Feat Request: Image responsiveness in /Content/

The current setup requires one to either create your own little shortcode which changes this for you, or to manually replace any images linked in the simple way with the html method.

It takes away some usability for those who use a headless CMS to publish content.

I'll be honest, I've not the foggiest how to solve this.

Features: md or html formatting

Could you please tell me, is it possible to use html or markdown language in the description attribute of the features yaml files? Something like:

description: "foo *bar* baz" 

Error when using with blogdown package

Hi,
I am using the R blogdown package (https://github.com/rstudio/blogdown), and had problems with this theme. When I install the theme, and start building the site, there is the following error:

blogdown::build_site()
Started building sites ...
ERROR 2017/06/22 23:21:52 Error while rendering "page": template: theme/_default/single.html:27:195: executing "theme/_default/single.html" at <.Site.Params.date_fo...>: invalid value; expected string

Do you know if this is an issue with the theme?

Thanks,
Jake

change "blogs" to other text

Hi,

Thanks for making this awesome theme. I'm just wondering how I could possibly change "blogs" to some other text in the blog index page. I poked around the layout folder, and couldn't find how I could make a change. Thanks a lot.

screen shot 2017-06-16 at 12 12 35 pm

Date format not applied in all pages

The date format property in the config.toml file is not applied in all the pages.
For instance I configure the format to '2006-01-01' and the format applied in the pages is 'January 01, 2006'

Changing the background img/photogrid.jpg to something else?

I can change the img/photogrid n default.css to something else in the /theme folder but wondering if there is a way to change the background image without changing the original theme. Do I just have to add /static/img/background.jpg and /static/css/style.default.css under layouts and change the jumbtron and .home_carousel to point to the new image? Is this enough or is there something else to add in the HUGO config.toml file?

Error overriding file from template

When I try to override the file layouts/_default/single.html from the theme, a Date of class "text-muted text-uppercase mb-small text-right" appears on top of all other pages.
In the blog the date is correct and appears as expected but in all other pages the date appears (when it shouldn't) an is incorrectly formated as "January 1, 0001"

Translate Data directory contents

I am building a multilingual site and would like to translate content in the /data directory, i.e. carousel, features etc. What would be the best way to do this?

For the multilingual site, I have made small changes in nav.html (lines 37-55) to get a language selector. Any ideas for improvement?

`

               {{ if .Site.IsMultiLingual }}

                 {{ if ge (len .Site.Languages) 3 }}
                   <li class="navlinks-container">
                                            <div class="navlinks-children">
                   {{ range .Translations }}
                      <li><a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a></li>
                   {{ end }}
                    </div> 
                   </li>
                 {{ else }}
                   <li>
                   {{ range .Translations }}
                          <a href="{{ .Permalink }}">{{ .Site.Language.LanguageName }}</a>
                   {{ end }}
                   </li>
                 {{ end }}
              {{ end }}

`

images on blog dont always appear

Often when I am on the blog page, the images next to the posts don't appear until I resize the page. Seems to me like this may be some kind of bug (at least in Safari).

Use shortcodes from original universal theme

Hey there,

first off, thanks for porting the universal theme. I love it, currently setting up my new website with it.
I was wondering which is the best way to use the shortcodes from universal theme, e.g. the accordion text boxes.
Shall I create shortcuts for them as well? But how am I supposed to feed it with data then, the only idea I could think of would be using .Params.whatever, but that doesn't seem elegant to me. Any other ideas?

parallax scrolling causing performance issue

the "DO YOU WANT TO SEE MORE?" is causing a serious slowdown of my browser. im on chrome latest with 16 gb ram and core i7

disabling that section speeds it up. can i just remove the parallax background and still have the section?

Center

How to center the layout or divid in 3 column ?

Removal of attribution link

Hello,

Many thanks for porting this theme.

I know there is a donation requirement from the original Bootstrapious theme for removal of the attribution link at the bottom of the page. Is there a separate requirement to support your porting work to remove the attribution link to your page?

Support for social network links in header

Hello,

As a business, I find it important that people can find my social handles very easy. Therefor, support for adding social network links in the header would be highly valuable. Could this support be added, using the well-known icons for each social network?

I am interested in support for:

  • Github
  • LinkedIn
  • Twitter

To give you an idea what I'm after, have a look in the upper right corner of http://vamp.io/
You can see the Github icon as an example.

Add social section / info

This theme is nifty, but it's missing some twitter links etc. Would it be possible to add these in?

Contact form doesn't get created

I think the only thing I need to do to get a /contact/ URL is to put email = "[email protected]" into config.toml, but it does not get created. However, the contact info does get created on the front page (lower right) along with a dedicated link to the /contact/ URL.

In order to patch around it, I created a contact page with:

hugo new contact/index.md

but that still doesn't fill in the contact form - only the Markdown content I entered.

I'm guessing my problem is due to this error, when rendering:

ERROR: 2016/11/06 13:55:25 template.go:132: template: theme/partials/features.html:3:10: executing "theme/partials/features.html" at <len .Site.Data.featu...>: error calling len: len of untyped nil in theme/partials/features.html

but I'm not savvy enough to figure out why that is happening.

Generate a RSS xml

Hi,

some people use the RSS xml feed for not enter to the blog and read the posts using some feed RSS client.

Regards.

Error while trying to build the site

Error while rendering "home": template: theme/index.html:18:11: executing "theme/index.html" at <partial "carousel.ht...>: error calling partial: template: theme/partials/carousel.html:3:10: executing "theme/partials/carousel.html" at <len .Site.Data.carou...>: error calling len: len of untyped nil

Theme not rendering correctly

Hi,

You guys have developed really a great theme. I was trying to integrate it however on my website - https://www.desktopluxury.com, When I put baseurl=https://www.desktopluxury.com, I am not able to achieve complete render of the theme like I used to get in local server run. However it's fine when I use baseurl="/" but this disables Disqus functionality. I'm not sure what is creating this issue. What should I do?
aa

Translate month on posts

Hi, him a spanish user and id like to know how to add the months id in the es.yaml file, i don't know where to add the i18n function to do this, please, i'd like to know how.

missing graphics when hosting on github pages

I can't seem to get this theme to work completely when hosting on github pages. Some of my pictures, graphics, etc are missing. This issue doesn't happen when I run hugo locally on my computer. Any thoughts on how to correct this?

Populate .Summary with front matter

In /layouts/partials/recent_posts.html and /layouts/default/list.html, is it possible to populate:

<p class="intro">{{ .Summary }}</p>

...with a value from a post's front matter? E.g.:

+++
summary = "This is an excerpt summarising the post."
+++

Problems with baseurl in demo

Hi Adrian,
First off, thanks for share your theme. Its a really nice theme,
undoubtedly one of the best themes in Hugo.

Well, there is a little problem in your demo. The problem is related to the baseurl used owing to the urls generated for POST, FAQ and CONTACT are wrong.

For example in POST:
The url generated at this moment is: http://themes.gohugo.io/post
when it must be: http://themes.gohugo.io/theme/hugo-universal-theme/post
This causes problems during the demo's navigation.

Solving this little problem, your theme will be more appreciated for many visitors :)

features

Hello! I know that this is for issues and not questions but I could not find answers to my questions and thought maybe I could try posting them here. I am sorry if this is not okay.
I am very new to Hugo and I was wondering if there was a way to have the features on a different page other than the homepage. For example, is it possible to create a button that says "our services" on the homepage and then when someone clicks on that button they are taken to a different page where I want to use the features.
Also, it is stated that there are 4 header variations and 5 variations of the homepage. How can I look at/access those?

Thank you ^.^

404 file not found, css/grabbing.png

Think it's a pointless addition from Jquery.min, so tbh it's not worth it finding anyway.

Wondering whether to just upload a clear image without content in the place it expects it to be?

Or whether to just leave it as is?

_index.md content not showing

I create a section landing page with an _index.md file:

e.g.
hugo new about/_index.md

There are 2 issues:

  1. Content in the file does not appear, i.e. the page is blank. It is the correct file because the page title appears correctly.
  2. The page has pagination. I would not need this on pages outside the blog.

Neither of these issues happens if the page is named something other than _index.md.

Adding content under folder other than blog

How do I add new content in it’s own group instead of the blog folder? When creating the folder called “foo” and adding a bar.md file in there, the bar page doesn’t show up, but if I type in the url I can get to that page.

Is everything hardcoded to only show content in the blog folder? How do I make it work with other folders under content as well.

Do I need to add or change anything into the list.html

function "i18n" not defined

Thanks for this awesome port!

Hoping I'm not missing something here. I noticed partials with reference to i18n were not rendering. I checked the log and there are a ton of errors related to this. Hugo v.0.16.

From the log:

ERROR: 2017/03/14 23:53:09 template.go:472: template: theme/partials/contact.html:13: function "i18n" not defined

This basically repeats itself and lists all the partials as incomplete.

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.