{%- comment -%} This component defines how to render the data about a user in various places on the page. @param user: This property defines the user-file this component should be rendered for values: jekyll user-file @see formats.md @param show_roles: This property defines which roles should be shown values: "" | "all" | any type defined in roles.yml @param size: This property defines the size of certain parts (avatar + username) values: "small" | "regular" | "big" @param type: This property defines where URLs should lead values: "osu" | "compendium" "osu" => osu! profile "compendium" => compendium profile {%- endcomment -%} {%- assign user_link = include.user.user_id -%} {%- if include.type == 'osu' -%} {%- assign user_link = user_link | prepend: "https://osu.ppy.sh/users/" -%} {%- elsif include.type == "compendium" -%} {%- assign user_link = user_link | prepend: "/authors/" -%} {%- endif -%}