LEGANES, Spain — Leganes defeated Alaves 1-0 to get the Spanish league underway on Friday, after they paid tribute to the victims of the attacks in Barcelona and the seaside resort of Cambrils.

A minute of silence was held before the match, and will also be observed ahead of all league games this weekend.

Defending champion Real Madrid and Barcelona will play on Sunday, but both squads held a minute of silence before their training sessions on Friday.

Barcelona players will wear shirts worded with “Barcelona” instead of their names on the back when they host Real Betis at Camp Nou. The hashtag “TotsSomBarcelona” (We are all Barcelona) will be on the front of the shirts, following the attacks that killed 14 people and injured more than 120 others.

Titleholder Real Madrid will debut at Deportivo La Coruna without Cristiano Ronaldo, who is serving a suspension for shoving a referee in the Spanish Super Cup final which Madrid won.

Atletico Madrid opens at promoted Girona on Saturday.

Gabriel scored the league’s first goal from close range after Alaves goalkeeper Fernando Pacheco partially stopped a free kick cross.

advertisement | advertise on newsday

Gabriel appeared to be offside, igniting criticism for the lack of video review in the Spanish league.

Alaves, which surprised as a promoted club last season by finishing ninth in La Liga and by reaching the Copa del Rey final, missed a chance to open the scoring when Manu Garcia missed a penalty kick less than 10 minutes before Gabriel’s first-half goal.