Skip to main content
  1. Snippits & Exemplars/
  2. WolfspyreLabs Exemplars/
  3. WolfspyreLabs Shortcodes/

Gitlab Project

🐺 gitlab
Show some information about a gitlab project.

Attributes #

Name Usage Optional default
projectID The project to display information about โŒ nil
baseURL The baseURL of the gitlab Instance to query โœ… undefined
cardSize assign a w-XXX value to the div entity that makes the card. โœ… 50%
getBadges Toggle to en/dis able fetching and presentation of project Badges โœ… true
getBadges Toggle to en/dis able fetching and presentation of the project’s badges โœ… true
getCommitStats Toggle to en/dis able fetching and presentation of the last commit’s info โœ… true
getIssueStats Toggle to en/dis able fetching and presentation of issue summary info โœ… true
icon The Icon to use for the background of the card โœ… gitlab-logo
showAvatar Toggle to en/dis able fetching and presentation of project Logo โœ… true
showIcon Toggle to en/dis able the presentation of the gitlab (or other) icon โœ… true

Basic Example #

Example invocationLang: gotmpl
{{< gitlab 
  baseURL="https://gitlab.wolfspyre.io/" 
  projectID="1121" 
  cardSize="75%"
  icon="wpl-tanuki"
>}}
wplhugo
WolfspyreLabs Hugo Theme Starting point
Wolf NobleAuthor05/03/24 01:06:22Date91d59a47CommitMerge branch '18-vscode-shortcodes-snippits' into 'wpl_main'Title
46
Open
83
Closed
129
Total
0
0

Disablement Example #

Note that to disable the options, one must provide a string false value; as setting a bool(false) value will circumvent the param setting logic.

There’s LIKELY a better way to do this; but…. only so much time y’kno?

disablementLang: gotmpl
{{< gitlab 
  baseURL="https://gitlab.wolfspyre.io/" 
  projectID="1121" 
  cardSize="75%"
  getCommitStats="false"
  getIssueStats="false"
  getBadges="false"
>}}

Iconic Independance #

Custom Icon #

Custom IconLang: gotmpl
{{< gitlab 
  baseURL="https://gitlab.wolfspyre.io/" 
  projectID="1121" 
  cardSize="75%"
  getCommitStats="false"
  getIssueStats="false"
  getBadges="false"
  icon="wpl-tanuki"
>}}

No Icon #

No IconLang: gotmpl
{{< gitlab 
  baseURL="https://gitlab.wolfspyre.io/" 
  projectID="1121" 
  cardSize="75%"
  showIcon="false"
>}}
wplhugo
WolfspyreLabs Hugo Theme Starting point
Wolf NobleAuthor05/03/24 01:06:22Date91d59a47CommitMerge branch '18-vscode-shortcodes-snippits' into 'wpl_main'Title
46
Open
83
Closed
129
Total
0
0

No Icon - bareLang: gotmpl
{{< gitlab 
  baseURL="https://gitlab.wolfspyre.io/" 
  projectID="1121" 
  cardSize="75%"
  showIcon="false"
  getCommitStats="false"
  getIssueStats="false"
  getBadges="false"
>}}