GithubHelp home page GithubHelp logo

emielh / tale-hugo Goto Github PK

View Code? Open in Web Editor NEW
248.0 248.0 120.0 876 KB

A port of the Tale theme for Hugo. Tale is a minimal theme curated for storytellers.

Home Page: https://themes.gohugo.io/tale-hugo/

License: MIT License

CSS 7.97% HTML 29.43% SCSS 46.98% JavaScript 15.62%

tale-hugo's People

Contributors

adrienchd avatar dadosch avatar dagon666 avatar dvdzkwsk avatar elessar-ch avatar emielh avatar gavinr avatar gosub avatar haohanyang avatar hikaru7719 avatar isaced avatar lberki avatar mplatten avatar pawelmhm avatar roj1512 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

tale-hugo's Issues

Updated home page behavior with Hugo v >=0.58

hugo server

Building sites … WARN 2019/09/23 13:33:41 In the next Hugo version (0.58.0) we will change how $home.Pages behaves. If you want to list all regular pages, replace .Pages or .Data.Pages with .Site.RegularPages in your home page template.

After updating hugo to v >= 0.58, the home page lists the top level pages, instead of the ones in /content/posts. Changing

-{{ range (.Paginate .Pages).Pages }}
+{{ range .Site.RegularPages }}

in /layouts/index.html preserves the existing behavior.

Update: To preserve the paginanion

{{ $paginator := .Paginate (.Site.RegularPages) }}
<div class="catalogue">
    {{ range $paginator.Pages }}
        {{ .Render "summary" }}
    {{ end }}
</div>

Theme fails to render website due to not generated Resources

Hi @EmielH

It seems that your recent commit 40be04b has broken your theme demo on the Hugo Site.

When I execute the Themes Site Build Script there is the following error despite the committed /resources/ directory:

ERROR 2018/09/07 21:14:52 error: failed to transform resource: TOCSS: failed to transform "scss/tale.scss" (text/x-scss): this feature is not available in your current Hugo version

You theme's demo was once again generated when I reverted your commit so that line 21 of your head.html partial reads as follows:
{{ $style := resources.Get "scss/tale.scss" | toCSS | minify }}

Can you please look into this?

Thanks.


CC / @digitalcraftsman

About page added to index

I created the about page by the command hugo new about.md but noticed that the post is added to the index of the blog while it shouldn't. What is the correct way to do it?

Configuration Questions?

Hi there! Really lovely work. I've used this theme to deploy a blog I hope to build a literary journal around, but I'm a little confused on some of the configuration. I'm not sure if there's a better home for these questions, so I figured I'd post here. If you'd prefer I remove and contact you directly, let me know.

  1. I have a wordmark logo I made, is it possible to substitute that for the title in the header?
  2. I wrote an about page that's in my content directory, is it possible to hide that from the rest of the posts and only show on the about page?
  3. Where should I look to configure the footer? I was looking through the layouts and partials folders, but I couldn't exactly tell what should be modified.
  4. Finally, for pagination, how can I change the limit from 5 posts per page, to 10?

Thanks so much!

Posts summary alignment issue ?

Hi @EmielH

Posts (on the summary page) seems to be aligned one next to the other, instead of one above the other when the post short text is too... short.

I locally fixed the problem fixed by adding a <br/> at the end of layout/_default/summary.html but I don't know if it's the right thing to do...

Thanks :)

Code highlighting does not update

Changing values in _syntax.scss has no effect on the code's syntax highlights.

When building the site, the default style is always "monokai" as mentioned in Hugo's Configure Markdown Goldmark Highlight section.

The only way I've managed to change theme is by including the following in config.toml

[markup]
    [markup.highlight]
        style = "solarized-dark256"

Is there a parameter that needs to be set in config.toml to use what is defined in _syntax.scss? It is not mentioned in the README. sorry for the noob issues :|

Adding standalone pages

Hello,

I'm interested in adding additional pages to my site that one navigates to from the header of the page, similar to an About page. Can you provide additional guidance on how to achieve that? All my attempts have failed so far. My pages are showing up as additional blog posts.

Thanks!

About page displaying as a blog post .. how to fix ??

I am still having the problem that the about page shows up on the index page as a blog post. Even when I try content/about/_index.md... does anyone know the solution? I tried reverting to a previous commit when this post was made and the problem is still there. It seems like all files in contents get displayed as blog posts. Does anyone know how to fix this?

How can I change the fonts?

Hi,

Is it possible to customize the fonts? I tried with customized CSS param but I couldn't get any result?

Thanks

Support Google Analytics v4

Currently, only Google Analytics v3 (UA) is supported. We should add support for v4 by using template "_internal/google_analytics.html" instead of template "_internal/google_analytics_async.html".

dark mode

Could a dark mode be implemented in the theme?

Use Hugo Menus

instead of having header-menu.html as a partial, could we use Hugo Menus instead? I'm interested to hear what you think, I'm happy to work on this as a PR.

How to customize theme styles?

I like this theme a lot, but would like to tweak it a little bit. Is there a way to add my own stylesheet in order to override some of the existing rules or add new ones?

Example config.toml

I wish there was a config.toml to make it easier to get started with this very, very minimalist and, in my opinion, very simple theme.

Local fonts do not load when site published to subdirectory

I'm very happy with the introduction of the GDPR-compliant update in #30, which was something that I, up until now, implemented myself by overriding the default template. Unfortunately, the fonts.css requires the fonts folder to be located in the domain's root, which is not always the case. My blog, for instance, publishes the blog to /steven.

I believe that the fix is simple. Just change all urls in the fonts.css from /fonts/libre... to ../fonts/libre....

Example:

Current css:

url('/fonts/libre-baskerville-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

Needed css:

url('../fonts/libre-baskerville-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

If you like, I can create a PR for you.

Posts and about do not seem to work

Hi,

I just installed this and I seem to be having an issue displaying posts and the about page, do you have any ideas as to what might be happening? Even tho I have posts in my posts folder when i load the server nothing appears in the list. Similarly it does not seem to detect that I have an about page. Thanks for the help!

Wrong behavior for links in summaries

Links in summary do not work

---
...
summary: It's built [hugo](https://gohugo.io/), a very simple yet powerful static site generator framework and the [tale](https://themes.gohugo.io/tale/) theme.
---

=>


Links insert something (linebreak ?) when using <!--more-->

---
...
---

It's built [hugo](https://gohugo.io/), a very simple yet powerful static site generator framework and the [tale](https://themes.gohugo.io/tale/) theme.

<!--more-->

=>

Single method to override theme's colors

Hiya @EmielH, many thanks for porting this theme to hugo and having it well organized!

Is there a single method to override the theme's colors in the tale/assets/tale/*.scss files or do they have to be painfully iterated manually?

I see hugo has mechanisms to override layout rules via Hugo's Lookup order and was wondering if this theme allows for any similar mechanism for colors.

If not, I'll happily implement a way that will, at minimum, let users define a dark and light theme and let them further extend it to any custom color theme.

BTW I don't actually know hugo or frontend development but the way you laid everything out is so easy to follow. This would be a good "first issue" to get familiar if there is no existing way implemented yet.

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.