gethugothemes / academia-hugo Goto Github PK
View Code? Open in Web Editor NEWAcademia is a Hugo resume theme. You can showcase your academic resume, publications and talks using this theme.
License: MIT License
Academia is a Hugo resume theme. You can showcase your academic resume, publications and talks using this theme.
License: MIT License
Hello,
git clone [email protected]:themefisher/academia-hugo.git
results in:
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Cloning over https, i.e. git clone https://github.com/themefisher/academia-hugo.git
, works fine.
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
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.
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
How to adjust automatically the size of the social/academia icon container to that of the avatar image specified in content/authors/admin/_index.md
?
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.
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
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.
Setting light=false
in the default
theme leads to light text superimposed to light background in Bio section, which is not the expected result.
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.
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?
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):
As you can see there's a floating toc on the right.
Here's what I did:
/layouts/_default/single.html
with the previously mentioned contenttoc: true
on my postpage_footer.html
doesn't existpage_foorter
to site_footer
because site_footer.html
existspage_footer.html
from the original academic theme as well as all the others partials that were called in this fileAs 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.
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
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"
Thanks for the theme. However, if I switch on the search widget, the icon shows up but the search does not work.
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.
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!
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
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
After trying out the featured widget with the list design all of my publications/projects/posts looked like:
Comparing it to the original academic template:
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:
Which should be expected to happen in the list design aswell.
In page-links-div.html
in line:
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 }}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.