Git Product home page Git Product logo

gethugothemes / academia-hugo Goto Github PK

View Code? Open in Web Editor NEW
195.0 6.0 175.0 10.75 MB

Academia is a Hugo resume theme. You can showcase your academic resume, publications and talks using this theme.

Home Page: https://gethugothemes.com/products/academia/?utm_source=academia_github&utm_medium=referral&utm_campaign=github_theme_about

License: MIT License

CSS 0.39% JavaScript 15.58% Shell 0.87% HTML 59.86% Python 0.86% SCSS 22.44%
resume-template documentation academia-hugo hugo-theme academic-template blog-theme hugo static-site-generator static-site hugo-site

academia-hugo's People

Contributors

cedi avatar d0uub avatar faarhadhossen avatar matsbror avatar mehedi-sharif avatar pintodossantos avatar shampaakter avatar somratpro avatar tffarhad avatar tflijon avatar tfsojon avatar tfsomrat avatar tfsumon avatar williamaboucaya 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

academia-hugo's Issues

favicon

Hi!

Thank you for the theme; it's beautiful.

I'm trying to upload a new favicon to override the "A" favicon that comes with the theme. I've replaced the files in static/img and recompiled my site, but nothing is showing up. Do I need to specify something in one of the .toml files?

Thanks,
Zoe

Not able to change the font size

I do not know what values to give to font_size in params.toml to make effect. I have tried with s, small without any change.

I also searched the template and did not find a place where font_size was parsed.

Great looking template though, so thanks!

Mermaid diagrams are not enabled the way as specified in the documentation, instead the diagram shortcode should be used.

CSS: failed to transform "main_parsed.scss"

Hi there,

I'm using the latest Hugo build on Linux x86_64 (Hugo Static Site Generator v0.73.0-428907CC linux/amd64 BuildDate: 2020-06-23T16:30:43Z). When I create a site using academia-hugo, some of the generated files work if the translated version is copied from the exampleSite, but I cannot recreate those sites myself. To reproduce:

$ hugo new site new
$ cd new/themes
$ git clone https://github.com/themefisher/academia-hugo.git
$ cd ../..
$ cp -r themes/academia-hugo/exampleSite/. .
$ echo 'theme = "academia-hugo"' >>config.toml 
$ hugo server

This works nicely and I see the default site. However, when I Ctrl-C out of that server and try a clean build:

$ rm -fr ./resources/_gen
$ hugo serve
Built in 3090 ms
Error: Error building site: TOCSS: failed to transform "main_parsed.scss" (text/x-scss): resource "scss/sass/main.scss_af4713394d203c6760d5068301ff2656" not found in file cache

I cannot get Hugo to tell me exactly why it cannot translate main_parsed.scss; strace clearly shows it opens the file, but I have no clue why rendering the template fails.

Best,
Joe

Add support keyboard in search

Hi,
Is great CMD+/ shows search but the focus isn't on the search box and you can't write anything. And if that will works will be great. Add after that just select a result and press enter to display will be magnificent.

Great work, I like the theme.

Regards,
L.

Profile picture rotated on Android Google Chrome

Hi,

The profile picture on my website's homepage (here) was shot in portrait and is correctly rendered when viewed with a computer browser. However, the picture appears rotated 90 degrees (that is, to landscape) when viewed with my android phone's google chrome. The picture appears correctly when viewed with an iPhone (also google chrome). Any idea what could be going on?

Thanks for this great theme,
Jo

Misaligned footer

Hi there, so this might seem like a little thing, and it is, but I noticed it and now I'm unable to un-notice it.

Here's a print screen from the live preview of the theme with a line I made:
image

As you can see, and the same thing happens in my website, it's not perfectly centered.

Thanks in advance!

Icons in Text

Hello,

Is there a way to add icons (FontAwesome or otherwise) directly to "plain text" (i.e. not the header) using a shortcode? I tried using hugo-academic's "icon" shortcode, but that did not seem to work. I also tried adding my own shortcode to the theme and base (./layouts/shortcodes) folder for icons and I can't seem to get it to work.

Email subscription section

The theme supposedly has an email subscription section

image

but I can't find it.

Any help will be much appreciated.

Hugo Server works but Hugo (build) has no css or js

When I use hugo server the site looks fine when I use hugo to build the site on public, the css and js don't load and the site looks like a skeleton.
Tried using a baseUrl of "/" as recommended. Same result.

Custom CSS Not Connecting

I have created a custom.css in assets/css in my root (and added it to params.toml: plugins_css = ["custom"]), but it is not working. Am I doing something wrong?

Add support for floating table of contents

The original academic theme supports a floating table of content, mentioned in this issue.

To summarize the entire discussion simply adding the following to /layouts/_default/single.html:

{{- define "main" -}}
{{ if .Params.toc }}
<div class="container-fluid docs">
    <div class="row flex-xl-nowrap">
      <div class="d-none d-xl-block col-xl-2 docs-toc">
        <ul class="nav toc-top">
          <li><a href="#" id="back_to_top" class="docs-toc-title">{{ i18n "on_this_page" }}</a></li>
        </ul>
        {{ .TableOfContents }}
        {{ partial "docs_toc_foot" . }}
      </div>
      <main class="col-12 col-md-0 col-xl-10 py-md-3 pl-md-5 docs-content" role="main">
{{ end }}
        <article class="article">
            {{ partial "page_header" . }}
            <div class="article-container">
              <div class="article-style">
                {{ .Content }}
              </div>
              {{ partial "page_footer" . }}
            </div>
        </article>
  {{ if .Params.toc }}
      </main>
    </div>
  </div>
  {{ end }}
{{- end -}}

And then adding toc: true to index.md on your post would result in this (source):
image

As you can see there's a floating toc on the right.

Here's what I did:

  • Added /layouts/_default/single.html with the previously mentioned content
  • Set toc: true on my post
  • Got error: page_footer.html doesn't exist
  • Changed page_foorter to site_footer because site_footer.html exists
  • Nothing happened
  • Picked up page_footer.html from the original academic theme as well as all the others partials that were called in this file
  • Blog post looked like a mess, there was in fact a toc on the right but it didn't move it was stuck in the beginning of the post and there were strange visual things happening with the footer, but no error

As as workaround I have a static toc in the beginning of the post, but I feel like this would be a good improvement and could be easy to implement, considering that it was fully functional in the academic theme.

Not compatible with Hugo Academic Latest release (v4.5)

Thanks for the nice design and stuff.

While using my current website configuration with Academia (which works fine with Academic v4.5), I am getting some error. Looks like Academia is not compatible with Academic-v4.5 release?

Thanks

Add params.social

This is needed in order to be verified on Mastodon.

Here's how another hugo repository did this: luizdepra/hugo-coder#195

add rel to params.toml like so:

[[params.social]]
    name = "Example"
    url = "//example.com"
    rel = "me"

Search widget does not work

Thanks for the theme. However, if I switch on the search widget, the icon shows up but the search does not work.

Placement option ignored in posts/projects/talk

From the Wowchemy Docs the featured image field on a post should have the following options:

# Featured image
# To use, place an image named `featured.jpg/png` in your page's folder.
# Placement options: 1 = Full column width, 2 = Out-set, 3 = Screen-width
# Focal point options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
# Set `preview_only` to `true` to just use the image for thumbnails.
image:
  placement: 1
  caption: "Photo by [Geo](https://github.com/gcushen/)"
  focal_point: "Center"
  preview_only: false
  alt_text: An optional description of the image for screen readers.

All options work as expected in my post except for the placement option which makes no change.

Documention links borked

Hello. Thanks for this nice theme!
I just wanted to note that in the README.md of this theme on GitHub, under "Local Development" the link to "Full Documentation" is a 404 error on docs.gethugothemes.com/academia/

Also, the params.toml file (in exampleSite/config/_default/params.toml )
starts out with #SITE SETUP followed by a documentation link that REDIRECTS to the wowchemy.com home page.
(There may be other files that link to documention, but these are the first two that I discovered.)
Thank you!

Support for Microsoft Clarity

I made a branch with support for Microsoft Clarity. I added the configuration in the params.toml which is where I think also the google analytics configuration should be made. You have not specified how you want contributions so I just made a diff which I include here.
clarity.zip

Error building example site

Hi,

Thanks for building what looks like a great theme.

I'm having some issues building the example site. For example, I've tried running the following:

mkdir blog && cd blog
git init
git submodule add https://github.com/themefisher/Academia-hugo.git themes/academia-hugo
cp -arv themes/academia-hugo/exampleSite/* .
hugo server

However, I am getting this error:

Building sites … ERROR 2020/05/25 21:08:57 render of "page" failed: "/Users/phil/Documents/GitHub/blog/themes/academia-hugo/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types
ERROR 2020/05/25 21:08:57 render of "page" failed: "/Users/phil/Documents/GitHub/blog/themes/academia-hugo/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types
Built in 496 ms
Error: Error building site: failed to render pages: render of "page" failed: "/Users/phil/Documents/GitHub/blog/themes/academia-hugo/layouts/publication/single.html:14:10": execute of template failed: template: publication/single.html:14:10: executing "main" at <(.Params.publication_types) and (ne (index .Params.publication_types 0) "0")>: can't give argument to non-function .Params.publication_types

EDIT: It seems to work for me after deleting the following in layouts/publication/single.html on this line was causing the issue:

(ne (index .Params.publication_types 0) "0")

Also, I'm using Hugo v0.71.1. I'm new to using hugo so am not sure why it was causing an issue. Any ideas why this was causing an issue?

Thanks in advance,
Phil

Bug on list layout in featured widget

After trying out the featured widget with the list design all of my publications/projects/posts looked like:
image

Comparing it to the original academic template:
image

Is this intended behavior? It doesn't look like considering how close together the titles are, I feel like each should be in a new line. The design also doesn't improve when viewing it in cellphone mode.

In comparison with the citation design:
image

Which should be expected to happen in the list design aswell.

page-links-div partial does not build DOI links if no other links present

In page-links-div.html in line:

https://github.com/themefisher/academia-hugo/blob/f4d5eba11eb87ca180bde088483d2a8c339e5431/layouts/partials/page_links_div.html#L18

DOI is not specified, so if DOI is only link, button is not built. Could be fixed easily by changing this line to:

{{ if $cite_link | or $pdf_link | or .Params.external_link | or .Params.url_preprint | or .Params.url_pdf | or .Params.url_slides | or .Params.url_video | or .Params.url_source | or .Params.url_code | or .Params.url_dataset | or .Params.doi | or .Params.url_poster | or .Params.url_project | or .Params.links | or .Params.projects | or .Params.slides }}

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.