Comments (15)
Thanks for clarifying your suggestion. I understand that it is mainly in relation to the posts widget, rather than publications.
I guess ideally you would want to use Hugo's tag or category feature for posts (i.e. tags = ["Personal"]
) and then set a specific category/tag(s) in your content/home/posts.md
widget which would adapt the Hugo range
query to limit results to posts within the given category/tag(s). Secondly, a few minor tweaks may be required to enable multiple publications
widgets to work nicely.
I suppose this may benefit other users too, so I'll consider to implement it.
from hugo-blox-builder.
Update b51cc00 adds functionality to limit the post list to posts containing specified tags. You can specify any amount of tags in the content/home/posts.md
widget, for example tags = ["hugo"]
or tags = ["hugo", "jekyll"]
.
It appears to work with multiple posts
widgets, although this can be further improved, especially in relation to how multiple widgets are linked.
from hugo-blox-builder.
Glad to hear you got the updated posts widget working!
I have been planning an update to the projects widget which I hope to finish sometime soon. It will remain as one widget but with a horizontal list of tags that can be clicked on to dynamically filter the projects that are displayed. Thus, it should function similarly to how many other popular websites display projects. I'll leave this issue open to get your feedback once I've finished it.
from hugo-blox-builder.
@ywpkwon does the new project filtering feature (demo at https://gcushen.github.io/hugo-academic-demo/#projects ) provide the functionality that you want? Or do you prefer to also have a tags
option similar to the posts widget so that you can use multiple instances of the projects widget for different tags?
Note that the projects widget also now lets you choose between list view or cards view.
from hugo-blox-builder.
@gcushen Actually, instead of posts
, I am usually using only publications
and projects
. I would prefer the cards
option for projects, and the normal lists
layout for publications. Since I am not blogging yet, I am not so sure about posts, but I guess I would also choose the normal lists
for posts.
If I may add my opinion a bit, I think it would be useful if I could have "the normal lists
layout + right-side small thumbnail image" option (instead of a full-width banner above a title). Maybe the right-side alignment for thumbnail would be good, since all titles will be still left aligned, regardless of thumbnail existence. If the "list+thumbnail" option is there, I feel like I would use that for all publications, projects, and posts. :)
(This reminds me a homepage of a professor like below. I made it blurred just in case.)
from hugo-blox-builder.
Update 8277658 significantly improves support for multiple widgets. Now homepage widget identifiers are set to their respective filenames. For example: content/home/about.md
widget is now linked from the
menu bar by setting the relevant URL as "#about"
in config.toml
.
This means that if you have multiple posts/projects widgets, each widget will be assigned a unique ID based on the filename that you set. You can then use that ID for linking, like in the above example.
@ywpkwon I will consider to implement your layout idea 😃
@vjd This new update 8277658 should help a lot with your issue. Do you mean that you would also like projects widget to have a tags
filter like the posts widget has? So then you can filter projects to a specific tag without displaying any filter buttons to the visitor?
from hugo-blox-builder.
Thanks a lot for this update that addresses my initial question! :)
Moreover, I really like the summary
option in posts. I was going to ask, but did not since I was worried if I was asking too much. But you already knew and made it! Thanks.
from hugo-blox-builder.
Glad you like the theme 😃
I'm not sure if I understand why you want to use multiple publication widgets. The publication widget just lists the most recent publications. I don't think it would be useful to repeat it because the second publication widget would be exactly the same?
Perhaps you want to use the custom widget for your purpose. You can use the custom widget to link to any publications you like, by adding the following content to a custom widget (like the example teaching widget):
My custom publication list:
- [My publication 1]({{< ref "publication/person-re-identification.md" >}})
from hugo-blox-builder.
Oops, sorry for taking publication
as an example.
Let's say, posts
. The posts
widget seems to always display stuff in content/post/
.
I was curious if I can have several sections of posts like foods
, and cars
, referring content/post_food/*.md
, and content/post_cars/*.md
respectively (possibly as below?) for section-organizing purpose. Would this still seem unnecessary? :)
E.g., in content/home/food_posts.md
,
# Recent Posts widget.
title = "Thoughts on Foods"
widget = "posts"
path = "content/post_food/" # <- something like this?
In content/home/cars_posts.md
,
# Recent Posts widget.
title = "Thoughts on Cars"
widget = "posts"
path = "content/post_car/"
Actually, in my real case, because I have different types of projects, so I would like to show separate lists of my personal projects
and course projects
.
from hugo-blox-builder.
Thanks you so much. I updated, and it worked well! I hope content/home/projects.md
also have such functionality, but I am not pushing you. This academic
theme is awesome as it is for now. :)
from hugo-blox-builder.
@gcushen Hi, both the filtering feature and the card view are more than awesome! Thanks for mentioning them! I upgraded the theme right away, and set mine with the card view :)
from hugo-blox-builder.
@ywpkwon great! I would be interested to hear if you think a cards option would be good for posts and/or publications too? Or do you prefer the normal layout for posts and publications on the homepage?
from hugo-blox-builder.
@gcushen thank you for the wonderful theme! I was able to use the posts widget multiple times, but it would be awesome to be able to use the project widget more than once too.
I am looking to build an organization website and want to include a page that introduces the team
with their pictures as thumbnails. Team
here goes in a separate navigation link on the top. The only way I see that now is to use a second posts widget and then have a separate tag that filters away anything with "team"
in the tags list. This is good for now, but would love to have the ability to use projects and publications widgets in multiple capacities.
Thank you for the excellent resource!
from hugo-blox-builder.
Hi, George. The same question came to me as well, and I think the tags
filter works very well in a flexible way. I am wondering how I can exclude some tags in a post widget. For example, I have tens of tags in total and I want to display two post widgets on the home page. The first post widget displays those posts with the tag 'news'. The second displays those posts without the tag 'news'. Could I simply specify in the second post widget in the way such as tags = [-'news']
or tags = [{exclude}'news']
or something like that? Thank you again for this amazing theme and your kind help.
from hugo-blox-builder.
Hi, gcushen.
I also wish to employ "publication" widget with multiple usages, as requested in the first comment of this issue. The main reason is that I really like the filtering system of publications (by year and category). I am thinking to have two different instances of this widget: one for the actual publications, and another one for the teaching courses. Hence, data would be stored in "content/publication" and "content/courses", respectively.
I need the filtering system because it is very common to repeat a course year over year, but with different contents (i.e., same category, different year).
I see that I may use the "post" widget with tags or "custom" widget, arranging html content in a meaningful way. However, in this way I will lost the filtering system, that is indeed very useful for students looking for courses taken in a specific year and related to different subjects. As you suggested, I will employ the post widget in the meanwhile.
By the way, you made a very good work with this theme, thank you for your time!
from hugo-blox-builder.
Related Issues (20)
- blox-bootstrap: Bilibili videos cannot show HOT 2
- Landing-page theme basically lands to the same page , just with the user's name. How can I correct this?
- improve docs: show examples of using icons in code (markdown) HOT 3
- Support Devicon HOT 2
- missing reddit icon on Hugo Blox suggested code HOT 2
- Icon SVG is not loaded
- Add Strava to brands icon pack HOT 3
- Hugo v0.123.1 breaks sites HOT 3
- fix the docs: staticref shortcode missing? HOT 1
- fix docs: list_children missing? HOT 1
- highlight self name in authors list when importing from bibtex HOT 3
- All three map providers supported by Hugo are not available in China HOT 1
- Dark mode breaks highlighting lines in code blocks HOT 7
- Problem with deployment on GitHub Pages (Node.js 16) HOT 1
- filter will not work on hugo v0.123.7 HOT 1
- Add Google Scholar expected meta tags to publication pages HOT 2
- 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
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.