How to delete part of the code in TWIG for Drupal?

I use this code to print the flag in its node : When I print my flag in the template of my node, the rendering is as follows : <div class=”bs-field-like-link”><a class=”collapsed” data-toggle=”collapse” data-parent=”#accordion” href=”#collapse1″></a><div class=”flag flag-like-store js-flag-like-store-13 action-unflag”><a class=”collapsed” data-toggle=”collapse” data-parent=”#accordion” href=”#collapse1″></a><a title=”” href=”/fr/flag/details/edit/like_store/13?destination=/fr/boutique/poupette-cacahuete” class=”use-ajax” data-dialog-type=”modal” data-dialog-options=”{&quot;width&quot;:&quot;auto&quot;}” rel=”nofollow”><span class=”btn btn-success”><svg class=”svg-inline–fa fa-heart fa-w-16 fa-lg”…

Details

How to set rel=preload in CSS?

I import fonts like this: @font-face{ font-family:fname; src:url(../fonts/fname.woff) format(‘woff’), url(../fonts/fname.ttf) format(‘truetype’); font-weight:400; } Also when I analysis my website using SEO tools (ex. google page speed insight), they suggest using rel=”preload”for those fonts. Since I don’t use HTML for importing that fonts to the page, any idea how can I use that HTML attribute using…

Details

How to get file size using retrofit 2 . I tried by return -1?

I want to build App to download file with progress-bar and I tried to get file size from server. while using retrofit 2 library but failed to get the total-file size. and return -1, i tested its work on build:gradle:3.0.1 but not in build:gradle:3.5.3 here my code ApiService apiService = RetroClient.getApiService(); Call<ResponseBody> call = apiService.downloadFile(“fsharpapps/fonts/customFont.ttf”);…

Details

singleton class in NPM dependencies management

I have a doubt about singleton in NPM dependencies management. Here is my dependency tree: – YoutubeScraper – ScrapperFoundation – YoutubeScraperCore – ScrapperFoundation ScrapperFoundation contains a singleton class ‘ScrapperDataService’ that both packages ‘YoutubeScraper’ and ‘YoutubeScraperCore’ are using. I’m wondering if that is two instances of ‘ScrapperDataService’? If yes, what would be good practice to achieve…

Details