Hatha Yoga Pradipika · by Svatmarama
Chapter 1 · Asanas, Diet, Conduct
आसनविधिकथनम्
सुस्निग्धमधुराहारश्चतुर्थांशविवर्जितः ॥भुज्यते शिवसंप्रीत्यै मिताहारः स उच्यते ॥ ५८ ॥
Also in Gheranda Samhita 5.22
Food that is oily and sweet, eaten to please Shiva, with a quarter of the stomach left empty: this is called moderate food.
Simple meaning: Moderate food is oily and sweet, with a quarter of the stomach left empty.
कट्वम्लतीक्ष्णलवणोष्णहरीतशाकसौवीरतैलतिलसर्षपमद्यमत्स्यान् ॥
The text lists foods unfit for a yogi: pungent, sour, sharp, salty, hot, meat, fish and liquor.
भोजनमहितं विद्यात्पुनरस्योष्णीकृतं रूक्षम् ॥
Reheated, dry, very salty, sour and poor food should be avoided.
वन्हिस्त्रीपथिसेवानामादौ वर्जनमाचरेत् ॥
At the start, avoid fire, travel, women, bad company, fasting and bodily hardship.