From a896d475e490648ce2105d391b7598f0ce3f05d0 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 4 Feb 2019 10:12:38 +0100 Subject: [PATCH] Clean up resource URLs on collection-tags template This included files.writeas.org paths and other Write.as-specific logic. --- templates/collection-tags.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/collection-tags.tmpl b/templates/collection-tags.tmpl index fd37eed..8ef4816 100644 --- a/templates/collection-tags.tmpl +++ b/templates/collection-tags.tmpl @@ -5,8 +5,8 @@ {{.Tag}} — {{.Collection.DisplayTitle}} - - + + {{if not .Collection.IsPrivate}}{{end}} @@ -179,11 +179,11 @@ function pinPost(e, postID, slug, title) { {{end}} try { // Fonts WebFontConfig = { - custom: { families: [ 'Lora:400,700:latin', 'Open+Sans:400,700:latin' ], urls: [ '{{if .IsCustomDomain}}https://files.writeas.org{{end}}/css/fonts.css' ] } + custom: { families: [ 'Lora:400,700:latin', 'Open+Sans:400,700:latin' ], urls: [ '/css/fonts.css' ] } }; (function() { var wf = document.createElement('script'); - wf.src = '{{if .IsCustomDomain}}https://files.writeas.org{{end}}/js/webfont.js'; + wf.src = '/js/webfont.js'; wf.type = 'text/javascript'; wf.async = 'true'; var s = document.getElementsByTagName('script')[0];