diff --git a/_includes/layout/statbox b/_includes/layout/statbox index 41583436d..66c288d35 100644 --- a/_includes/layout/statbox +++ b/_includes/layout/statbox @@ -73,6 +73,8 @@ the javascript only populates fields when they are empty. {%- assign arxiv = page.arxiv -%} {%- comment -%} The person's username on arXiv {%- endcomment -%} {%- assign scholar = page.scholar -%} {%- comment -%} The person's Google Scholar ID {%- endcomment -%} {%- assign honorific = page.honorific -%} {%- comment -%} A granted title to certain community members {%- endcomment -%} +{%- assign update-site = page.update-site -%} {%- comment -%} URL/Name of the update site for installation {%- endcomment -%} +{%- assign update-site-unlisted = page.update-site-unlisted -%} {%- comment -%} URL/Name of the unlisted update site for installation {%- endcomment -%} {%- comment -%} ============= FIELD ALIASES ============= {%- endcomment -%} @@ -140,6 +142,22 @@ the javascript only populates fields when they are empty. {%- endif -%} {%- endcapture -%} +{%- if update-site or update-site-unlisted -%} + {%- capture update-site-label -%} + {%- if update-site -%} Update site + {%- elsif update-site-unlisted -%} Update site (unlisted) + {%- endif -%} + {%- endcapture -%} +{%- endif -%} + +{%- if update-site or update-site-unlisted -%} + {%- capture update-site-url -%} + {%- if update-site-unlisted -%} {{update-site-unlisted}} + {%- elsif update-site -%} {{update-site}} + {%- endif -%} + {%- endcapture -%} +{%- endif -%} + {%- if autopop or source-url -%} {%- unless source-label -%} {%- capture source-label -%} @@ -244,7 +262,7 @@ https://forum.image.sc/u/{{forum}} {%- endif -%} {%- if name or affiliation or website or - autopop or project or source-label or license-url or + autopop or project or source-label or license-url or update-site or update-site-unlisted or release-url or release-date or dev-status or support-status or team or forum or forum-tag or person-developer or person-social or person-publication -%} {%- assign show-statbox = true -%} @@ -286,6 +304,7 @@ refreshComponent(); {%- if autopop or source-url or source-label -%} {%- include statbox/row id="component-source" label="Source" url=source-url value=source-label -%} {%- endif -%} {%- if autopop or license-url or license-label -%} {%- include statbox/row id="component-license" label="License" url=license-url value=license-label -%} {%- endif -%} {%- if autopop or release-url or release-version -%} {%- include statbox/row id="component-release" label="Release" url=release-url value=release-version -%} {%- endif -%} +{%- if update-site or update-site-unlisted -%} {%- include statbox/row id="component-update-site" label=update-site-label url=update-site-url value=update-site-url -%} {%- endif -%} {%- if autopop or release-date -%} {%- include statbox/row id="component-date" label="Date" value=release-date -%} {%- endif -%} {%- if autopop or dev-status -%} {%- include statbox/row id="component-dev-status" label="Development status" value=dev-status -%} {%- endif -%} {%- if autopop or support-status -%} {%- include statbox/row id="component-support-status" label="Support status" value=support-status -%} {%- endif -%}