Coder Social home page Coder Social logo

thenewdynamic / gohugo-theme-ananke Goto Github PK

View Code? Open in Web Editor NEW
1.1K 23.0 1.1K 4.52 MB

Ananke: A theme for Hugo Sites

Home Page: https://gohugo-ananke-theme-demo.netlify.com/

License: MIT License

HTML 95.41% CSS 4.59%
hugo-site theme tachyons formspree

gohugo-theme-ananke's People

Contributors

agrrh avatar bdashrad avatar beanow avatar bep avatar cbrunet avatar coliff avatar echarp avatar iunknwn avatar jacebrowning avatar jan-xyz avatar jhenstridge avatar jmooring avatar littleninja avatar lpar avatar meirkriheli avatar melroy89 avatar metbril avatar mountainbug95 avatar mrestivill avatar nickjwhite avatar peter-jerry-ye avatar ramiro avatar rcoh avatar regisphilibert avatar ssatosays avatar strk avatar titan-c avatar tlindsay42 avatar wallaceicy06 avatar zhangyuannie 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

gohugo-theme-ananke's Issues

"featured_image" behaves strangely if a URL link is in the description before the "more" separator.

I was confused by the size of my "featured_image" images changing to much smaller size on my index page seemingly at random.

I then figured out that my latest change introduced description text that included URL links in this format:

_The morning of a Packer Game - [The NFC Championship in Green Bay before Super Bowl XXXI](http://www.pro-football-reference.com/boxscores/199701120gnb.htm)._

If I include text like this before the <!--more--> separator, things get wonky. If I include only text before the <!--more-->, everything returns to normal. Right now, that's my workaround, but it'd be nice if this was fixed.

Interest in new features?

Hello! I've been using this theme on my personal blog, https://rcoh.me and it's been great. Along the way I've added some features that I'm happy to bring upstream of you're interested:

  • Google Analytics events triggered by social link clicks
  • Improved "recent posts" sidebar that shows posts with the same tags
  • MathJax support for posts

Figure size

Hi,
Does ananke impose a width on all figures and if so, is there a way to override this? I tried using
{{< figure src="/images/furnace.jpg" width="500px">}} within one of the .md files.
But this doesn't change the figure size.

I also tried just saving the figures as a smaller size, but hugo just enlarges them to keep them the same size (just lower resolution).

Please advise how I can change the figure size!

Thanks!

Support array `images` for featured image

Right now the featured image is a string, but Hugo's embedded templates look for an array of images.

Users have solved the problem by using Page Resources which both Hugo and Ananke support. But we should probably look for an array of images on top of our featured_image string.

Include dev and production css etc

Hi @budparr, this is a nice theme. I like the idea that it's for teaching. People could use that.

Along that line, one idea is: include both the production zipped assets (css/js) and, an unzipped version, so people can see how it works and the difference b/w a minified/zipped and non-minified.

Regards

How to create `about` page or any other pages.

In hugo site, the demo pic shows About and Articles pages.

How to do that? Can I create arbitrary number of pages with arbitrary names? I am 100% new to Hugo. Is this a theme specific question or a Hugo question?

Why i open it like this ...

Why i can`t see the description values , and when i change my browser,the end of the page became the middle of the page??

LaTeX support?

Love the style. Just made my personal website with it. Are there any plans to support LaTeX in the future? Or is that feature already supported?

ERROR: [...] template.go:495: Failed to add template

Hi,

wanted to try HUGO following https://gohugo.io/getting-started/quick-start/ but get

$ hugo server -D
Started building sites ...
ERROR: 2017/09/19 10:05:46 template.go:495: Failed to add template theme/partials/site-footer.html in path /home/USERNAME/hugotest/themes/ananke/layouts/partials/site-footer.html: template: theme/partials/site-footer.html:4: function "now" not defined
ERROR: 2017/09/19 10:05:46 template.go:529: template: theme/partials/site-footer.html:4: function "now" not defined
ERROR: 2017/09/19 10:05:46 general.go:236: theme/partials/site-footer.html is an incomplete or empty template
Built site for language en:
0 draft content
0 future content
0 expired content
1 regular pages created
2 other pages created
0 non-page files copied
1 paginator pages created
0 tags created
0 categories created
total in 40 ms
Watching for changes in /home/USERNAME/hugotest/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
^C

I work with HUGO version provided by Debian 9.1:

$ hugo version
Hugo Static Site Generator v0.18.1 BuildDate: 2016-12-30T17:01:10+01:00

Is the stable repository version of HUGO to old to work with HUGO standard template?

Thx
sj7

Configuring Menu Items

I imagine this is a general question for Hugo and not just for this theme, but I am trying out Hugo for the first time and am trying to use this theme. In the demo page I see "About" "Articles" "Contact" but I don't have any menus like that in my site. How do I configure them? I have created a section or two, but they don't seem to show on the main index page of my site. Where can I configure this, or should it be automatically generated somehow?

Keywords are ignored

The Hugo doco says that keywords is a known parameter, but they seem to be ignored in the ananke templates?

How to change the height of the header image?

Hi @budparr,

I've been playing with Hugo+Ananke, and I really like it. I do have one question: is there an easy way to resize the header? I would like to make it a bit shorter so it doesn't take up so much space. I gather that it should be possible by reconfiguring some CSS parameter, but I'm not fluent enough to figure it out.

Thanks in advance, and thanks for your work on the theme!

image alignment

Hi,
When including two figures in a page, is there a way to get them to appear side by side instead of sequentially? It is my understanding from reading the main hugo pages that this should happen naturally if the lines are written with no space between them:

screen shot 2018-02-03 at 3 17 38 pm

But they appear one after the other. Is there a way to override this?

Thanks!

Parmeterize number of recent posts.

Hello,

I think it would be nice to parameterize the number of recent posts to display in index.html instead of hardcoding to 3 in {{ range (first 3 $section) }}. Something like:

[params]
  recent_posts_number = 5  

in config.toml to replace 3 in index.html.

Let me know if you would like me to submit a pull request for this.

Thanks,

David

See if HLJS can work on generic (non-language specific) code blocks

Currently HLJS is cued off of the class language-html or other appropriate language. Code blocks only get that class if they're wrapped in a short-code, and handling of the shortcode is inconsistent through the docs, leaving many left without highlight.

So either we need to find a way to apply hljs to generic code that doesn't have that class or apply the shortcode uniformly to the code.

cc @digitalcraftsman @rdwatters

gohugoio/gohugoioTheme#13 (comment)

Display date

Thanks for developing the theme, I find it very nice and functional.

I only have one small gripe: the them does not display the dates of blog posts. In the demo there seems to be the same issue: even though the markdown files have the date information, it is not displayed.

Is there some setting I can tweak to show the date on the blog posts?

Comments

Hi @budparr!
First of all, many thanks for developing Ananke!
I'm not a developer, just a pretty beginner with Hugo, and I was wondering if you are considering comments deployment in your theme. I've tried to figure out how reading Hugo's documentation, but I can't solve it.
Thanks again!
Best regards!

Changing width of content?

I'm a bit of a newbie with hugo, but I can't figure out how to modify the width of the default content in your theme.

I see the layout here: https://github.com/budparr/gohugo-theme-ananke/blob/master/layouts/_default/single.html

It's my understanding that I'd override the layout in /layouts/_default/single.html.

My goal is to provide more width by default in order to embed Tableau Public charts.

An example of my test embed is here: https://leagify.github.io/quicktest/posts/my-first-post/

Any help you are willing to provide is appreciated.

change ".Now" to "now"

WARNING: Page's Now is deprecated and will be removed in a future release. Use now (the template func).

Add tags

so it show on some of the filters on the Hugo themes site.

Hero image not sought or 404

When running in localhost with hugo server, hero image cannot be found and sometimes isn't even looked for.

Have tried:

  • Specifying in site config.toml featured_image -- Does not appear to be respected at all; Network tab shows no attempt to find file
  • Specifying in content/_index.md front matter featured_image: 'static/images/file.jpg' -- Site tries to pull from //localhost:1313/static/images/file.jpg but always 404s.
  • Copying the specified hero image to (site root)/static/images/file.jpg, (site root)/content/static/images/file.jpg and same structures inside theme folder.

Did I fall asleep in class and just miss something? ๐Ÿ˜ด

Site logo

It would be nice to include support for a site logo image parameter. One possibility might be a modification to the BaseURL link in site-navigation.html like this:

    <a href="{{ .Site.BaseURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
      {{ if .Site.Params.logo }}
      <img src="{{ .Site.Params.logo }}" class="v-mid" />
      {{ end }}
      {{ .Site.Title }}
    </a>

table of contents: toc = true - please add support

hi,

please add support for this.

mbana-mb:cv mbana$ ll
total 24K
drwxr-xr-x 2 mbana staff  170 Aug 22 15:07 .
drwxr-xr-x 5 mbana staff  204 Aug 22 15:01 ..
-rw-r--r-- 1 mbana staff  577 Aug 22 15:07 _index.md
-rw-r--r-- 1 mbana staff 1020 Aug 22 15:11 cover-letter.md
-rw-r--r-- 1 mbana staff  13K Aug 22 15:10 resume.md

in resume.md i want all the headings to show up on the right-hand side of the page. currently it only lists the other pages in the same directory.

Thanks a lot,

Error rendering index when too little items

ERROR 2017/05/23 13:20:17 Error while rendering "home": template: <myproject>/themes/gohugo-theme-ananke/layouts/index.html:34:27: executing "main" at <after 3 $section>: error calling after: no items left

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.