1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-19 04:41:41 +02:00

fetch latest release via github api and use it for showing the header and CDN links

This commit is contained in:
amacado
2020-12-28 20:11:12 +01:00
parent 843c073f17
commit 3f38ec5296
2 changed files with 17 additions and 3 deletions

View File

@@ -46,7 +46,7 @@
<div class="container">
<header class="clearfix">
<h1>Devicon <span>2.7</span></h1>
<h1>Devicon <span><a href="https://github.com/devicons/devicon/releases">{{ latestReleaseTagging }}</a></span></h1>
<h2>Devicon is a set of icons representing programming languages, designing & development tools. You can use it as a font or directly copy/paste the svg code into your project.</h2>
<h3>(Super) Quick Setup</h3>
<h5>First select an icon on the right, then select the version below and copy/paste the code into your project.</h5>
@@ -65,7 +65,7 @@
</ul>
<div class="cde">
<div class="cde-com">&lt;!-- in your header --&gt;</div>
&lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@master/devicon.min.css"&gt;<br />
&lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@{{ latestReleaseTagging }}/devicon.min.css"&gt;<br />
<br />
<div class="cde-com">&lt;!-- in your body --&gt;</div>
&lt;i class="devicon-{{selectedIcon.name}}-{{selectedFontIcon}}<span ng-if="colored"> colored</span>"&gt;&lt;/i&gt;<br />