Prior to 1989, the Comics Code Authority banned any mention of homosexuality under the umbrella of "sexual abnormality" in comics published in the United States. Since then, comic books have slowly gained LGBT representation, usually with occasional side characters. Queer comic book characters were pretty much always in the periphery until the 2000s, never acting as a major protagonist and certainly not featured in a major title.
In contemporary comics, there is much more representation. While not perfect, there are tons of comic series with progressive, gay characters waiting to be discovered by the masses. The time of delineation between gay comics or queer comics and more "traditional" fare is coming to an end. If you need proof, just check out these amazing comic book characters!
Batwoman was one of the first, and remains to be among the few, queer comic book characters that headlines her own title published by DC. Kate Kane, dishonorably discharged from the military while Don't Ask, Don't Tell was still in effect, finds herself inspired by Batman to take up the vigilante mantle herself after an encounter with some unsavory people. Greg Rucka's Elegy is a gorgeous origin story for her character and definitely a title worth checking out.
One of the more... gritty heroes, Midnighter debuted in 1998 in Stormwatch. Once a regular man, Lucas Trent underwent biological and cybernetic enhancements which effectively turned him into a super weapon, granting powers like an accelerated healing factor, super strength, and heightened reflexes.
While Batman may be the greatest detective of all time, Midnighter reigns supreme as the greatest tactician who's ever lived, thanks to some serious precognitive abilities. While his solo title from the New 52 was canceled before the DC Rebirth launch in 2016, DC published a 6-issue mini series Midnighter and Apollo, giving a conclusion to the New 52 story. A significant portion of the series is dedicated to his relationship with his fellow hero and husband, Apollo.
Hulkling (Teddy Altman if you're into secret identities), is a shapeshifting Skrull prince who was taken to Earth for his own protection during the Kree-Skrull war. On Earth, he was raised by a single mother. Apart from that, we don't learn much about Teddy's youth in the pages of Young Avengers, where he's graced the team with his presence since its formation back in 2005. On the team, Teddy meets Wiccan (Billy Kaplan) and starts one of the best romances in comics.
Billy Kaplan, AKA Wiccan, is the son of Scarlet Witch and Vision who almost didn't exist. Way back in Avengers: West Coast #52, it's revealed that Wanda Maximoff was so desperate to have children, she unknowingly warped reality. She created her twin sons with two fragments of a shattered demon's soul, causing them to vanish when the demon reassembled itself.
Billy was adopted by the Kaplans, and was a victim of bullying in his youth because of his orientation. This led to a confrontation with another student, revealing his mutant powers. He becomes a member of the Young Avengers where he meets Teddy Altman, AKA Hulkling, AKA the love of his young life.