Use link element only with rel="alternate" for the permalink #34
Sort permalinks by mimetype and return the first permalink