Comments (2)
I've put together the following head-end
hook:
Put the following in layouts/partials/hooks/head-end/google-scholar.html
:
{{ if .IsPage | and (eq .Type "publication") }}
{{/* based on page_metadata_authors.html */}}
{{- $taxonomy := "authors" }}
{{ if .Param $taxonomy }}
{{ range $index, $value := (.GetTerms $taxonomy) }}
<meta name="citation_author" content="{{ .LinkTitle }}" />
{{- end -}}
{{- end }}
<meta name="citation_title" content="{{ .Title }}" />
<meta name="citation_publication_date" content="{{ .Params.Date.Format "2006/01/02" }}" />
{{ $resource := .Page.Resources.GetMatch (printf "%s.pdf" .Page.File.ContentBaseName) }}
{{ with $resource }}
<meta name="citation_pdf_url" content="{{ .Permalink }}" />
{{ else }}
{{ if .Params.url_pdf }}
<meta name="citation_pdf_url" content="{{ .Params.url_pdf | absURL }}" />
{{ end }}
{{ end }}
{{ if .Params.publication -}}
{{ if in .Params.publication_types "thesis" -}}
<meta name="citation_dissertation_institution" content="{{ .Params.publication }}" />
{{ else if in .Params.publication_types "paper-conference" }}
<meta name="citation_conference_title" content="{{ .Params.publication }}" />
{{ else if in .Params.publication_types "article-journal" }}
<meta name="citation_journal_title" content="{{ .Params.publication }}" />
{{- end }}
{{- end }}
{{- end }}
from hugo-blox-builder.
This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the main
branch, consider contributing a Pull Request with a fix.
If this is a feature request, and you feel that it is still relevant and valuable, consider contributing a Pull Request for review.
This issue will automatically close soon if no further activity occurs. Thank you for your contributions.
from hugo-blox-builder.
Related Issues (20)
- Problem with deployment on GitHub Pages (Node.js 16) HOT 1
- filter will not work on hugo v0.123.7 HOT 1
- Add slider to gallery block HOT 1
- HUGO language HOT 1
- The latest version will cause an error when building when following the tutorial for configuration. HOT 1
- Build with Hugo, `publish.yaml` failing HOT 1
- `cite` short code usage in the documentation causing an error HOT 1
- People Widget HOT 2
- Non functional fields in `academic-cv` HOT 1
- Author formatting in tailwind publications HOT 2
- Need to improve the clarity of the avatar and provide a size option HOT 3
- Added color options for the gray font on the home page background HOT 1
- Port `author_notes` feature from Bootstrap to Tailwind module
- Let the user choose Katex or Mathjax HOT 1
- What is the template used on the documention site
- Responsive broken on Academic CV HOT 6
- No TOC shown for book since hugo v0.123.0 HOT 1
- Copy the BibTeX directly instead of downloading the .bib file.
- bg-color not working as expected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-blox-builder.