adverbial form of an adjective to modify a noun?


I am learning from Japanese From Zero! online website, and came across this
sentence:

きょう、近くの こうえんに 行きませんか

I would expected 近く to read 近い

I have never seen the adverbial form of an adjective used to modify a noun
before?

